[Qt-creator] Reg: Build errors in compiling Qt-Applications

Oliver.Knoll at comit.ch Oliver.Knoll at comit.ch
Tue Jan 6 15:02:10 CET 2009


Sudhir Kakumanu wrote on Tuesday, January 06, 2009 12:42 PM:

> ...
> C:\Qt\QtCreator\mingw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe:
> cannot find -lqtmaind

qtmaind.lib (or qtmaind.a in the MinGW/Unix/Linux version) should be (and in my case is) in %QTDIR%\lib\

The 'd' in the name indicates that this is the debug version of the corresponding qtmain.lib. I built Qt Opensource (4.4.x and 4.5.0 beta) with the VS 2005 compiler, with standard settings (that is, both in debug and release), so this file is present in my case. I never encountered the above problem (with Visual Studio 2005 or the *.pro/qmake command line approach).

But obviously you are using the Qt version provided by the Qt Creator Beta (AFAIK it is still BETA, right? ;) anyway.

I just checked my %QT_CREATOR%\qt\lib\ directory, and I also find the qtmaind.a there. Make sure this file is in place. I haven't used Qt Creator yet, except some minor testing, so I cannot help you much there. Might be an "environment setting" problem.

Other than that, since the Qt Creator is still in beta, try the latest snapshot and see if that solves the problem (and I think this is a Qt Creator/installation specific question).


Good luck,
  Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22




More information about the Qt-creator-old mailing list