LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-02-2012, 06:46 PM   #1
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,210

Rep: Reputation: 55
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
 
Old 10-02-2012, 07:33 PM   #2
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,651

Rep: Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233
In Slackware 14 /usr/include/GL/glx.h comes from the package mesa-8.0.4. Did you install it?
 
1 members found this post helpful.
Old 10-03-2012, 12:10 AM   #3
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-C ML
Posts: 890

Rep: Reputation: 78
I just finished running off dvdstyler with sbopkg which included wxPython as a dependency on Slack64-14.0 non-multilib.
 
Old 10-03-2012, 02:06 AM   #4
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,210

Original Poster
Rep: Reputation: 55
Where is mesa? I did a full install and I don't see it on Slackbuilds.
 
Old 10-03-2012, 02:15 AM   #5
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,618

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
in x/ directory
 
Old 10-03-2012, 02:29 AM   #6
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,651

Rep: Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233
Quote:
Originally Posted by arubin View Post
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.

Last edited by Didier Spaier; 10-03-2012 at 02:41 AM. Reason: s/x86-64/x86_64/
 
1 members found this post helpful.
Old 10-03-2012, 02:34 AM   #7
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,210

Original Poster
Rep: Reputation: 55
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#
 
Old 10-03-2012, 02:43 AM   #8
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,651

Rep: Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233
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.

Last edited by Didier Spaier; 10-03-2012 at 03:28 AM. Reason: EDIT added
 
Old 10-03-2012, 01:24 PM   #9
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,210

Original Poster
Rep: Reputation: 55
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
 
Old 10-03-2012, 01:41 PM   #10
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,651

Rep: Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233
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.

Last edited by Didier Spaier; 10-03-2012 at 03:20 PM. Reason: s/don't/doesn't/
 
Old 10-03-2012, 02:03 PM   #11
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,297

Rep: Reputation: 722Reputation: 722Reputation: 722Reputation: 722Reputation: 722Reputation: 722Reputation: 722
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.

Last edited by T3slider; 10-03-2012 at 02:04 PM.
 
1 members found this post helpful.
Old 10-03-2012, 03:12 PM   #12
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,210

Original Poster
Rep: Reputation: 55
Well I re-installed mesa and wxPython compiled OK. I think I will go and re-install nvidia.

Thanks everyone
 
Old 10-08-2012, 07:22 PM   #13
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,976

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

Code:
nvidia-switch --remove
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SBopkg build queue for multimedia dependencies damgar Slackware 1 07-01-2012 03:48 PM
[SOLVED] Build a complete optimized Slackware using sbopkg? TobiSGD Slackware 7 03-27-2011 09:23 PM
wxPython build take a long time madhu Linux - Embedded & Single-board computer 1 12-16-2010 10:41 PM
wxpython build errors bmfan Linux - Software 1 11-21-2005 08:01 AM
wxPython Build Error slacklinux Linux - Newbie 8 05-27-2004 12:12 AM


All times are GMT -5. The time now is 03:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration