Linux GLFW build error

Paul59

Active member
CX Code Contributor
Joined
Dec 13, 2018
Messages
384
Did a fresh install of Linux Mint a few weeks ago, now CX is giving me this error when trying to build a game for glfw:

TRANS cerberus compiler V2019-02-21 Parsing... Semanting... Translating... Building... gcc -O0 -Wno-int-to-pointer-cast -Wno-free-nonheap-object -Wno-unused-result -I../glfw3/include -I../openal/include -I../stb -I../glfw3/deps -I../glfw3/deps/vulkan -D_GLFW_HAS_GLXGETPROCADDRESS -pthread -c -o build/Debug/context.o ../glfw3/src/context.c In file included from ../glfw3/src/../include/GLFW/glfw3.h:133:0, from ../glfw3/src/internal.h:47, from ../glfw3/src/context.c:28: /usr/lib/gcc/x86_64-linux-gnu/7/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory # include_next <stdint.h> ^~~~~~~~~~ compilation terminated. Makefile:59: recipe for target 'build/Debug/context.o' failed make: *** [build/Debug/context.o] Error 1 TRANS FAILED: Error executing 'make CCOPTS=" -O0" LDOPTS=" " LIBOPTS=" -lopenal" OUT="Debug/CerberusGame"', return code=512 Done.

The file referred to (/usr/lib/gcc/x86_64-linux-gnu/7/include/stdint.h) does exist but I don't know what the #include_next directive does.

Any suggestions please?

Paul

PS The HTML5 target works fine
 

dawlane

Well-known member
CX Code Contributor
Tutorial Author
Joined
Jun 21, 2017
Messages
1,000
What version of Linux Mint, GCC and libstdc++?
Are all development packages installed?
Has the system had any caution updates installed?

The #include_next preprocessor directive is used any other header file with the same name. There is usually a #ifndef variable somewhere it to indicate if the file have already been included.
 

Paul59

Active member
CX Code Contributor
Joined
Dec 13, 2018
Messages
384
Thanks for that.

It's Mint 19.1 XFCE with gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0 and libstdc++.so.6.0.25

Not sure what you mean by a 'caution update'?

I've got libglfw3-dev installed, is there a list somewhere of what dev packages are required by CX?

EDIT: OpenAL dev is also installed
 
Last edited:

Paul59

Active member
CX Code Contributor
Joined
Dec 13, 2018
Messages
384
Thanks again, all sorted now. And sorry for not finding your thread - I'd even replied to it!
 

MikeHart

Administrator
CX Code Contributor
3rd Party Module Dev
3rd Party Target Dev
3rd Party Tool Dev
Joined
Jun 19, 2017
Messages
3,453
You can always bookmark a topic.
 
Top Bottom