Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

qt

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,

like image 760
ant2009 Avatar asked Jun 25 '09 16:06

ant2009


2 Answers

Are you sure you are using the correct QMAKESPEC?

I would think you would need to use wince*-msvc2008

See Qt: Supported Platforms

like image 107
Jesse Vogt Avatar answered Oct 23 '22 04:10

Jesse Vogt


Open the Visual Studio command prompt (you can find a shortcut in the start menu). It has all the appropriate environment variables set. Go to C:\Qt\20****\qt. Type configure and then nmake.

like image 35
kkaefer Avatar answered Oct 23 '22 04:10

kkaefer