Getting the error cannot find -lqcad
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: *** [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'
Edit your PRO file LIBS variable to add (or correct) a search path to the QCad library folder.
i have the same problem but i couldn't figure how to fix it, ChrisW67 would you mind explaining more ??
"qmake - Declaring Other Libraries":http://qt-project.org/doc/qt-4.8/qmake-project-files.html#declaring-other-libraries
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
Thanks guys, i made it. :-) especially the libs variable link was so helpful.