Results 1 to 3 of 3

Thread: building 32-bit app to run on 64-bit system

  1. #1
    Join Date
    Jan 2006
    Location
    Germany
    Beans
    172
    Distro
    Ubuntu 12.10 Quantal Quetzal

    building 32-bit app to run on 64-bit system

    I am trying to build a 32-bit application to run on Jaunty 64-bit. I think this can be done, but I am having a build problem I don't understand. I am using g++ with the -m32 option to build a 32-bit executable. Here is the output of the linker:

    mico@mico1:~/Desktop/fotoxx$ make -B
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../../libgtk-x11-2.0.so when searching for -lgtk-x11-2.0
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../../libgtk-x11-2.0.a when searching for -lgtk-x11-2.0
    /usr/bin/ld: skipping incompatible /usr/lib/libgtk-x11-2.0.so when searching for -lgtk-x11-2.0
    /usr/bin/ld: skipping incompatible /usr/lib/libgtk-x11-2.0.a when searching for -lgtk-x11-2.0
    /usr/bin/ld: cannot find -lgtk-x11-2.0
    collect2: ld returned 1 exit status
    make: *** [fotoxx] Error 1

    I gave up trying to find libgtk-x11-2.0 (32 bit version). Does it exist? Am I trying to do something that cannot be done?

  2. #2
    Join Date
    May 2007
    Location
    New Zealand
    Beans
    477
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: building 32-bit app to run on 64-bit system

    there is a program called getlibs. You can use that to install 32bit libraries like this:

    getlibs -l libraryname.so

    It may be able to find the libs you want (its found nearly all of the ones I wanted ).

  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Beans
    172
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: building 32-bit app to run on 64-bit system

    Thanks, I will try it out.

Tags for this Thread

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
  •