qt cannot open input file 'c:\Qt\qt\lib\qtmaind.lib'

Posted by robUK on Stack Overflow See other posts from Stack Overflow or by robUK
Published on 2009-06-25T16:28:54Z Indexed on 2010/05/03 11:58 UTC
Read the original article Hit count: 1518

Filed under:

Hello,

I am using qt 4.5

I have created a project and I want to compile on visual studio 2008 for windows mobile 6.0 So I have created the project files doing this:

D:\Projects\Phone_PDA\Phone_PDA>set QMAKESPEC=win32-msvc2008
D:\Projects\Phone_PDA\Phone_PDA>qmake -tp vc

The VS project was created. However, when I try and compile I get this error: LINK : fatal error LNK1181: cannot open input file 'c:\Qt\qt\lib\qtmaind.lib'

However, when I check my librarys and includes under project properties in visual studio. I have this:

Additional Include Directories
c:\Qt\qt\include\QtCore
c:\Qt\qt\include\QtGui
c:\Qt\qt\include
c:\Qt\qt\include\ActiveQt
debug
c:\Qt\qt\mkspecs\win32-msvc2008

Additional Library Directories
c:\Qt\qt\lib

Additional Dependencies
c:\Qt\qt\lib\qtmaind.lib
c:\Qt\qt\lib\QtGuid4.lib
c:\Qt\qt\lib\QtCored4.lib

However, when I browse to the directory c:\Qt\qt\lib all I have is: qtmain.prl and qtmaind.prl However, I don't have qtmaind.lib or qtmain.lib

Many thanks for any suggestions,

© Stack Overflow or respective owner

Related posts about qt