LINUX.ORG.RU

Не компилируется Stratagus. Cmake -Werror

 


0

1

Manjaro. Пытаюсь поставить stratagus из аура. Не компиляется со следующей ошибкой:

/usr/include/SDL/SDL_opengl.h:116: error: "GL_GLEXT_VERSION" redefined [-Werror]
 #define GL_GLEXT_VERSION 29
 
In file included from /usr/include/GL/gl.h:2055,
                 from /usr/include/SDL/SDL_opengl.h:46,
                 from /home/alyokhin/build/stratagus.aur/src/stratagus/src/include/video.h:46,
                 from /home/alyokhin/build/stratagus.aur/src/stratagus/src/action/action_attack.cpp:60:
/usr/include/GL/glext.h:54: note: this is the location of the previous definition
 #define GL_GLEXT_VERSION 20180725
 
cc1plus: all warnings being treated as errors
make[2]: *** [CMakeFiles/stratagus.dir/build.make:90: CMakeFiles/stratagus.dir/src/action/action_attack.cpp.o] Error 1
make[2]: Leaving directory '/home/alyokhin/build/stratagus.aur/src/build'
make[1]: *** [CMakeFiles/Makefile2:147: CMakeFiles/stratagus.dir/all] Error 2
make[1]: Leaving directory '/home/alyokhin/build/stratagus.aur/src/build'
make: *** [Makefile:130: all] Error 2
make: Leaving directory '/home/alyokhin/build/stratagus.aur/src/build'
==> ERROR: A failure occurred in build().
    Aborting...

Такая же висит в комментах к пакету в ауре. Насколько я понял, сама нестыковка версий может быть и не критичнна. Но где-то выставлен параметр -Werror и все предупреждения обрабатываются как ошибки. Где это подправить можно?

Если лень искать, откуда приходит -Werror, можно добавить патчик, добавляющий «#undef GL_GLEXT_VERSION» перед «#include <SDL_opengl.h>». Ну вдруг это единственное предупреждение ;-)

bormant ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.