loading C++ libs in linux with Qt

1) Create ur qt project.
2) include all the header files in your project.
3) Use appropriate namespaces
4) Important part: linking against your libraries
In your .pro file, use :
LIBS += -L”/home/test/Desktop/test-build-desktop/” -lLibrary1 -lLibrary2
Here library1 and 2 are the names of the libraries i link against.
5) Now from the command prompt run your executable, using export LD_LIBRARY_CONFIG=.
It should work fine.

Leave a Reply

Your email address will not be published. Required fields are marked *