Closed larspensjo closed 10 years ago
This looks like some misconfiguration of GLEW/GLFW or the two other libs to me. IMHO either the symlinks libICE.so
-> libICE.so.6
and libSM.so
-> libSM.so.6
should be present (they are on two of my machines that I checked on) or at least the dependency info of GLEW/GLFW should point directly to the right (*.so.6) files.
I can confirm that the symlinks exist in Ubuntu, but not in Mint. I am not an expert on this, could you please tell me where I can check the dependency info for GLEW/GLFW?
That depends on how CMake detects GLUT/GLEW, which can get pretty complicated. I'd say that creating the missing symlinks by using ln -s
is the 'better' way how to solve this.
The failure to detect leads to OpenGL defaulting to 3.0, while 4.3 is supported.
I started with
The cmake script GLVerExt.cmake will do try_run() with the following arguments:
It turns out that the libraries libSM.so.6 and libICE.so.6 exists, but not libSM.so and libeICE.so, as requested by the script.
If I manually remove the specification of libIce and libSM, I can compile has_GL_4_3.cpp.