Author Topic: Error: cannot find -lQtCore; cannot find -lQtGui  (Read 3880 times)

Offline Sahil#

  • Single posting newcomer
  • *
  • Posts: 2
Error: cannot find -lQtCore; cannot find -lQtGui
« on: September 05, 2012, 10:51:29 am »
I'm newbie here so sorry if this is the wrong place. I've been using Code::Blocks for last few months. I've successfully used SDL and SFML like libraries. I've also worked with Qt for a short period of time. C::B's simplicity really attracted me. So I downloaded Qt libraries 4.8 from official site and created a project using in built template. But it gave me following error.
 EDIT:
Okay I tried again and again and finally managed to create a Qt project from default template.
When I tried to compile I got following error

-------------- Build: Debug in qt ---------------

Linking console executable: bin\Debug\qt.exe
h:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lQtCore
h:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lQtGui
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
2 errors, 0 warnings
 

« Last Edit: September 05, 2012, 01:08:14 pm by Sahil# »

Offline Sahil#

  • Single posting newcomer
  • *
  • Posts: 2
Re: Error: cannot find -lQtCore; cannot find -lQtGui
« Reply #1 on: September 05, 2012, 02:16:21 pm »
I'm newbie here so sorry if this is the wrong place. I've been using Code::Blocks for last few months. I've successfully used SDL and SFML like libraries. I've also worked with Qt for a short period of time. C::B's simplicity really attracted me. So I downloaded Qt libraries 4.8 from official site and created a project using in built template. But it gave me following error.
 EDIT:
Okay I tried again and again and finally managed to create a Qt project from default template.
When I tried to compile I got following error


I followed instructions from
http://egyptianvulture.blogspot.in/2011/01/codeblocks-qt-windows.html but still fail :(