I finally got the Solaris compile complete. It took quite a while. Since
this was discussed earlier, I'll give the gory details.
I downloaded these packages from sunfreeware:
gcc_small-3.4.1-sol9-sparc-local
make-3.80-sol9-sparc-local
ncurses-5.4-sol9-sparc-local
glib-2.2.3-sol9-sparc-local
libiconv-1.8-sol9-sparc-local
atk-1.2.4-sol9-sparc-local
expat-1.95.5-sol9-sparc-local
freetype-2.1.7-sol9-sparc-local
zlib-1.2.1-sol9-sparc-local
fontconfig-2.2.0-sol9-sparc-local
pango-1.2.5-sol9-sparc-local
mesa-6.0-sol9-sparc-local
gtk+-1.2.10-sol9-sparc-local
I may not have needed all of them.
···
====================================
I also installed these two, but I later removed them:
gtk-2.2.4-sol9-sparc-local
python-2.3.3-sol9-sparc-local
The gtk package blocked when installing the other one, and I didn't see
wx-config in gtk-2.2.4-sol9-sparc-local.
I the python binary wouldn't run because of a mismatch with libstdc++.so
(it wanted libstdc++.so.5 and after loading all the files I had
libstdc++.so.6). I downloaded Python-2.3.4.tar and compiled it.
====================================
A note about the installation of the sunfreeware binaries. This worked
really well. It's the first time I'd used stuff from that site. The
binaries use pkgadd, and they mostly if not all go in /usr/local. Our
Solaris machine already the Sun compiler in /opt, and there appears to
have been no collision. It's just a matter of setting the PATH
environment variables for the compiler you want to use.
====================================
(As a side note, I had some weird things happen with my tar files. There
were some crashes when untarring python and wxpython. I initially
downloaded them on a Linux box and then ftped them over to the Solaris
box. With the python tar, I had to delete the mac area and retar it on
the Linux box before shipping it over.)
===================================
The steps for the python2.3.4 tar were straightforward. I set the paths
as I did in the below scripts, but I had to add /usr/xpg4/bin to PATH
during the make to get ar.
====================================
Here are my bash scripts that I used for compiling.
.configure (as discussed by Robin Dunn in his build notes for wxWidgets)
-----------------------------------------------------------
export PATH=/usr/local/bin:$PATH
export CPATH=/usr/local/include
export COMPILER_PATH=/usr/local/bin
export LIBRARY_PATH=/usr/local/lib
export LD_LIBRARY_PATH=/usr/local/lib
../configure --prefix=/opt/wx/2.5 \
--with-gtk \
--enable-unicode \
--with-opengl \
--disable-monolithic \
--enable-geometry \
--enable-sound \
--with-sdl \
--enable-display \
--enable-gtk2 \
--enable-unicode
.make (as discussed by Robin Dunn in his build notes for wxWidgets)
--------------------------------------------------------------------
export PATH=/usr/local/bin:$PATH
export CPATH=/usr/local/include
export COMPILER_PATH=/usr/local/bin
export LIBRARY_PATH=/usr/local/lib
export LD_LIBRARY_PATH=/usr/local/lib
make $* \
&& make -C contrib/src/gizmos $* \
&& make -C contrib/src/ogl CXXFLAGS="-DwxUSE_DEPRECATED=0" $* \
&& make -C contrib/src/stc $* \
&& make -C contrib/src/xrc $*
.setup (for wxPython install)
export PATH=/usr/local/bin:$PATH
export CPATH=/usr/local/include
export COMPILER_PATH=/usr/local/bin
export LIBRARY_PATH=/usr/local/lib
export LD_LIBRARY_PATH=/usr/local/lib
cd ../wxPython
python2.3 setup.py build_ext --inplace \
WX_CONFIG=/opt/wx/2.5/bin/wxgtk2u-2.5-config \
WXPORT=gtk2 UNICODE=1
====================================
I was able to run the demo. I do get the following error MANY times in
whatever I run.
(demo.py:13851): GLib-GObject-CRITICAL **: file gvaluetypes.c: line 803
(g_value_get_pointer): assertion `G_VALUE_HOLDS_POINTER (value)' failed
=====================================
Tim
--
Tim Gee
R&D Engineer - Image Science and Machine Vision Group
Oak Ridge National Laboratory - Oak Ridge, TN 37831
Bethel Valley Rd.; Bldg. 3500, MS 6010, Rm. D18
phone: (865) 574-0338; fax: (865) 576-8380; geetf@ornl.gov