I finally got wxPython built on freebsd 5.0. I got help from the port maintainer, but in summary here's what I went through. It may be not the easiest way, but it worked.
I could only get it to work using the port, but that may be because I rebuilt all dependencies prior to that approach (and once somthings working I don't usually try too many more times to break it).
1. The ports tree must be up to date. I used cvsup for the ports collection, but you can make install in /usr/ports. For more info on cvsup see the handbook. There are sample supfiles (I can't remember where, but the docs tell you. I'm on a win box at the moment), and I used that with minor changes.
2. Update your ports:
Using portupdate (sysutils/portupdate) was the easiest. It took a long time for me - apparently a lot of ports go out of date quickly. (You probably don't need to do this if you rebuild all dependencies - see next step).
3. Install wxPython
something like portupdate -NR x11-toolkits/wxPython
the -R flag rebuilds all required libraries. It let it run overnight (it rebuilt everything including the x-server etc). It may not be required if everything is up to date, but I couldn't get the install to work until I did it. May be something to do with installing binary packages vs compiling & installing ports. I don't understand computer magic.
You should then have a working system. To give you an understanding, it took me from last Tuesday until Monday night to gain an understanding of pkgdb and portupgrade, and to get everything rebuilt and upgraded.
If you wan't more help then feel free to email me direct. Similarly the port maintainer was very very helpful. The attached messages came from a request for help from them.
Chris.
Re_ failure to build wxGtk.txt (5.62 KB)
update_script.txt (570 Bytes)
reply1.txt (10.2 KB)
···
----- Original Message -----
From: Harald Schneider
To: wxpython-users@lists.wxwindows.org
Sent: Monday, May 12, 2003 9:05 PM
Subject: [wxPython-users] Building on FreeBSD 4.2.6
Hi,
I'm trying to build wxPython on FreeBSD - up to now with no success :-/
As prerequisites, I've built glib-1.2.10, gtk+-1.2.10 and wxGTK-2.4.0.
Calling setup.py aborts with the following output:
freebsd4:~/install/wxWindows/wxPythonSrc-2.4.0.7/wxPython# python setup.py
build install
Found wx-config: /usr/local/bin/wxgtk-2.4-config
Preparing CORE...
Preparing GLCANVAS...
Preparing OGL...
Preparing STC...
Preparing XRC...
Preparing GIZMOS...
Preparing DLLWIDGET...
running build
running build_py
copying wxPython/__version__.py ->
build/lib.freebsd-4.6.2-RELEASE-i386-2.2/wxPython
running build_ext
building 'wxc' extension
cc -DNDEBUG -O -pipe -D_THREAD_SAFE -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H
-DWXP_USE_THREAD=1 -UNDEBUG -Isrc -I/usr/local/include/python2.2 -c
src/gtk/windows2.cpp -o
build/temp.freebsd-4.6.2-RELEASE-i386-2.2/src/gtk/windows2.o
-I/usr/local/lib/wx/include/gtk-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/local/include/gtk-1.2
-I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include
-I/usr/X11R6/include
In file included from src/gtk/windows2.cpp:57:
src/helpers.h:16: wx/wx.h: No such file or directory
src/helpers.h:17: wx/geometry.h: No such file or directory
src/gtk/windows2.cpp:61: wx/notebook.h: No such file or directory
src/gtk/windows2.cpp:62: wx/splitter.h: No such file or directory
src/gtk/windows2.cpp:63: wx/imaglist.h: No such file or directory
In file included from src/gtk/windows2.cpp:57:
src/helpers.h:30: `wxObject' was not declared in this scope
src/helpers.h:30: syntax error before `,'
src/helpers.h:33: syntax error before `&'
src/helpers.h:36: syntax error before `&'
src/helpers.h:40: syntax error before `&'
src/helpers.h:41: syntax error before `('
src/helpers.h:43: syntax error before `&'
src/helpers.h:44: `wxObject' was not declared in this scope
....
Any help out there?
Thanks in advance,
Harald
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org