GarageGames / Torque3D

MIT Licensed Open Source version of Torque 3D from GarageGames
http://torque3d.org
MIT License
3.35k stars 1.2k forks source link

Build failing on Ubuntu 18.04.3 #2380

Open edukaded opened 5 years ago

edukaded commented 5 years ago

Trying to build using directions here... http://wiki.torque3d.org/coder:compiling-in-linux

Getting the following error...

/Torque3D/Engine/lib/sdl/src/video/wayland/SDL_waylandevents.c:41:10: fatal error: pointer-constraints-unstable-v1-client-protocol.h: No such file or directory
 #include "pointer-constraints-unstable-v1-client-protocol.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Tools/CMake/sdl2/CMakeFiles/SDL2.dir/build.make:3182: recipe for target 'Tools/CMake/sdl2/CMakeFiles/SDL2.dir/src/video/wayland/SDL_waylandevents.c.o' failed
make[2]: *** [Tools/CMake/sdl2/CMakeFiles/SDL2.dir/src/video/wayland/SDL_waylandevents.c.o] Error 1
CMakeFiles/Makefile2:876: recipe for target 'Tools/CMake/sdl2/CMakeFiles/SDL2.dir/all' failed
make[1]: *** [Tools/CMake/sdl2/CMakeFiles/SDL2.dir/all] Error 2
Makefile:129: recipe for target 'all' failed

It appears to be related to the fact that Ubuntu 18.04 switched back to XOrg and no longer uses Wayland. Is there a build flag I need to add or something?

rextimmy commented 5 years ago

You need to disable the SDL CMake flag VIDEO_VULKAN and it will compile again. -DVIDEO_VULKAN=OFF

edukaded commented 5 years ago

Thank you! Is this documented somewhere? Could someone maybe add the note to http://wiki.torque3d.org/coder:compiling-in-linux