PDA

View Full Version : VS2008 Professional: fatal error LNK1181: cannot open input file 'qtmain.lib'



HalphaZ
6th December 2009, 10:25
Hello,
I installed Visual Studio 2008 Professional with SP1, I installed QT 4.6 Open Source Version, then I installed QT-VS addin.
I created a new QT Application Project and I inserted a HelloWorld source cose.
When I press "Build Solution", it returns with error:


1>Linking...
1>LINK : fatal error LNK1181: cannot open input file 'qtmain.lib'

Now this error is common in the web and I can't find any solution.

I hope you can help me.

squidge
6th December 2009, 14:28
Do you have the visual studio version of Qt, or the QtCreator version? If the later, go download the former, or build it yourself.

If you already have the libs, set QTDIR variable correctly.