Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Compiler error skipping incompatible libraries

Compiler error skipping incompatible libraries

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 1 Posters 5.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gmahan
    wrote on last edited by
    #1

    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!

    1 Reply Last reply
    0
    • G Offline
      G Offline
      gmahan
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved