#1
  1. My beer is empty....
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2002
    Location
    South Africa
    Posts
    73
    Rep Power
    13

    How to determine which .so files to deploy along with a Kylix app


    Hi

    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?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    191
    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...

    M.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    191
    PS: Can't you tell kylix to link statically against the libraries? It would become one huge executable, but hey, no more libraries
  6. #4
  7. My beer is empty....
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2002
    Location
    South Africa
    Posts
    73
    Rep Power
    13
    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.

IMN logo majestic logo threadwatch logo seochat tools logo