glsl-optimizer icon indicating copy to clipboard operation
glsl-optimizer copied to clipboard

Can't build on Ubuntu 15.10

Open Victoralm opened this issue 8 years ago • 1 comments

Need some help please, I'm getting this error message while trying to build with "cmake . && make":

Linking CXX executable glsl_compiler
libglsl_optimizer.a(standalone_scaffolding.cpp.o): na função `_mesa_error_no_memory':
standalone_scaffolding.cpp:(.text+0x5): múltipla definição de `_mesa_error_no_memory'
CMakeFiles/glsl_compiler.dir/src/glsl/main.cpp.o:main.cpp:(.text+0x0): definido primeiramente aqui
collect2: error: ld returned 1 exit status
CMakeFiles/glsl_compiler.dir/build.make:88: recipe for target 'glsl_compiler' failed
make[2]: *** [glsl_compiler] Error 1
CMakeFiles/Makefile2:97: recipe for target 'CMakeFiles/glsl_compiler.dir/all' failed
make[1]: *** [CMakeFiles/glsl_compiler.dir/all] Error 2
Makefile:75: recipe for target 'all' failed
make: *** [all] Error 2

Victoralm avatar Nov 20 '15 04:11 Victoralm

Looks like it is an ongoing issue. I fixed it by just going to the given file and removing the __mesa_error_no_memory function. If you look in pull requests you'll see a bunch of pulls wanting to fix errors like this. For example this guy has fixed it: https://github.com/djreep81/glsl-optimizer.

It seems like @aras-p doesn't feel like maintaining this repository anymore (which I kinda understand as he primarily works on Unity I think), but it would be great if he could at least merge all these fixes.

neon64 avatar Nov 23 '15 05:11 neon64