November 24th, 2004, 05:11 AM
How to determine which .so files to deploy along with a Kylix app
I have had some issues with this in the past - http://forums.devshed.com/t146990/s.html
When I run "ldd foobar" it gives me a list of the .so files. So I deploy them with. But there are still dependencies, which I don't know. I cannot just copy the whole of /usr/local/kylix3/lib as the symlinks get messed up (which I can fix) and there are a whole lot of libs I don't need.
Can anyone help me as to how to find all the .so files my app is dependent on (and all the .so files those .so files are dependent) on?
November 24th, 2004, 02:10 PM
You have to check each library you are including with "ldd filename.so" to find their dependencies. And the same for the dependencies of the dependent libraries. And then again for these. And...
November 24th, 2004, 02:11 PM
PS: Can't you tell kylix to link statically against the libraries? It would become one huge executable, but hey, no more libraries
November 24th, 2004, 02:16 PM
It should be possible to statically link the libraries - but I cannot find reference in the documentation I have on how to get this done.