User forums > Using Code::Blocks
a little OT: 'configure' options to wxWidgets in Linux
Biplab:
The reason why you're getting the missing library error is because it's not in path. Solutions-
1) Add /usr/local/lib to LD_LIBRARY_PATH before launching C::B from shell.
--- Code: ---export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
--- End code ---
Or
2) Create a file named wx.conf and just add one line, /usr/local/lib , to it. Now save it to /etc/ld.so.conf.d dir and run ldconfig immediately.
If this dir doesn't exist, then add the dir to /etc/ld.so.conf file and run ldconfig.
Edit1: Oh I just noted (just got up) that you compiled wx in Unicode mode. Configure wx with the following command line (sample, but this is the one I use). :)
--- Code: ---./configure --disable-debug --enable-shared --enable-unicode --enable-monolithic --with-gtk=2 --with-regex=builtin
--- End code ---
rodrigo.canellas:
I have '/usr/local/lib' in '/etc/ld.so.config':
"
root@3[~]# cat /etc/ld.so.conf
/lib
/usr/lib
/usr/i486-linuxlibc1/lib
/usr/local/lib
/usr/lib/mozilla
include /etc/ld.so.conf.d/*.conf
"
And I am using 2.8.5 because, AFAIK, recent C::B needs at least wx 2.8, and 'http://www.wxwidgets.org/downloads/' says it is the last stable release.
Well... I used the './configure --disable-debug --enable-shared --enable-unicode --enable-monolithic --with-gtk=2 --with-regex=builtin', but the result was the same.
I will try to install using 'apt-get', as described in 'http://www.wxwidgets.org/downloads/', and I will let you know the results.
Thanks again!!
rodrigo.canellas:
Hi,
I installed the Debian packages, as described in 'http://www.wxwidgets.org/downloads/', and C::B is working fine!
Thanks for your help!!
Navigation
[0] Message Index
[*] Previous page
Go to full version