Question about --with-something=builtin

Milan Babuskov milanb at panonnet.net
Sun Mar 11 15:02:27 PDT 2007


[wx 2.8.0]

In order to reduce dependencies of binary distribution of my app on 
Linux to minimum, I configured wxWidgets with following options (among 
others):

--with-libtiff=builtin
--with-libjpeg=builtin
--with-libpng=builtin
--with-zlib=builtin
--with-expat=builtin

I built it and installed all fine, but it doesn't work the way I 
imagined it would. I compiled the minimal sample for test, and although 
it clearly shows that it links with wxzlib and wxexpat:

g++ -o minimal   minimal_minimal.o -pthread 
-L/mnt/hda5/install/devel/wx/2.8/wxWidgets-2.8.0/lib    -ldl -lm 
-lwx_gtk2u_core-2.8  -lwx_baseu-2.8   -lwxtiff-2.8 -lwxjpeg-2.8 
-lwxpng-2.8 -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 
-lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpangoft2-1.0 
-lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0 
-lwxzlib-2.8  -lwxregexu-2.8 -lwxexpat-2.8 -pthread   -ldl -lm


the resulting executable still depends on system libraries:


wxWidgets-2.8.0/samples/minimal$ ldd minimal
...
libz.so.1 => /usr/lib/libz.so.1 (0xb76e6000)
libexpat.so.0 => /usr/lib/libexpat.so.0 (0xb76c6000)


What's interesting is that jpeg, tiff and png are not listed, i.e. wx 
internal version is used, just as I wanted. Any clue how to force libz 
and libexpat to behave the same?


-- 
Milan Babuskov
http://www.guacosoft.com
http://www.flamerobin.org





More information about the wx-users mailing list