|
From: R. D. R. <rd...@sb...> - 2007-04-06 21:37:58
|
Hello,
Thank you for responding. I'll send the information you asked
about below, along with a few additional comments.=20
> -----Original Message-----
> From: Hans-Bernhard Br=F6ker [mailto:HBB...@t-...]=20
> Sent: Friday, April 06, 2007 12:45 PM
> To: R. D. Ross
> Cc: gnu...@li...
> Subject: Re: [Gnuplot-info] Difficulty getting wxWidgets to work
>=20
> R. D. Ross wrote:
>=20
> > I need help. I've been tasked with building a version of=20
> gnuplot 4.2 =20
> > using wxWidgets and gtk2. I'm doing this on a SLES 9 system, so I=20
> > downloaded many of the constituent kits, built them along with gtk2=20
> > and wxWidgets and "successfully" linked a gnuplot executable.
>=20
> > I start gnuplot:
> >=20
> > ./gnuplot
>=20
> This way of starting gnuplot indicates potential trouble.
>=20
> Better try use "make install" then just run
>=20
> gnuplot
>=20
> (without the "./" to start it from the current working directory).
I did a "make install" after the build was completed. I'll mention
that I've had no problems in the past running ./gnuplot, but I went
ahead and ran it from the full path:
/tmp/external.rross/bin/gnuplot (This is the install area)
The results were the same as before. Also, the other terminal types
seem to be OK. At least, when I did this, it worked.
set terminal x11
plot x*x (parabola displayed in an X window)
splot x*x+y*y (3-dimensional surface is displayed in X window)
>=20
> > What can I do to diagnose the failure? Is there a log=20
> somewhere I can=20
> > view?
>=20
> ldd gnuplot
>=20
> should be worth a look, to check for possible installation=20
> problems of one of those lots of shared libraries you=20
> installed immediately before building gnuplot...
I have included these items below:
- The configure parameters that I used in the build
- The link line from the log
- The output from "ldd gnuplot"
A bit more information. The system used to compile this was SLES9. =
This is
because we want to build it on a least common denominator, and have it =
run
successfully on other systems, like SLES10, RHEL4, RHEL5, and others. =
The
eventual intent is to link the gnuplot binary statically (with the =
exception
of a few things like libm, libc) and distribute it along with a product =
that
calls gnuplot. You will see many of the libraries that I compiled and
linked
in the 'ldd gnuplot' list. Eventually we want to produce ".a" files and =
statically link the whole thing. But first, it needs to work!
Also, the compiler used was gcc 4.0.2. The machine native compiler, gcc
3.3.3
is not being used. That is why some of the libraries are in
/usr/local/lib64,
(gcc 4.0.2) vs. /usr/lib64 (native installed compiler)
This is the 64 bit version. When this works, we will also do a build =
for 32
bit.
# configure parameters
export TERMLIBS=3D"-Bstatic -lpng -lgd -lpng -lfontconfig -lfreetype =
-lexpat
\
-lwx_gtk2univ-2.8"
=20
usr_local=3D/usr/local/lib64
PREFIX=3D/tmp/external.rross
export PKG_CONFIG_PATH=3D$PREFIX/lib/pkgconfig
export LD_RUN_PATH=3D:$PREFIX/lib:$usr_local:
export LD_LIBRARY_PATH=3D$PREFIX/lib:$usr_local:
./configure --prefix=3D$PREFIX \
--without-tutorial \
--enable-static \
--with-png=3D$PREFIX \
--with-gd=3D$PREFIX \
--enable-wxwidgets \
--with-wx-config=3D$PREFIX/bin \
--with-pic \
--disable-shared \
LDFLAGS=3D"-L$PREFIX/lib -L$usr_local" CPPFLAGS=3D-I$PREFIX/include
# Link line
g++ -g -O2
-I/tmp/external.rross/lib/wx/include/gtk2univ-ansi-release-static-2.8
-I/tmp/external.rross/include/wx-2.8 -D_FILE_OFFSET_BITS=3D64 =
-D_LARGE_FILES
-D_LARGEFILE_SOURCE=3D1 -D__WXUNIVERSAL__ -D__WXGTK__ -pthread
-DPNG_NO_MMX_CODE -I/tmp/external.rross/include/cairo
-I/tmp/external.rross/include/libpng12
-I/tmp/external.rross/include/pango-1.0
-I/tmp/external.rross/include/glib-2.0
-I/tmp/external.rross/lib/glib-2.0/include -I/usr/include/freetype2
-DPNG_NO_MMX_CODE -I/tmp/external.rross/include/gtk-2.0
-I/tmp/external.rross/lib/gtk-2.0/include
-I/tmp/external.rross/include/atk-1.0 =
-I/tmp/external.rross/include/cairo
-I/tmp/external.rross/include/pango-1.0
-I/tmp/external.rross/include/glib-2.0
-I/tmp/external.rross/lib/glib-2.0/include -I/usr/include/freetype2
-I/tmp/external.rross/include/libpng12 -L/tmp/external.rross/lib
-L/usr/local/lib64 -L/usr/lib64 -L/usr/X11R6/lib64 -o gnuplot alloc.o
axis.o breaders.o bitmap.o color.o command.o contour.o datafile.o =
dynarray.o
eval.o fit.o gadgets.o getcolor.o graph3d.o graphics.o help.o hidden3d.o
history.o internal.o interpol.o matrix.o misc.o mouse.o parse.o plot.o
plot2d.o plot3d.o pm3d.o readline.o save.o scanner.o set.o show.o =
specfun.o
standard.o stdfn.o tables.o term.o time.o unset.o util.o util3d.o =
variable.o
version.o gp_cairo.o wxt_gui.o -lreadline -lncurses -Bstatic -lpng =
-lgd
-lpng -lfontconfig -lfreetype -lexpat -lwx_gtk2univ-2.8 -lz -lgd -lXpm =
-lX11
-ljpeg -lfreetype -lpng12 -lz -lm -L/tmp/external.rross/lib -pthread
-L/usr/X11R6/lib64 /tmp/external.rross/lib/libwx_gtk2univ-2.8.a =
-pthread
-L/tmp/external.rross/lib -L/usr/X11R6/lib64 -L/usr/lib64 -lgtk-x11-2.0
-lgdk-x11-2.0 -lXrandr -lXrender -lXinerama -lXext -lX11 -latk-1.0
-lgdk_pixbuf-2.0 -lpangoft2-1.0 -lpango-1.0 -lm -lgobject-2.0 =
-lgmodule-2.0
-ldl -lfreetype -lfontconfig -lpng12 -lgthread-2.0 -lrt -lglib-2.0
-lXinerama -lXxf86vm -lSM -lpng -lz -ljpeg -ltiff -lz -ldl -lm
-L/tmp/external.rross/lib -L/usr/lib64 -lpangocairo-1.0 -lcairo
-lpangoft2-1.0 -lfreetype -lfontconfig -lpng12 -lpango-1.0 -lm =
-lgobject-2.0
-lgmodule-2.0 -ldl -lglib-2.0 -L/tmp/external.rross/lib =
-L/usr/X11R6/lib64
-L/usr/lib64 -lgtk-x11-2.0 -lgdk-x11-2.0 -lXrandr -lXrender -lXinerama
-lXext -lX11 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo
-lpangoft2-1.0 -lpango-1.0 -lm -lgobject-2.0 -lgmodule-2.0 -ldl =
-lglib-2.0
-lfreetype -lfontconfig -lpng12 -lm
# ldd list
rross@shona1:/tmp/external.rross/bin> ldd gnuplot
libreadline.so.4 =3D> /lib64/libreadline.so.4 =
(0x0000002a9566d000)
libncurses.so.5 =3D> /lib64/libncurses.so.5 (0x0000002a957a7000)
libpng12.so.0 =3D> /tmp/external.rross/lib/libpng12.so.0
(0x0000002a95908000)
libgd.so.2 =3D> /tmp/external.rross/lib/libgd.so.2
(0x0000002a95a2c000)
libfontconfig.so.1 =3D> /usr/lib64/libfontconfig.so.1
(0x0000002a95b82000)
libfreetype.so.6 =3D> /usr/lib64/libfreetype.so.6 =
(0x0000002a95cbb000)
libexpat.so.0 =3D> /usr/lib64/libexpat.so.0 (0x0000002a95e44000)
libXpm.so.4 =3D> /usr/X11R6/lib64/libXpm.so.4 =
(0x0000002a95f67000)
libX11.so.6 =3D> /usr/X11R6/lib64/libX11.so.6 =
(0x0000002a96077000)
libjpeg.so.62 =3D> /usr/lib64/libjpeg.so.62 (0x0000002a96287000)
libgtk-x11-2.0.so.0 =3D> =
/tmp/external.rross/lib/libgtk-x11-2.0.so.0
(0x0000002a963a9000)
libgdk-x11-2.0.so.0 =3D> =
/tmp/external.rross/lib/libgdk-x11-2.0.so.0
(0x0000002a9682d000)
libXrandr.so.2 =3D> /usr/X11R6/lib64/libXrandr.so.2
(0x0000002a969c0000)
libXrender.so.1 =3D> /usr/X11R6/lib64/libXrender.so.1
(0x0000002a96ac4000)
libXext.so.6 =3D> /usr/X11R6/lib64/libXext.so.6 =
(0x0000002a96bcd000)
libatk-1.0.so.0 =3D> /tmp/external.rross/lib/libatk-1.0.so.0
(0x0000002a96cde000)
libgdk_pixbuf-2.0.so.0 =3D>
/tmp/external.rross/lib/libgdk_pixbuf-2.0.so.0
(0x0000002a96dff000)
libpangoft2-1.0.so.0 =3D> =
/tmp/external.rross/lib/libpangoft2-1.0.so.0
(0x0000002a96f16000)
libpango-1.0.so.0 =3D> /tmp/external.rross/lib/libpango-1.0.so.0
(0x0000002a97045000)
libm.so.6 =3D> /lib64/tls/libm.so.6 (0x0000002a9718a000)
libgobject-2.0.so.0 =3D> =
/tmp/external.rross/lib/libgobject-2.0.so.0
(0x0000002a972e2000)
libgmodule-2.0.so.0 =3D> =
/tmp/external.rross/lib/libgmodule-2.0.so.0
(0x0000002a97423000)
libdl.so.2 =3D> /lib64/libdl.so.2 (0x0000002a97527000)
libgthread-2.0.so.0 =3D> =
/tmp/external.rross/lib/libgthread-2.0.so.0
(0x0000002a9762a000)
librt.so.1 =3D> /lib64/tls/librt.so.1 (0x0000002a9772e000)
libglib-2.0.so.0 =3D> /tmp/external.rross/lib/libglib-2.0.so.0
(0x0000002a97837000)
libSM.so.6 =3D> /usr/X11R6/lib64/libSM.so.6 (0x0000002a979d7000)
libtiff.so.3 =3D> /usr/lib64/libtiff.so.3 (0x0000002a97ae1000)
libpangocairo-1.0.so.0 =3D>
/tmp/external.rross/lib/libpangocairo-1.0.so.0
(0x0000002a97c35000)
libcairo.so.2 =3D> /tmp/external.rross/lib/libcairo.so.2
(0x0000002a97d3e000)
libstdc++.so.6 =3D> /usr/local/lib64/libstdc++.so.6
(0x0000002a97eb6000)
libgcc_s.so.1 =3D> /usr/local/lib64/libgcc_s.so.1 =
(0x0000002a980b3000)
libpthread.so.0 =3D> /lib64/tls/libpthread.so.0 =
(0x0000002a981c0000)
libc.so.6 =3D> /lib64/tls/libc.so.6 (0x0000002a982d4000)
libz.so.1 =3D> /lib64/libz.so.1 (0x0000002a984fc000)
/lib64/ld-linux-x86-64.so.2 (0x0000002a95556000)
libICE.so.6 =3D> /usr/X11R6/lib64/libICE.so.6 =
(0x0000002a98610000)
|