Hello all, I’m attempting to build blender from source with wayland support on arch linux, but it seems to fail at the very end of the lengthy compilation process with the following error, which I assume is related to linking glew:
[100%] Linking CXX executable ../../bin/blender ../../lib/libbf_intern_ghost.a(GHOST_XrGraphicsBinding.cpp.o):GHOST_XrGraphicsBinding.cpp:function GHOST_XrGraphicsBindingOpenGL::initFromGhostContext(GHOST_Context&): error: undefined reference to '__glewXGetVisualFromFBConfig' collect2: error: ld returned 1 exit status make: *** [source/creator/CMakeFiles/blender.dir/build.make:470: bin/blender] Error 1 make: *** [CMakeFiles/Makefile2:7106: source/creator/CMakeFiles/blender.dir/all] Error 2 make: *** [Makefile:182: all] Error 2
The only other hunch I have is that this is related to arch linux and its separate glew and glew-wayland packages, which conflict with one another and do not seem to provide the same functionality. This bug report seems to detail more, and if you search “arch linux glew-wayland does not provide glew”, there are more reports with error messages similar to mine with different programs.
One weird thing with my build is that I had to fix a typo in OpenImageIO rawinput.cpp (longitude misspelled as longtitude in a method call), not sure if that’s relevant to my problem though.
Included CMakeCache.txt of the failed build.
Thanks for reading, hopefully I’ve just misunderstood something in the build process, as this is the first time I’ve compiled blender from source.