FarPlaneTwo

FarPlaneTwo

18.5k Downloads

Gradle task 'compileNatives' throws 'cstdint' not found error (fp2.h)

singlerr opened this issue ยท 1 comments

commented

Environment:
Ubuntu 22.04 (running in VMWare)
Openjdk 8
Clang
cmake
branch:master(latest commit)

I've edited line 31 at module.mk
@$(CXX) $(CXXFLAGS) -c $*.cpp -o $@ -> @$(CXX) $(CXXFLAGS) -c $*.cpp -o $@ -I/usr/lib/jvm/java-8-openjdk-amd64/include -I/usr/lib/jvm/java-8-openjdk-amd64/include/linux to solve 'jni.h' and 'jni_md.h' not found error

error:
/home//IdeaProjects/FarPlaneTwo/src/main/native/fp2.h:26:10: fatal error: 'cstdint' file not found
#include
^~~~~~~~~
1 error generated.

Also I've tried adding -std=c++11 to statement above, but it throws errors more and not solved

commented

Solved - re-installed correct clang