-   Slackware (
-   -   Cannot build wxPython from sbopkg (

arubin 10-02-2012 05:46 PM

Cannot build wxPython from sbopkg
This is in Slackware 14 multilib.

I get


usr/include/gconf/2 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/X11R6/include -DWX_PRECOMP -pthread -Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -O2 -fPIC ./src/gtk/glcanvas.cpp
In file included from ./include/wx/glcanvas.h:54:0,
from ./src/gtk/glcanvas.cpp:17:
./include/wx/gtk/glcanvas.h:20:20: fatal error: GL/glx.h: No such file or directory
compilation terminated.
make: *** [gldll_gtk_glcanvas.o] Error 1

Didier Spaier 10-02-2012 06:33 PM

In Slackware 14 /usr/include/GL/glx.h comes from the package mesa-8.0.4. Did you install it?

slackass 10-02-2012 11:10 PM

I just finished running off dvdstyler with sbopkg which included wxPython as a dependency on Slack64-14.0 non-multilib.

arubin 10-03-2012 01:06 AM

Where is mesa? I did a full install and I don't see it on Slackbuilds.

willysr 10-03-2012 01:15 AM

in x/ directory

Didier Spaier 10-03-2012 01:29 AM


Originally Posted by arubin (Post 4795681)
Where is mesa? I did a full install and I don't see it on Slackbuilds.

If you mean that you don't see it @ this is normal as this website doesn't host slackbuilds for packages already included in the Slackware distribution. To check that you have it installed just type:

ls /var/log/packages mesa*
. This command should return something like this:

If you get no output instead, mesa is not installed.

arubin 10-03-2012 01:34 AM

It is installed


root@Lavankossot:/home/alan# ls /var/log/packages/mesa*

Didier Spaier 10-03-2012 01:43 AM

Then what says:

ls -l /usr/include/GL/glx.h
PS Do you have the fglrx module for ATI cards installed? I ask that because it installs the file /usr/include/ATI/GL/glx.h. Not sure at all that your problem could be related to that so just asking out of curiosity.

arubin 10-03-2012 12:24 PM


alan@Lavankossot:~$ ls -l /usr/include/GL/glx.h
lrwxrwxrwx 1 root root 12 Oct 3 18:18 /usr/include/GL/glx.h -> glx.h-nvidia
I have also noticed a similar problem if I try to recompile the nvidia driver


CC command-line.c
In file included from command-line.c:32:0:
glxinfo.h:23:20: fatal error: GL/glx.h: No such file or directory
compilation terminated.
make[1]: *** [_out/Linux_x86_64/command-line.o] Error 1
make[1]: Leaving directory `/mnt/sdb6/slackware14/var/SBo/tmp/nvidia-settings-302.17/src'
make: *** [all] Error 2

Didier Spaier 10-03-2012 12:41 PM

So I guess wx-Python expects to find the header file from mesa and doesn't, that's why the compilation fails.

But that's only a guess, so I will leave to experts confirming that or not.

T3slider 10-03-2012 01:03 PM

I think one version of the nvidia-driver SlackBuild at replaced /usr/include/GL/glx.h, breaking compilation of some apps. I don't know why this was done -- I install the nVidia drivers without the SlackBuild (one of the only pieces of software I install that way) and that file was never touched, and compilation works as it should. You should reinstall mesa (and maybe xorg-server) and then reinstall the nVidia drivers. I think the SlackBuild still overwrites that file so you may wish to try commenting that line out...or ask kingbeowulf (the maintainer) why it is happening in the first place.

According to this post you can manually change that one symlink to point to the original file, so you may not have to reinstall anything.

arubin 10-03-2012 02:12 PM

Well I re-installed mesa and wxPython compiled OK. I think I will go and re-install nvidia.

Thanks everyone

dugan 10-08-2012 06:22 PM

You need to do the following before attempting to rebuild the nvidia-driver:


nvidia-switch --remove

All times are GMT -5. The time now is 12:06 PM.