Results 1 to 2 of 2

Thread: ld.exe: cannot find -lQtCore

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2013
    Posts
    1
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default ld.exe: cannot find -lQtCore

    Hi,

    I am working on an open source code. When compiling, building and running in debug mode, the project works however putting the project in release mode, I get the following error at the make stage:

    c:/qtsdk/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot find -lQtCore
    collect2: ld returned 1 exit status
    mingw32-make.exe[2]: *** [..\lib_win32\QtAV1.dll] Error 1
    mingw32-make.exe[1]: *** [release] Error 2
    mingw32-make.exe: *** [sub-src-libQtAV-pro-make_default-ordered] Error 2
    08:49:43: The process "C:\QtSDK\mingw\bin\mingw32-make.exe" exited with code 2.
    Error while building project QtAV (target: Desktop)
    When executing build step 'Make'


    Please let me know what am I missing.

    Thanks very much.
    Ibra

    PS: I have extensively used google searching to try and resolve this issue on my own but couldn't find the answer.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: ld.exe: cannot find -lQtCore

    Have you deleted your build directory and run a complete rebuild?
    Have you recently added/removed Qt versions?

    What is the actual ld command that was executed to produce the error message. I probably has the wrong (or no) library search path.

Similar Threads

  1. /usr/bin/ld cannot find -lGL
    By narlapavan in forum Qt Programming
    Replies: 1
    Last Post: 12th July 2013, 12:49
  2. Replies: 1
    Last Post: 28th May 2012, 15:06
  3. Configure uses -lQtCore and -lQtGui while only -lQtCore4 and -lQtGui4 exist
    By Daevius in forum Installation and Deployment
    Replies: 5
    Last Post: 8th October 2011, 23:10
  4. Qt 4.6.3 where can i find
    By sujan.dasmahapatra in forum Qt Programming
    Replies: 1
    Last Post: 23rd November 2010, 11:28
  5. Can't find
    By Hz in forum Qt Programming
    Replies: 2
    Last Post: 16th March 2006, 14:15

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.