LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Cannot build wxPython from sbopkg (http://www.linuxquestions.org/questions/slackware-14/cannot-build-wxpython-from-sbopkg-4175430166/)

arubin 10-02-2012 05:46 PM

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

I get

Quote:

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

Quote:

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 @ http://slackbuilds.org 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:
Code:

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

/var/log/packages/mesa-8.0.4-x86_64-1
If you get no output instead, mesa is not installed.

arubin 10-03-2012 01:34 AM

It is installed

Quote:

root@Lavankossot:/home/alan# ls /var/log/packages/mesa*
/var/log/packages/mesa-8.0.4-x86_64-1
/var/log/packages/mesa-compat32-8.0.4-x86_64-1compat32
root@Lavankossot:/home/alan#

Didier Spaier 10-03-2012 01:43 AM

Then what says:
Code:

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

Quote:

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

Quote:

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 slackbuilds.org 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:

Code:

nvidia-switch --remove


All times are GMT -5. The time now is 06:41 AM.