Qt Creator: error while loading shared libraries...
-
Hi!
- I have a problem while starting the app from qt-creator.
File structure:
Test App: /home/user/test/
SO: /home/user/project/cpp/dll/mylib/Shadow build switched off in each project.
SO was added to the test project from QtCreator (right-click and add lib).
LD_LIBRARY_PATH changed and the app successfully starts from the console, not from the qt-creator.
This is my first time working with shared libraries. Guys, could you explain what I doing wrong?
- Is it possible to debug SO code?
-
Go to Projects->Run and uncheck "Add build library search path to LD_LIBRARY_PATH".
Or, of course, you can use
rpathto compile your library path into your application. -
Go to Projects->Run and uncheck "Add build library search path to LD_LIBRARY_PATH".
Or, of course, you can use
rpathto compile your library path into your application. -
Hm, so maybe also clear it in "Environment" section below.
-
@sierdzio I checked 'Add library search path to LD_...' after rebooting OS.
The problem was fixed.
Thank you! -
Static libraries are compiled into your application.