aras-p / glsl-optimizer

GLSL optimizer based on Mesa's GLSL compiler. Used to be used in Unity for mobile shader optimization.
Other
1.73k stars 422 forks source link

Can't build on Ubuntu 15.10 #118

Open Victoralm opened 8 years ago

Victoralm commented 8 years ago

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
neon64 commented 8 years ago

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.