Results 1 to 3 of 3

Thread: building across linux distros (wxwidgets)

  1. #1
    Join Date
    Sep 2009
    Location
    UK
    Beans
    435
    Distro
    Ubuntu 10.04 Lucid Lynx

    building across linux distros (wxwidgets)

    Think this is a stupid question but maybee someone has done the same thing;

    I build a cpp app in wxwidgets on ubuntu, I copy executable to a centos box, I run it I get;

    ./xedit: error while loading shared libraries: libgio-2.0.so.0: cannot open shared object file: No such file or directory
    I copy the source and build and it runs;

    ----------

    In reverse I build on the centos and copy to ubuntu I get;

    ./xedit: cannot execute binary file
    ---------

    how can I build my projects so they include all dependencies, is this posible?

    I also have a solaris box which i really don't want to build source on, so any idea on how I build one app from ubuntu for all...

    ----------

    many thanks

    --------------

    update:
    found this; http://ldn.linuxfoundation.org/lsb/check-your-app
    any extra info welcome...
    Last edited by mikejonesey; March 10th, 2011 at 11:38 PM.

  2. #2

    Re: building across linux distros (wxwidgets)

    This is my experience on that:

    Different distros like to build their packages in a different way, sometimes an specific library may be excluded or put in a different package (not installed by default).

    Even if you don't use a library within your app the binary can be linked to it... so in other distro it might not been found.

    Another issue is the naming, sometimes they name the same thing different, so it's a little hard to accomplish what you want to do using not so popular (base) packages.

    Sorry I wasn't of much help.
    How strange it is, that a fool or a knave, with riches, should be treated with more respect by the world, than a good man, or a wise man in poverty!

  3. #3
    Join Date
    Sep 2009
    Location
    UK
    Beans
    435
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: building across linux distros (wxwidgets)

    don't mean to drag up the old but i managed to get the app to work across 34 distros, without needing to be rebuilt...

    if helps anyone else i done this using the linux foundations, app checker tool, which can tell you all sorts about nested / required libaries...

    (really cool tool)

    http://ldn.linuxfoundation.org/lsb/check-your-app

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •