Compiler error skipping incompatible libraries



  • I am trying to build the "textfinder": http://qt-project.org/doc/qtcreator-3.2/creator-writing-program.html example : on my QT Creator running on Fedora 64 bit (Virtual box) but I am getting these errors which are shown below:
    @
    12:54:36: Running steps for project TextFinder...
    12:54:36: Starting: "/home/mklepadlo/Qt5.3.1/5.3/gcc_64/bin/qmake" /home/mklepadlo/QT/TextFinder/TextFinder.pro -r -spec linux-g++-32 CONFIG+=debug
    12:54:36: The process "/home/mklepadlo/Qt5.3.1/5.3/gcc_64/bin/qmake" exited normally.
    12:54:36: Starting: "/usr/bin/make"
    g++ -m32 -Wl,-rpath,/home/mklepadlo/Qt5.3.1/5.3/gcc_64 -Wl,-rpath,/home/mklepadlo/Qt5.3.1/5.3/gcc_64/lib -o TextFinder main.o textfinder.o qrc_textfinder.o moc_textfinder.o -L/home/mklepadlo/Qt5.3.1/5.3/gcc_64/lib/cmake/ -L/home/mklepadlo/Qt5.3.1/5.3/gcc_64/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
    /usr/bin/ld: skipping incompatible /home/mklepadlo/Qt5.3.1/5.3/gcc_64/lib/libQt5Widgets.so when searching for -lQt5Widgets
    /usr/bin/ld: cannot find -lQt5Widgets
    /usr/bin/ld: skipping incompatible /home/mklepadlo/Qt5.3.1/5.3/gcc_64/lib/libQt5Gui.so when searching for -lQt5Gui
    /usr/bin/ld: cannot find -lQt5Gui
    /usr/bin/ld: skipping incompatible /home/mklepadlo/Qt5.3.1/5.3/gcc_64/lib/libQt5Core.so when searching for -lQt5Core
    /usr/bin/ld: cannot find -lQt5Core
    /usr/bin/ld: skipping incompatible /usr/lib64/libGL.so when searching for -lGL
    /usr/bin/ld: cannot find -lGL
    collect2: error: ld returned 1 exit status
    make: *** [TextFinder] Error 1
    12:54:36: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project TextFinder (kit: Qt 5.3 GCC 64bit)
    When executing step 'Make'
    12:54:36: Elapsed time: 00:01.@

    Looks like a problem with gcc not finding the required libraries. Any clues on how to fix this.

    Thanks!



  • Fixed. I was compiling for a 32 bit platform on a 64 bit machine.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.