Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Getting the error cannot find -lqcad
Forum Updated to NodeBB v4.3 + New Features

Getting the error cannot find -lqcad

Scheduled Pinned Locked Moved General and Desktop
6 Posts 4 Posters 2.9k 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.
  • R Offline
    R Offline
    ronnie173
    wrote on last edited by
    #1

    Hi does anybody know how to fix this error

    c:/qtsdk/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot find -lqcad
    collect2: ld returned 1 exit status
    mingw32-make.exe[1]: *** [debug\systray.exe] Error 1
    mingw32-make.exe: *** [debug] Error 2
    22:31:49: The process "C:\QtSDK\mingw\bin\mingw32-make.exe" exited with code 2.
    Error while building project systray (target: Desktop)
    When executing build step 'Make'

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      Edit your PRO file LIBS variable to add (or correct) a search path to the QCad library folder.

      1 Reply Last reply
      0
      • X Offline
        X Offline
        XGuy
        wrote on last edited by
        #3

        i have the same problem but i couldn't figure how to fix it, ChrisW67 would you mind explaining more ??

        1 Reply Last reply
        0
        • C Offline
          C Offline
          ChrisW67
          wrote on last edited by
          #4

          "qmake - Declaring Other Libraries":http://qt-project.org/doc/qt-4.8/qmake-project-files.html#declaring-other-libraries
          "LIBS Variable":http://qt-project.org/doc/qt-4.8/qmake-variable-reference.html#libs

          1 Reply Last reply
          0
          • G Offline
            G Offline
            Ghaith
            wrote on last edited by
            #5

            You need to set "LIBS" in your .pro file, assuming you're building on unix :
            LIBS += -L/path/to/your/library/ -lqcad

            As for win32 (let's link against libmysql that's installed in C:\mysql\lib":
            LIBS += C:\mysql\lib\libmysql.lib

            1 Reply Last reply
            0
            • X Offline
              X Offline
              XGuy
              wrote on last edited by
              #6

              Thanks guys, i made it. :-) especially the libs variable link was so helpful.

              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