Hi, thanks for the response. I tried the following as root:
1. Yes, the other make stuff was built, including gizmos, ogl, and stc. I went into each of those directories (contrib/src/gizmos etc) and did a make and make install, although I'm not sure that was necessary because of the previous make and make install command in the wxPython-src-.../wxPython directory
2. I added a /opt/wx/2.5/lib line to the /etc/ld.so.conf file and ran ldconfig
3. The /opt/wx/2.5/lib directory has ogl, stc, gizmos, etc .so files in it.
4. Anyway, I tried again:
in 'configure' command, I removed --with-opengl
in 'python setup install' command, it would not compile unless I removed everything with the following options
BUILD_GLCANVAS=0
BUILD_OGL=0 BUILD_STC=0
even though the libraries are installed.
5. Copy the demos directory to my normal user directory and switch to normal user mode (not root)
6. Switch to the demos directory, Many of the demos work fine. Editor.py was "messed up", and ...
7. with 'python demo.py'. I get a Monty Python splash screen, and then the following dump:
Traceback (most recent call last):
File "/home/sonic/code/wxDemos/Main.py", line 1663, in OnClose
frame = wxPythonDemo(None, "wxPython: (A Demonstration)")
File "/home/sonic/code/wxDemos/Main.py", line 1297, in __init__
self.LoadDemo(self.overviewText)
File "/home/sonic/code/wxDemos/Main.py", line 1364, in LoadDemo
self.LoadDemoSource()
File "/home/sonic/code/wxDemos/Main.py", line 1383, in LoadDemoSource
self.codePage.LoadDemo(self.demoModules)
File "/home/sonic/code/wxDemos/Main.py", line 588, in LoadDemo
self.ActiveModuleChanged()
File "/home/sonic/code/wxDemos/Main.py", line 592, in ActiveModuleChanged
self.LoadDemoSource(self.demoModules.GetSource())
File "/home/sonic/code/wxDemos/Main.py", line 600, in LoadDemoSource
self.JumpToLine(0)
File "/home/sonic/code/wxDemos/Main.py", line 605, in JumpToLine
self.editor.GotoLine(line)
File "/home/sonic/code/wxDemos/Main.py", line 522, in GotoLine
pos = self.editor.GetPositionFromLine(line)
AttributeError: 'DemoCodeEditor' object has no attribute 'editor'
I think somehow the python setup.py command isn't seeing the libraries or something. I'm more of a windows person, so linux builds have *ALWAYS* befuddled me. I just don't "get" it.
thanks again for any and all help
michelle
Robin Dunn wrote:
···
sonic wrote:
Hi all, I'm having trouble building wxPython 2.5.3.1.
This is my setup:
Linux 2.4.26 (slackware)
g++ 3.3.4
Python 2.3.4 (#1, May 29 2004, 17:05:23
GTK 2.4.3 (from configure)In summary from reading various postings, I *think* I need GTK-devel to run this thing. I tried turning GL off since I don't need it, but then I get a slew of other errors. The following are the details. Any help is mucho appreciated!!
Look at step #2 in the build instructions. You need to either build and
install some of the extra "contrib" libraries as part of the wxWidgets
build, or disable them in the wxPython build like you did for the GLCANVAS.