Visual Studio 2008 and Qt
Hi everyone.
I'm working with Visual Studio 2008 and Qt (I can't work only with Qt tools, too long to explain).
Step:
- Install Visual Studio 2008
- Install the complete Qt environment
- Install the Qt add-in for Visual Studio 2008
Now, I understand that after this procedure I can work with Visual Studio without problem (no need to compile libraries or other things).
But now, if I try to compile a simple HelloWorld program (the one you can find in the tutorial for Qt), it doesn't work.
Step to create a project:
- Open Visual Studio
- File-> New -> Project -> Select "Qt4 project" and "Qt application"
- in the Wizard, leave everything as default (so, it includes Core library and GUI library)
- Now I have a project with some files (main.cpp example.cpp example.h example.ui).
- Copy/paste the code in example.cpp into main.cpp
- Compile
Error: LNK1181: cannot open input file 'qtmaind.lib'
What am I doing wrong?
thanks in advance for helping me
Konx.
Re: Visual Studio 2008 and Qt
I assume you installed the VS2008 version of Qt, rather than than the GCC/MinGW version? They are not compatible with each other.
Did you set QTDIR variable?
Re: Visual Studio 2008 and Qt
Quote:
Originally Posted by
fatjuicymole
I assume you installed the VS2008 version of Qt, rather than than the GCC/MinGW version? They are not compatible with each other.
Did you set QTDIR variable?
Hi.
Thanks for the answer!
The problem was in fact that the QtDir variable was not properly set. Now it works perfectly (I totally forgot about the variable...my mistake)
Thanks again
Konx.