FS#9822 - [wxgtk, nvidia-utils] Can't build wxgtk when nvidia-utils installed
Attached to Project:
Arch Linux
Opened by Rulatir (Rulatir) - Wednesday, 12 March 2008, 17:48 GMT
Last edited by Jan de Groot (JGC) - Sunday, 16 March 2008, 23:43 GMT
Opened by Rulatir (Rulatir) - Wednesday, 12 March 2008, 17:48 GMT
Last edited by Jan de Groot (JGC) - Sunday, 16 March 2008, 23:43 GMT
|
Details
Description:
I can't build wxgtk when nvidia-utils is installed. configure fails with: checking for -lGL... no checking for -lMesaGL... no configure: error: OpenGL libraries not available It seems that for some reason the configure process fails to recognize the GL library that comes with nvidia-utils as genuine libGL.so. I know I should have removed nvidia drivers and tried with libgl (Mesa) just to see if it would work, but I was afraid of breaking my system, sorry. Additional info: * package version(s) wxgtk-2.8.7-1 nvidia-utils-169.12-1 Steps to reproduce: On a system with nvidia-utils installed: $ yaourt -Sb wxgtk |
This task depends upon
checking for OpenGL headers... found in /usr/include
checking for GL/gl.h... yes
checking GL/glu.h usability... yes
checking GL/glu.h presence... yes
checking for GL/glu.h... yes
checking for -lGL... no
checking for -lMesaGL... no
configure: error: OpenGL libraries not available
/usr/lib/libGL.so is present on my system, however /usr/lib/libMesaGL.so is not. It is provided by libgl which in turn conflicts with nvidia-utils.
Actually it is not provided by libgl. I don't know what provides libMesaGL.so (mesa doesn't). Perhaps configure only checks for -lMesaGL when -lGL check fails. Why does it fail is the question.
Actually it is not provided by libgl. I don't know what provides libMesaGL.so (mesa doesn't). Perhaps configure only checks for -lMesaGL when -lGL check fails. Why does it fail is the question.
I added echos to the loop that chcecks for -lGL in configure. It appears that configure doesn't look in /usr/lib where the file is. It looks in /usr/lib64. Symlinking worked as a quick fix (libGLU.so needs a symlink too, and then configure doesn't check for -lMesaGL).
[later]
Perhaps the test at 2641 in configure.in is involved. It takes the lib64 path because /usr/lib64 is present on my system, containing openscenegraph. Should we blame openscenegraph for creating /usr/lib64 or patch our configure.in?
I am not sure we are building from chroot. Makepkg uses fakeroot which AFAIU only simulates some root user privileges and doesn't change root in the chroot sense; programs still see the normal filesystem.
To whom it may concern, if you are unlucky to have /usr/lib64, you can build wxgtk by symlinking libGL.so and libGLU.so from /usr/lib64 as described in comments above. I don't know how unsafe it is, or whether linked wxgtk applications will then require the symlinks.