LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 05:46 PM   #1
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Rep: Reputation: 75
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, 06:33 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
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-02-2012, 11:10 PM   #3
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-15.0
Posts: 910

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

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

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
in x/ directory
 
Old 10-03-2012, 01:29 AM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
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 01:41 AM. Reason: s/x86-64/x86_64/
 
1 members found this post helpful.
Old 10-03-2012, 01:34 AM   #7
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
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, 01:43 AM   #8
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
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 02:28 AM. Reason: EDIT added
 
Old 10-03-2012, 12:24 PM   #9
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
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, 12:41 PM   #10
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
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 02:20 PM. Reason: s/don't/doesn't/
 
Old 10-03-2012, 01:03 PM   #11
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
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 01:04 PM.
 
1 members found this post helpful.
Old 10-03-2012, 02:12 PM   #12
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

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

Thanks everyone
 
Old 10-08-2012, 06:22 PM   #13
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,220

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

Code:
nvidia-switch --remove
 
  


Reply



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 02:48 PM
[SOLVED] Build a complete optimized Slackware using sbopkg? TobiSGD Slackware 7 03-27-2011 08:23 PM
wxPython build take a long time madhu Linux - Embedded & Single-board computer 1 12-16-2010 09:41 PM
wxpython build errors bmfan Linux - Software 1 11-21-2005 07:01 AM
wxPython Build Error slacklinux Linux - Newbie 8 05-26-2004 11:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:08 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
Open Source Consulting | Domain Registration