Build problems on CentOS 5.5 x86_64 - cannot find lQtGui

edited October 2013 in KLayout Development

Hi there!

After some headaches (me being a Linux novice in dependency hell), I managed to successfully compile KLayout 0.22.9 under CentOS 5.5 i686. The command was

./build.sh -qt /usr/lib/qt4

After that, I tried doing something similar under CentOS 5.5 x86_64, with the build command

./build.sh -platform linux-64-gcc-release -qt /usr/lib/qt4

Unfortunately, this didn't complete, the last messages from the g++ call are:

/usr/bin/ld: skipping incompatible /usr/lib/qt4/lib/libQtGui.so when searching for -lQtGui
/usr/bin/ld: cannot find -lQtGui
collect2: ld returned 1 exit status
...

Any idea what that could be and how to fix it? Does my build command line look ok?

Comments

  • edited November -1

    Ah, found the reason: The 64bit QT libraries seem to be under /usr/lib64/qt4/lib64. Therefore, the build command I had to use was:

    ./build.sh -platform linux-64-gcc-release -qtbin /usr/lib64/qt4/bin -qtlib /usr/lib64/qt4/lib64 -qtinc /usr/lib64/qt4/include
    

    Maybe it helps someone else!

Sign In or Register to comment.