link on gtk is impossible

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
Riccardo Cohen

link on gtk is impossible

Post 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
upCASE
Moderator
Moderator
Posts: 3176
Joined: Mon Aug 30, 2004 6:55 am
Location: Germany, Cologne

Post 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...
OS: OpenSuSE, Ubuntu, Win XP Pro
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4

"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda
Riccardo Cohen

Post 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 ?
cg
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 201
Joined: Sun Aug 29, 2004 12:33 am
Location: Canada
Contact:

Post 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
Riccardo Cohen

Post 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
cg
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 201
Joined: Sun Aug 29, 2004 12:33 am
Location: Canada
Contact:

Post by cg »

Riccardo Cohen wrote:--with-libpng=sys

should be:

--with-libpng=builtin

HTH
CG
upCASE
Moderator
Moderator
Posts: 3176
Joined: Mon Aug 30, 2004 6:55 am
Location: Germany, Cologne

Post 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?
OS: OpenSuSE, Ubuntu, Win XP Pro
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4

"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda
Post Reply