User forums > General (but related to Code::Blocks)
linking to a specific lib version
devguy:
On Linux, I created a CB project using the wizard selecting "wxWidgets 2.9.x (SVN Version)"
however when I build and do a ldd on the binary it say it's linking to version 2.8 ?
$ ldd wxDebug
linux-vdso.so.1 => (0x00007fff6f1ff000)
libwx_gtk2u_richtext-2.8.so.0 => /usr/lib/libwx_gtk2u_richtext-2.8.so.0 (0x00007f709f811000)
libwx_gtk2u_aui-2.8.so.0 => /usr/lib/libwx_gtk2u_aui-2.8.so.0 (0x00007f709f59c000)
libwx_gtk2u_xrc-2.8.so.0 => /usr/lib/libwx_gtk2u_xrc-2.8.so.0 (0x00007f709f303000)
libwx_gtk2u_qa-2.8.so.0 => /usr/lib/libwx_gtk2u_qa-2.8.so.0 (0x00007f709f0e1000)
libwx_gtk2u_html-2.8.so.0 => /usr/lib/libwx_gtk2u_html-2.8.so.0 (0x00007f709ee34000)
libwx_gtk2u_adv-2.8.so.0 => /usr/lib/libwx_gtk2u_adv-2.8.so.0 (0x00007f709eb55000)
libwx_gtk2u_core-2.8.so.0 => /usr/lib/libwx_gtk2u_core-2.8.so.0 (0x00007f709e54f000)
libwx_baseu_xml-2.8.so.0 => /usr/lib/libwx_baseu_xml-2.8.so.0 (0x00007f709e345000)
libwx_baseu_net-2.8.so.0 => /usr/lib/libwx_baseu_net-2.8.so.0 (0x00007f709e116000)
libwx_baseu-2.8.so.0 => /usr/lib/libwx_baseu-2.8.so.0 (0x00007f709ddc5000)
What do I need to correct to link against 2.9
fyi, My special build for wxWidgets 2.9 is installed under /var/local
ptDev:
Where is your wx-config script installed? I have a feeling that your project settings make it so that the default wx-config script is called, and you thus end up linking to the original system installed wx version.
Under Linux, I can get as many versions of wxWidgets as I like by building them, but skipping the last step (make install), and renaming each versions' produced wx-config. For example, I use wx29-config for wxWidgets 2.9 and create a link under a path added directory. I then change all references of wx-config to wx29-config in my project settings.
devguy:
the new wx-config script is under /var/local/bin, so where is CB do i tell it to look there?
MortenMacFly:
--- Quote from: devguy on April 20, 2011, 01:45:01 am ---the new wx-config script is under /var/local/bin, so where is CB do i tell it to look there?
--- End quote ---
...how about providing the full path name?! :shock:
devguy:
where do i put this full path name? "/var/local/bin/wx-config" if that is what I am suppose to tell CB to use to configure my wxWidgets build??
Navigation
[0] Message Index
[#] Next page
Go to full version