LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-23-2006, 04:25 AM   #1
SittingInFrontOfPC
LQ Newbie
 
Registered: Apr 2006
Posts: 8

Rep: Reputation: 0
wxPython foolproof build from source script


Everytime I upgrade to a new Fedora core I
get round to installing from source wxPython
run into problems. Does anyone have a
foolproof script that doesn't require me
to add *any* options.

./configure
make
make install
cd wxPython
python config.py
python setup.py build
python setup.py install

This never works, doesn't have Unicode
enabled, doesn't seem to remove old failed
installations.

I've started searching for replacements
to wxPython because it's so annoying to get working.

I haven't got unicode, or the extra stc
or whatever weren't installed, or I have
a hundred slightly different shared libraries
hanging around. I don't want to know this
snarfus I just want to get on and program.

Arghhhh ldconfig!
 
Old 08-23-2006, 05:49 AM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
Surely wxPython is in the FC repositories somewhere? 'yum install wxpython' would be my foolproof guess.
 
Old 08-23-2006, 06:11 AM   #3
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware64 14.0
Posts: 1,517

Rep: Reputation: 90
If you really want to install it yourself instead of using a precompiled package: Type "./configure --help" -- there should be many switches you could use like --enable-monolithic or --enable-unicode ... Save your commands in a seperate script file and use it as a build script.

I don't know how to package a RPM file, but you can save the build files in a seperate folder to package them. This way you can install/uninstall better. "python setup.py build install --root=/path/to/package-folder" as an substitution for your last two lines should do this IMHO.
 
Old 08-23-2006, 06:41 AM   #4
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
There is a way to build an RPM straight from the Python setup.py. Check setup.py --help for how to do it.
 
Old 08-25-2006, 05:17 PM   #5
SittingInFrontOfPC
LQ Newbie
 
Registered: Apr 2006
Posts: 8

Original Poster
Rep: Reputation: 0
wxPython has too many gimmicks. Compiling
against different python versions. Unicode
or not, widgets to be installed. Monolithic
or not. I'm a end user programmer I need a
standard setup, yum works for my connected
computer, but my offline 'never to be connected'
often cutting edge fedora core needs stability.
Define the standard and have the build scripts
run to that standard, like it used to be!
./configure
make
make install
python setup.py install
 
Old 08-26-2006, 05:01 AM   #6
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware64 14.0
Posts: 1,517

Rep: Reputation: 90
I had to use "--enable-config" to compile vlc from source, else it complained. The rest I left unchanged (didn't know either how to finetune configure).
 
Old 08-26-2006, 10:45 PM   #7
SittingInFrontOfPC
LQ Newbie
 
Registered: Apr 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Seems wxPython is tied to the version of python.
Even ungrading from 2.4.2 to 2.4.3 will trash
wxPython with segment faults. Have to reinstall
wxGTK or something. Don't know, don't care.
Looking for a different widget set. :-(
 
  


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
wxpython build errors bmfan Linux - Software 1 11-21-2005 07:01 AM
Foolproof hiding of folders? habala Linux - Newbie 2 01-01-2005 04:02 AM
Redirect script output to log window in wxPython wapcaplet Programming 1 07-04-2004 08:59 PM
where is linux source build directory/kernel source tree? webazoid Linux - Software 2 07-01-2004 08:37 PM
wxPython Build Error slacklinux Linux - Newbie 8 05-26-2004 11:12 PM


All times are GMT -5. The time now is 04:11 AM.

Main Menu
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