Closed porky11 closed 6 years ago
FindGLEW.cmake
should be included in your cmake installation. Debian f.e. installs it at /usr/share/cmake-3.7/Modules/FindGLEW.cmake
. Can you check if it is there?
After sudo ln /usr/share/cmake-3.9/Modules/{FindGLEW,Findglew}.cmake
calling cmake
it works.
But now I get another error:
In file included from /usr/include/c++/7.2.0/functional:58:0,
from /home/porky11/build/gl/include/gl/debug.hpp:9,
from /home/porky11/build/gl/source/debug.cpp:6:
/usr/include/c++/7.2.0/bits/std_function.h: In Instanziierung von »_Functor* std::function<_Res(_ArgTypes ...)>::target() [mit _Functor = void(unsigned int, unsigned int, unsigned int, unsigned int, int, const char*, const void*); _Res = void; _ArgTypes = {unsigned int, unsigned int, unsigned int, unsigned int, int, const char*, const void*}]«:
/home/porky11/build/gl/source/debug.cpp:26:128: von hier erfordert
/usr/include/c++/7.2.0/bits/std_function.h:733:9: Fehler: ungültige Verwendung von const_cast mit Typ »void (*)(unsigned int, unsigned int, unsigned int, unsigned int, int, const char*, const void*)«, das ein Zeiger oder Referenz auf Funktionstyp ist
return const_cast<_Functor*>(__func);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I tried addressing this in 3db4632e8e702a37224df35c89cd977b1cf9d1a2 please let me know if it works.
when calling
cmake .
in directory, I get folowing error message, but don't know, what it means: