Qt Creator: error while loading shared libraries...
-
wrote on 11 Dec 2020, 19:45 last edited by sitesv 12 Nov 2020, 19:48
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
rpath
to 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
rpath
to compile your library path into your application.wrote on 11 Dec 2020, 19:56 last edited by@sierdzio said in Qt Creator: error while loading shared libraries...:
Go to Projects->Run and uncheck "Add build library search path to LD_LIBRARY_PATH".
The result is the same. :(
-
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!wrote on 11 Dec 2020, 20:24 last edited by sitesv 12 Nov 2020, 20:25But what about the static libraries debugging?
-
Static libraries are compiled into your application.
1/7