I am trying to run a C ++ Qt application and run it and compile in Visual Studio 2010.
After doing a few searches, I found that there is a Qt Visual Studio add-in, and so I installed it. I already have the MinGW Qt binary installed, and when that didn’t work, I found that you need to compile the source code for Visual Studio 2010 (the VS 2008 binary will lead to deployment problems).
Using this as a guide: How to create Qt for Visual Studio 2010 , I compiled the open source version and added it to the PATH along with the QTDIR env variable. Hoping that I finally worked, I created a “Qt application” using the Create Project Wizard in Visual Studio 2010. After I finished, I tried to create the program, only to see the following error:
1>LINK : fatal error LNK1104: cannot open file 'qtmaind.lib'
I looked in the C: \ QT \ lib folder and found that I only have qtmaind.prl, but I don’t know why there is no qtmaind.lib.
I can repeat the QMAKESPEC environment variable to get the output "win32-msvc2010".
I tried several different flag combinations for the configuration step, including the one in the link, and even tried to manually set the platform flag.
If anyone can offer any help, he would appreciate it !: D
source share