Problem with Kha's header not found if you node Kha/make --compile linux than it always throw throw throw


Hello everyone, I have big problem with Kha framework because it always throw error if header not found. I am already try unpack fresh directory to my user directory and It has not access of root.

node /home/sourceskyboxer/Downloads/Armory_05_linux64_b27\ \(1\)/Armory/armsdk/Kha/make --compile linux
    Using Kha from /home/sourceskyboxer/Downloads/Armory_05_linux64_b27 (1)/Armory/armsdk/Kha
    Creating Kha project.
    /home/sourceskyboxer/Downloads/Armory_05_linux64_b27 (1)/Armory/armsdk/lib/zui/examples/MultipleWindows/Sources/Main.hx:4: characters 1-35 : kha.WindowOptions has no field or subtype Position

    korefile found.
    Creating Linux project files.
    g++  -O2 -I./ -I../Sources/include -I../../../../../../../Kha/Backends/Kore/khacpp/include -I../../../../../../../Kha/Backends/Kore/khacpp/project/thirdparty/pcre-8.42 -I../../../../../../../Kha/Backends/Kore/khacpp/project/thirdparty/zlib-1.2.11 -I../../../../../../../Kha/Backends/Kore/khacpp/project/libs/nekoapi-I../../../../../../../Kha/Backends/Kore/khacpp/project/thirdparty/mbedtls-2.9.0/include -I../../../../../../../Kha/Kore/Sources -I../../../../../../../Kha/Kore/Backends/System/Linux/Sources -I../../../../../../../Kha/Kore/Backends/System/POSIX/Sources -I../../../../../../../Kha/Kore/Backends/Graphics4/OpenGL/Sources -I../../../../../../../Kha/Kore/Backends/Graphics5/G5onG4/Sources -I../../../../../../../Kha/Kore/Backends/Audio3/A3onA2/Sources  -DHXCPP_API_LEVEL=332 -DKORE_MULTITHREADED_AUDIO -DHX_LINUX -DSTATIC_LINK -DPCRE_STATIC -DHXCPP_SET_PROP -DHXCPP_VISIT_ALLOCS -DKORE -DROTATE90 -DHAVE_CONFIG_H -DKORE_G1 -DKORE_G2 -DKORE_G3 -DKORE_A1 -DKORE_A2 -DKORE_LINUX -DKORE_OPENGL -DKORE_POSIX -DKORE_G4 -DKORE_G5 -DKORE_G5ONG4 -DKORE_A3   -c ../../../../../../../Kha/Backends/Kore/main.cpp -o main.o -static-libgcc -static-libstdc++ -pthread -lasound -ldl -lGL -lX11 -lXinerama
    g++  -O2 -I./ -I../Sources/include -I../../../../../../../Kha/Backends/Kore/khacpp/include -I../../../../../../../Kha/Backends/Kore/khacpp/project/thirdparty/pcre-8.42 -I../../../../../../../Kha/Backends/Kore/khacpp/project/thirdparty/zlib-1.2.11 -I../../../../../../../Kha/Backends/Kore/khacpp/project/libs/nekoapi-I../../../../../../../Kha/Backends/Kore/khacpp/project/thirdparty/mbedtls-2.9.0/include -I../../../../../../../Kha/Kore/Sources -I../../../../../../../Kha/Kore/Backends/System/Linux/Sources -I../../../../../../../Kha/Kore/Backends/System/POSIX/Sources -I../../../../../../../Kha/Kore/Backends/Graphics4/OpenGL/Sources -I../../../../../../../Kha/Kore/Backends/Graphics5/G5onG4/Sources -I../../../../../../../Kha/Kore/Backends/Audio3/A3onA2/Sources  -DHXCPP_API_LEVEL=332 -DKORE_MULTITHREADED_AUDIO -DHX_LINUX -DSTATIC_LINK -DPCRE_STATIC -DHXCPP_SET_PROP -DHXCPP_VISIT_ALLOCS -DKORE -DROTATE90 -DHAVE_CONFIG_H -DKORE_G1 -DKORE_G2 -DKORE_G3 -DKORE_A1 -DKORE_A2 -DKORE_LINUX -DKORE_OPENGL -DKORE_POSIX -DKORE_G4 -DKORE_G5 -DKORE_G5ONG4 -DKORE_A3   -c ../../../../../../../Kha/Backends/Kore/khacpp/project/libs/common/sha1.cpp -o sha1.o -static-libgcc -static-libstdc++ -pthread -lasound -ldl -lGL -lX11 -lXinerama
    ../../../../../../../Kha/Backends/Kore/main.cpp:16:10: fatal error: hxinc/kha/SystemImpl.h: No such file or directory
     #include <hxinc/kha/SystemImpl.h>
    compilation terminated.
    makefile:11: recipe for target 'main.o' failed
    make: *** [main.o] Error 1
    make: *** Waiting for unfinished jobs....
    Compilation failed.

How do I fix?

I already use KodeStudio and path to KHA/make …

I am using under Ubuntu 18.04


The zui muliwindow example is not compatible with current versions of Kha. The error you get (kha.WindowOptions has no field or subtype Position) is correct and results in the Haxe code not being compiled which then results in the headers not even existing.


Now it works because I use correct version of KhaImGuiDemo github and it works very stable. If i use Armory 3D than i need copy it and past to directory Libraries. I am so surprised because Blender and Kha + Armory = so fast performance. You remember LoL ( League of Legends ) it replaced to Kha. I saw youtube but i am not sure.

But KhaImGuiDemo content shows me that it need to install Haxe but Armory 3D forgets Haxe.

For KhaImGuiDemo content:
If i type node Kha/make --compile linux
… shaders to 8
It throws error “haxelib is not installed” because it requires for haxe.

And nice features of Armory3D I will try learn more. Thanks for incompatibility from Armory’s Kha. I have resolved with KhaImGuiDemo github because it is stable framework.


I don’t know what that KhaImGuiDemo does but Kha projects should not require a Haxe installation, Haxe is integrated in Kha (it’s in Tools/Haxe).