Page 1 of 1

link on gtk is impossible

Posted: Tue Nov 30, 2004 9:25 am
by Riccardo Cohen
Hi,
I've been searching and searching, asking the mailing list of wx and dialogblocks. Still not found :

I have linux debian with gtk2
I build latest cvs with the following configure :
../configure --disable-shared --enable-debug --disable-optimise --enable-no_rtti --disable-compat24 --enable-mdi --with-opengl --enable-monolithic --with-gtk --with-libpng=sys --with-zlib=sys --with-libjpeg=sys

I build the widgets sample
It runs.
Now I take the widgets program built, try to run it on a knoppix (debian+kde) station.
1) it asks for lipng.so.2 which is not present (only have libpng.so), and so I have to add this library in current path (from the other PC) and add current path to LD_LIBRARY_PATH. I initially did not build wx with --with-libpng=sys and it was the same.

2) the sample runs but all radio box, check box, buttons etc.. are invisible (only texts remain!) I cannot understand what's wrong.

Thanks for any help

Posted: Tue Nov 30, 2004 10:24 am
by upCASE
Hi!
Have you tried --with-gtk2 and letting wxWidgets decide about sys or own image libs? Have you tried creating a link to lipng.so.2 using lipng.so?

I've got it running here on Fedora Core 2 and it works just fine...

Posted: Tue Nov 30, 2004 4:08 pm
by Riccardo Cohen
The configure command I wrote contains --with-gtk (in my configure this uses gtk+, and there is a flag --disable-gtk2 to use gtk1.2).
Am I wrong ?

Posted: Tue Nov 30, 2004 4:29 pm
by cg
By using --with-libjpeg=sys it's going to use whatever lib it finds on the system. So when you distribute your app, on that end users system its going to look for a shared library. If that end system doesn't have it installed or it's an old version then you are going to get those errors. I use --with-libjpeg=builtin with good success.

HTH

CG

Posted: Tue Nov 30, 2004 5:50 pm
by Riccardo Cohen
I tried : I rebuilt wxwidgets with flag --with-libpng=sys and rebuilt the sample.
It was the same and asked for libpng.so.2 while only libpng.so is on the system

Posted: Tue Nov 30, 2004 7:40 pm
by cg
Riccardo Cohen wrote:--with-libpng=sys

should be:

--with-libpng=builtin

HTH
CG

Posted: Wed Dec 01, 2004 7:24 am
by upCASE
Hi!
It was the same and asked for libpng.so.2 while only libpng.so is on the system
Have you tried to create a link to that file?