Answer the question
In order to leave comments, you need to log in
How to slip the path to another library in linux before executing the program?
Good time!
The program is assembled in qt creator, and takes the paths to the required library from the *.pro file. But if the program is run from the console, then it takes the paths to the libraries from ldconfig.
There is an idea to write a bash script that creates a certain symlink or something else so that the program works with the required library. Where can I specify where the program should take the path to the library from?
Thanks to all! I apologize for my delusion.
Answer the question
In order to leave comments, you need to log in
But if the program is run from the console, then it takes the paths to the libraries from ldconfig.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question