PorkStudios / FarPlaneTwo

Level-of-Detail renderer in Minecraft. Allows for render distances of millions of blocks. (Cubic Chunks-compatible) (WIP)
https://daporkchop.net/
Other
1.45k stars 48 forks source link

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

Closed singlerr closed 2 years ago

singlerr commented 2 years ago

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

singlerr commented 2 years ago

Solved - re-installed correct clang