开发者

Qt 4.7.1, Qt Creator and VS 2010 installation problems

开发者 https://www.devze.com 2023-01-26 16:54 出处:网络
On my computer (Win7 32, VS2010 Ultimate) I would like to use Qt Creator and Qt Visual Studio add in, both LGPL versions.

On my computer (Win7 32, VS2010 Ultimate) I would like to use Qt Creator and Qt Visual Studio add in, both LGPL versions.

There are minGW and VS2008 versions of Qt frameworks on the Nokia websites, I did not find VS 2010 version.

So I have installed Qt 2010.开发者_运维百科05 SDK and in the VS 2010 Command prompt the following steps have been performed:

configure -static
nmake sub-src

I checked Qt Creator and it successfully runs. After the translation has been finished I installed VS 2010 add I tried to add new Qt version int the path

C:\Qt\2010.05\qt

But the following error message has been appeared:

Qt in the given path was built using minGW

It do not understand why because the translation has been performed for the VS2010.

Where is the error? How to install it correctly?


I found out from a German Qt forum that, VS add-in looks for libqtmain.a and libqtmaind.a files to determine if it is built with MinGW. Guess what? Qt ships with those files.

Delete them, and you will be fine.


FWIW, The Vs2008 version works fine with VS2010. I didn't need to build it or anything. You can install that and then just run the latest version of the VS plug-in installer and you should see the Qt menu options in VS2010.

AFAIR your command line is incomplete: I remember one had to specify the build platform. It could be that it's using mingw to build Qt since you didn't specify the VS version in the parameters. The following post might be of interest to you: Building Qt 4.5 with Visual C++ 2010

0

精彩评论

暂无评论...
验证码 换一张
取 消