android – LD_ LIBRARY_ Path defines the required LIBS
I want to ensure that any necessary libraries are added to the developed Android application. Therefore, I try to define it correctly to LD_ LIBRARY_ The path. Command LDD is used to check which libraries my QT application needs
When I run LDD on Ubuntu, it should give me the list of LIBS required by myapp. However, this is what I have got so far:
$cd MyAppProjFolder
$ldd MyApp | grep libQt
ldd: ./MyApp: not regular file
$file MyApp
MyApp: directory
$cd Debug
$ldd MyApp | grep libQt
./MyApp: No such file or directory
$cd android-build
$ldd MyApp | grep libQt
./MyApp: No such file or directory
$cd bin
$ldd MyApp | grep libQt
./MyApp: No such file or directory
To find the location of the executable, run the following command:
$find /home/user/MyAppProjFolder -name MyApp
/MyAppProjFolder/.../bin/classes/org/qtproject/example/MyApp
$ldd MyApp | grep libQt
./MyApp: No such file or directory
What did I miss here? The name of the generated executable is different from the defined project / application?
resolvent:
According to the conversation in the comment, you seem to have the following errors:
1) You are trying to run LDD. On a directory or a file that does not exist
2) You seem to be running LDD from the host on the target binary. It's not necessarily the same
My advice is to find your executable and make sure you run the correct LDD
Editor: because you revised the key points of the question to a certain extent after the initial post, reply:
How to use find and LDD in the same file
It is what you / you define in the build system, so we can't know, especially if you don't paste the relevant code