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. Cannot find QtCore lib when builds Qt-4.8.0
Forum Updated to NodeBB v4.3 + New Features

Cannot find QtCore lib when builds Qt-4.8.0

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 6.3k 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.
  • Q Offline
    Q Offline
    QTMAN
    wrote on last edited by
    #1

    I got the following error MSG while compiling Qt-4.8.0 . on ubuntu.

    I think QtCore lib must be released with this QT4.8.0 software package ,so why the building process itself cannot find this lib?
    Is there any configuration options i did not chose before building?

    make[1]: Entering directory /mnt/share/temp/qt-everywhere-opensource-src-4.8.0/src/xml' rm -f libQtXml.so.4.8.0 libQtXml.so libQtXml.so.4 libQtXml.so.4.8 g++ -Wl,-rpath-link,/mnt/share/temp/qt-everywhere-opensource-src-4.8.0/lib -Wl,--no-undefined -Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/Qt-4.8.0/lib -Wl,-rpath,/usr/local/Trolltech/Qt-4.8.0/lib -shared -Wl,-soname,libQtXml.so.4 -o libQtXml.so.4.8.0 .obj/release-shared/qdom.o .obj/release-shared/qxml.o -L/mnt/share/temp/qt-everywhere-opensource-src-4.8.0/lib -lQtCore -L/mnt/share/temp/qt-everywhere-opensource-src-4.8.0/lib -lpthread /usr/bin/ld: cannot find -lQtCore collect2: ld returned 1 exit status make[1]: *** [../../lib/libQtXml.so.4.8.0] Error 1 make[1]: Leaving directory /mnt/share/temp/qt-everywhere-opensource-src-4.8.0/src/xml'
    make: *** [sub-xml-make_default-ordered] Error 2

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Depends. If you've got some other Qt (qmake) in PATH, this will be used.

      If you want to (you should want to do that) you should build qmake before building Qt itself, and then use this new qmake to build the library. Usually, configure script takes care of that for you. Then again, you have to set your environment so that make sees this qmake.

      Look into readme in source, or take a look at this *aimed at Qt5, but may help): "link":http://developer.qt.nokia.com/wiki/Building_Qt_5_from_Git.

      (Z(:^

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        QTMAN
        wrote on last edited by
        #3

        There really exist a qmake-2.6.2 under /usr/bin on my system.

        I will then take your steps to rebuild QT. Thanks.

        [quote author="sierdzio" date="1325745010"]Depends. If you've got some other Qt (qmake) in PATH, this will be used. If you want to (you should want to do that) you should build qmake before building Qt itself, and then use this new qmake to build the library. Usually, configure script takes care of that for you. Then again, you have to set your environment so that make sees this qmake. Look into readme in source, or take a look at this *aimed at Qt5, but may help): "link":http://developer.qt.nokia.com/wiki/Building_Qt_5_from_Git.[/quote]

        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