Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
899 views
in Technique[技术] by (71.8m points)

qt cannot open input file 'c:Qtqtlibqtmaind.lib'

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:ProjectsPhone_PDAPhone_PDA>set QMAKESPEC=win32-msvc2008
D:ProjectsPhone_PDAPhone_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:Qtqtlibqtmaind.lib'

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

Additional Include Directories
c:QtqtincludeQtCore
c:QtqtincludeQtGui
c:Qtqtinclude
c:QtqtincludeActiveQt
debug
c:Qtqtmkspecswin32-msvc2008

Additional Library Directories
c:Qtqtlib

Additional Dependencies
c:Qtqtlibqtmaind.lib
c:QtqtlibQtGuid4.lib
c:QtqtlibQtCored4.lib

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

Many thanks for any suggestions,

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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:Qt20****qt. Type configure and then nmake.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...