0

after compiling wxgtk.. and this format:

g++ sample.cpp `wx-config --libs --cxxflags` -o sample

it can compile but if you run this the error is::

./sample: error while loading shared libraries: libwx_gtk2_aui-2.8.so.0: cannot open shared object file: No such file or directory

but all its lib.. where installed i dont know where to find ibwx_gtk2_aui-2.8.so.0 or where is the download site of that file..

THANKS FOR HELPING: :)

3
Contributors
2
Replies
3
Views
10 Years
Discussion Span
Last Post by richsewell
0

after compiling wxgtk.. and this format:

g++ sample.cpp `wx-config --libs --cxxflags` -o sample

it can compile but if you run this the error is::

./sample: error while loading shared libraries: libwx_gtk2_aui-2.8.so.0: cannot open shared object file: No such file or directory

but all its lib.. where installed i dont know where to find ibwx_gtk2_aui-2.8.so.0 or where is the download site of that file..

THANKS FOR HELPING: :)

I assume you have done a source install of wx.. this installs the libraries to /usr/local/lib by default (check there for the file).

You need to all this path to the library search path. Do this with the LD_LIBRARY_PATH variable:

export LD_LIBRARY_PATH=/usr/local/lib

Then run your app from the same shell. Google will tell you how to set this variable permanently.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.