Results 1 to 2 of 2

Thread: "missing" library when linking

  1. #1
    ksrarc NNTP User

    Default "missing" library when linking

    Hello!

    I have openSUSE 11 64bit and I need to build a 32 bit qt4 application.
    I have installed qt4 devel packages and 32 bits packages.

    I do this:
    qmake -spec linux-g++-32
    make

    and got this at the end:

    /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/libQtScript.so when searching for -lQtScript

    /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/libQtScript.so when searching for -lQtScript

    /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../libQtScript.so when searching for -lQtScript

    /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/libQtScript.so when searching for -lQtScript

    /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lQtScript
    collect2: ld returned 1 exit status


    What is wrong?

    Thanks.

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: "missing" library when linking

    By default, compiler tools on x86_64 will use 64-bit tools and libraries. You have to run in a 32-bit environment. I used to do some simple compiles by running a shell under linux32, but this wasn't the complete answer as I had to modify paths in Makefiles also so I don't think I was doing it the right way.

Posting Permissions

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