PDA

View Full Version : fatal error LNK1181: cannot open input file 'qtmaind.lib'



Peter_APIIT
10th September 2009, 07:48
Hello to you, i have compile the latest qt sdk with normal command prompt and add the necessary environment variable.

I encounter error when create a project in Visual Studio.

fatal error LNK1181: cannot open input file 'qtmaind.lib'

Please help.

Thanks.

Peter_APIIT
10th September 2009, 12:34
Problem now get worst because cannot add the QT Version.

I try to add QT version but there is no OK button display.
I have setup the necessary environment variable and cannot open the Designer and display error message like make sure the Designer.exe in your path.

Please help.

Thanks.

Peter_APIIT
16th September 2009, 04:09
Please help.

nish
16th September 2009, 09:06
instead of qt sdk, download and compile the qt sources only.. ,,, qt sdk wont work with visual studio.

Peter_APIIT
18th September 2009, 03:35
The version problem has been solved but the qtmaind.lib need to be edit the qtmaind.lib to qtmain.lib then it working.

Thanks.

ComaWhite
18th September 2009, 06:49
yeah because qtmaind.lib is a Debug version and qtmain.lib is a Release version. You should NOT do that.

Peter_APIIT
18th September 2009, 08:45
The default of QT SDK integration with VS is with d one. How to solve this issue ?

I lazy to compile with QT source.

Thanks.

ComaWhite
18th September 2009, 14:44
Like the other guy said, the Qt SDK doesn't work with Visual Studio. You'll have to compile the sources yourself to get it to work.