Kode / Kha

Ultra-portable, high performance, open source multimedia framework.
http://kha.tech
zlib License
1.48k stars 174 forks source link

cpp_uint32array.h: No such file or directory for Linux target #1419

Closed eugmarc closed 2 years ago

eugmarc commented 2 years ago

As described in the title, I get cpp_uint32array.h: No such file or directory when trying to build my game for Native Linux. It works for html5.

Steps to reproduce the behavior:

  1. node Kha/make linux --compile or node Kha/make linux --graphics vulkan --compile

Kernel 5.17.5-arch1-1 Kha latest from git Haxe 4.2.4 Gcc 11.2.0

More output:

g++  -O2 -I./ -I../../../../../../Kha/Kinc/Sources -I../../../../../../Kha/Kinc/Backends/System/Linux/Sources -I../../../../../../Kha/Kinc/Backends/System/POSIX/Sources -I../wayland -I../../../../../../Kha/Kinc/Backends/Graphics5/Vulkan/Sources -I../../../../../../Kha/Kinc/Backends/Graphics4/G4onG5/Sources -I../Sources/include -I../../../../../../Kha/Backends/Kinc-hxcpp/lib -I../../../../../../Kha/Backends/Kinc-hxcpp/khacpp/include -I../../../../../../Kha/Backends/Kinc-hxcpp/khacpp/project/thirdparty/pcre-8.42 -I../../../../../../Kha/Backends/Kinc-hxcpp/khacpp/project/thirdparty/zlib-1.2.11 -I../../../../../../Kha/Backends/Kinc-hxcpp/khacpp/project/libs/nekoapi -I../../../../../../Kha/Backends/Kinc-hxcpp/khacpp/project/thirdparty/mbedtls-2.9.0/include  -DHXCPP_API_LEVEL=400 -DHXCPP_GC_GENERATIONAL -DKORE_G1 -DKORE_G2 -DKORE_G3 -DKORE_A1 -DKORE_A2 -DKORE_LZ4X -DKORE_LINUX -DKORE_VULKAN -DKORE_POSIX -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 -DKORE_G4 -DKORE_G5 -DKORE_G4ONG5 -DHX_SMART_STRINGS -DKORE_MULTITHREADED_AUDIO -DHX_LINUX -DSTATIC_LINK -DPCRE_STATIC -DHXCPP_VISIT_ALLOCS -DKHA -DKORE -DROTATE90 -DHAVE_CONFIG_H -DSUPPORT_UTF -DSUPPORT_UCP -DNDEBUG   -c ../Sources/src/kha/graphics5/IndexBuffer.cpp -o indexbuffer_.o
In file included from ../Sources/src/kha/graphics5/IndexBuffer.cpp:5:
../Sources/include/hxinc/kha/arrays/Uint32ArrayPrivate.h:11:10: fatal error: cpp_uint32array.h: No such file or directory
   11 | #include "cpp_uint32array.h"
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [makefile:634: indexbuffer_.o] Error 1

Any help would be really appreciated.

RobDangerous commented 2 years ago

This does not look like "Kha latest from git" at all. Please show us the first lines of the build output. Also please note that your globally installed version of Haxe is irrelevant for Kha.

RobDangerous commented 2 years ago

Oh and also please use the issue template next time - wouldn't even have to ask for the build output if you had done that.

eugmarc commented 2 years ago

Hi, sorry for that, i'll be more careful next time. You mean these lines?

Using Kha (131001da) from /home/em/Kha
Using Kinc (890baf38) from /home/em/Kha/Kinc
RobDangerous commented 2 years ago

Those are the important ones, yes. So it is indeed current Kha. Try to delete the build dir so everything gets recreated, cpp_uint32array stopped existing last August.

eugmarc commented 2 years ago

That worked, thank you! I initialized the project using kode studio, may that have been the problem?

EDIT: actually looking at it, it's cuz I used the latest release which is dated 2018, my bad. Thank you again for the help.

RobDangerous commented 2 years ago

Kode Studio is a bit outdated, please use vscode and the Kha extension pack (just search for Kha in the extension panel) until I manage to change that.