User forums > Using Code::Blocks
a little OT: 'configure' options to wxWidgets in Linux
rodrigo.canellas:
Hi,
I hope this is not considered too off-topic...
I downloaded 'CB_20070905_rev4425_Debian4.0_wx2.8.4.tar.gz' (I believe from September 5th), and 'wxWidgets-2.8.5.tar.bz2'.
If I run './configure', 'make' and 'make install', the library generated is called 'libwx_gtk2univ-2.8.so'.
However, when I run 'codeblocks', I get the message: "codeblocks: error while loading shared libraries: libwx_gtk2u_aui-2.8.so.0: cannot open shared object file: No such file or directory".
I run './configure --help' and there are a large number of parameters. Does anyone know which ones I must turn on/off to produce the correct library name?
Thanks a lot,
Rodrigo
rodrigo.canellas:
Hi,
Actually, things are a little more complicated...
I run 'ldd /usr/bin/codeblocks', and these, among other, dependencies were listed:
"
libwx_gtk2u_aui-2.8.so.0 => not found
libwx_gtk2u_xrc-2.8.so.0 => not found
libwx_gtk2u_qa-2.8.so.0 => not found
libwx_gtk2u_html-2.8.so.0 => not found
libwx_gtk2u_adv-2.8.so.0 => not found
libwx_gtk2u_core-2.8.so.0 => not found
libwx_baseu_xml-2.8.so.0 => not found
libwx_baseu_net-2.8.so.0 => not found
libwx_baseu-2.8.so.0 => not found
"
So, I must build 'wxWidgets-2.8.5.tar.bz2' in a way that all these libraries are produced, right? I mean, do I have to run './configure' 9 times, with 9 different parameters, and then (a very long) 'make', and finally a 'make install' (not forgetting the 'make clean' between them)?
Does anyone know if that's really what I should do?
And if so, what are the parameters for each 'libwx*'?
Thanks a lot!!
eranif:
Two questions:
1. I wonder why did you get wxUniversal (this is what _univ means)
2. when u configure wx, try to add --disable-monolithic , this will yield the multilib version of wx, which include the list of libraries you saw in the ldd
Eran
rodrigo.canellas:
Hi,
After 'make clean', I run './configure --disable-monolithic', and the final report was:
"
Configured wxWidgets 2.8.5 for `i686-pc-linux-gnu'
Which GUI toolkit should wxWidgets use? GTK+ 2
Should wxWidgets be compiled into single library? no
Should wxWidgets be compiled in debug mode? no
Should wxWidgets be linked as a shared library? yes
Should wxWidgets be compiled in Unicode mode? no
What level of wxWidgets compatibility should be enabled?
wxWidgets 2.4 no
wxWidgets 2.6 yes
Which libraries should wxWidgets use?
jpeg sys
png sys
regex sys
tiff builtin
zlib sys
odbc no
expat sys
libmspack no
sdl no
"
After 'make' and 'make install', I run 'ls -l /usr/local/lib/libwx*', and we have:
"
lrwxrwxrwx 1 root staff 19 2007-09-27 19:32 /usr/local/lib/libwx_base-2.8.so -> libwx_base-2.8.so.0
lrwxrwxrwx 1 root staff 23 2007-09-27 19:32 /usr/local/lib/libwx_base-2.8.so.0 -> libwx_base-2.8.so.0.2.0
-rwxr-xr-x 1 root staff 1556170 2007-09-27 19:32 /usr/local/lib/libwx_base-2.8.so.0.2.0
lrwxrwxrwx 1 root staff 23 2007-09-27 19:32 /usr/local/lib/libwx_base_net-2.8.so -> libwx_base_net-2.8.so.0
lrwxrwxrwx 1 root staff 27 2007-09-27 19:32 /usr/local/lib/libwx_base_net-2.8.so.0 -> libwx_base_net-2.8.so.0.2.0
-rwxr-xr-x 1 root staff 239910 2007-09-27 19:32 /usr/local/lib/libwx_base_net-2.8.so.0.2.0
lrwxrwxrwx 1 root staff 23 2007-09-27 19:32 /usr/local/lib/libwx_base_xml-2.8.so -> libwx_base_xml-2.8.so.0
lrwxrwxrwx 1 root staff 27 2007-09-27 19:32 /usr/local/lib/libwx_base_xml-2.8.so.0 -> libwx_base_xml-2.8.so.0.2.0
-rwxr-xr-x 1 root staff 48558 2007-09-27 19:32 /usr/local/lib/libwx_base_xml-2.8.so.0.2.0
lrwxrwxrwx 1 root staff 21 2007-09-27 18:23 /usr/local/lib/libwx_gtk2u_aui-2.8.so.0 -> libwx_gtk2univ-2.8.so
lrwxrwxrwx 1 root staff 23 2007-09-27 18:22 /usr/local/lib/libwx_gtk2univ-2.8.so -> libwx_gtk2univ-2.8.so.0
lrwxrwxrwx 1 root staff 27 2007-09-27 18:22 /usr/local/lib/libwx_gtk2univ-2.8.so.0 -> libwx_gtk2univ-2.8.so.0.2.0
-rwxr-xr-x 1 root staff 10318204 2007-09-27 18:22 /usr/local/lib/libwx_gtk2univ-2.8.so.0.2.0
lrwxrwxrwx 1 root staff 27 2007-09-27 19:32 /usr/local/lib/libwx_gtk2univ_adv-2.8.so -> libwx_gtk2univ_adv-2.8.so.0
lrwxrwxrwx 1 root staff 31 2007-09-27 19:32 /usr/local/lib/libwx_gtk2univ_adv-2.8.so.0 -> libwx_gtk2univ_adv-2.8.so.0.2.0
-rwxr-xr-x 1 root staff 1045615 2007-09-27 19:32 /usr/local/lib/libwx_gtk2univ_adv-2.8.so.0.2.0
lrwxrwxrwx 1 root staff 27 2007-09-27 19:32 /usr/local/lib/libwx_gtk2univ_aui-2.8.so -> libwx_gtk2univ_aui-2.8.so.0
lrwxrwxrwx 1 root staff 31 2007-09-27 19:32 /usr/local/lib/libwx_gtk2univ_aui-2.8.so.0 -> libwx_gtk2univ_aui-2.8.so.0.2.0
-rwxr-xr-x 1 root staff 448537 2007-09-27 19:32 /usr/local/lib/libwx_gtk2univ_aui-2.8.so.0.2.0
lrwxrwxrwx 1 root staff 28 2007-09-27 19:32 /usr/local/lib/libwx_gtk2univ_core-2.8.so -> libwx_gtk2univ_core-2.8.so.0
lrwxrwxrwx 1 root staff 32 2007-09-27 19:32 /usr/local/lib/libwx_gtk2univ_core-2.8.so.0 -> libwx_gtk2univ_core-2.8.so.0.2.0
-rwxr-xr-x 1 root staff 5016352 2007-09-27 19:32 /usr/local/lib/libwx_gtk2univ_core-2.8.so.0.2.0
lrwxrwxrwx 1 root staff 28 2007-09-27 19:32 /usr/local/lib/libwx_gtk2univ_html-2.8.so -> libwx_gtk2univ_html-2.8.so.0
lrwxrwxrwx 1 root staff 32 2007-09-27 19:32 /usr/local/lib/libwx_gtk2univ_html-2.8.so.0 -> libwx_gtk2univ_html-2.8.so.0.2.0
-rwxr-xr-x 1 root staff 851019 2007-09-27 19:32 /usr/local/lib/libwx_gtk2univ_html-2.8.so.0.2.0
lrwxrwxrwx 1 root staff 26 2007-09-27 19:32 /usr/local/lib/libwx_gtk2univ_qa-2.8.so -> libwx_gtk2univ_qa-2.8.so.0
lrwxrwxrwx 1 root staff 30 2007-09-27 19:32 /usr/local/lib/libwx_gtk2univ_qa-2.8.so.0 -> libwx_gtk2univ_qa-2.8.so.0.2.0
-rwxr-xr-x 1 root staff 194852 2007-09-27 19:32 /usr/local/lib/libwx_gtk2univ_qa-2.8.so.0.2.0
lrwxrwxrwx 1 root staff 32 2007-09-27 19:32 /usr/local/lib/libwx_gtk2univ_richtext-2.8.so -> libwx_gtk2univ_richtext-2.8.so.0
lrwxrwxrwx 1 root staff 36 2007-09-27 19:32 /usr/local/lib/libwx_gtk2univ_richtext-2.8.so.0 -> libwx_gtk2univ_richtext-2.8.so.0.2.0
-rwxr-xr-x 1 root staff 1148387 2007-09-27 19:32 /usr/local/lib/libwx_gtk2univ_richtext-2.8.so.0.2.0
lrwxrwxrwx 1 root staff 27 2007-09-27 19:32 /usr/local/lib/libwx_gtk2univ_xrc-2.8.so -> libwx_gtk2univ_xrc-2.8.so.0
lrwxrwxrwx 1 root staff 31 2007-09-27 19:32 /usr/local/lib/libwx_gtk2univ_xrc-2.8.so.0 -> libwx_gtk2univ_xrc-2.8.so.0.2.0
-rwxr-xr-x 1 root staff 843469 2007-09-27 19:32 /usr/local/lib/libwx_gtk2univ_xrc-2.8.so.0.2.0
"
Just to be sure... 'ls -l /usr/local/lib/libwx_gtk2u_aui-2.8.so.0' reported:
"
lrwxrwxrwx 1 root staff 21 2007-09-27 18:23 /usr/local/lib/libwx_gtk2u_aui-2.8.so.0 -> libwx_gtk2univ-2.8.so
"
So, the library 'codeblocks' complained about was installed!
I also run 'ldconfig' just in case...
But, when I run 'codeblocks', I still get:
"
codeblocks: error while loading shared libraries: libwx_gtk2u_aui-2.8.so.0: cannot open shared object file: No such file or directory
"
Any other clue?
Anyway, thanks for your help!
Tomorrow I'll try again...
stahta01:
--- Quote from: rodrigo.canellas on September 28, 2007, 12:47:08 am --- Should wxWidgets be compiled in Unicode mode? no
--- End quote ---
Is there a reason you are not doing Unicode?
Also, you know wxWidgets 2.8.5 has bugs, right?
Tim S
Navigation
[0] Message Index
[#] Next page
Go to full version