简体   繁体   English

为Visual Studio 2013安装QT加载项

[英]Installing QT addin for Visual Studio 2013

i spent a lot of time trying to get these to install properly, so here i am. 我花了很多时间试图正确安装它们,所以我在这里。 I've already googled my problem countless times in different forms and still can't resolve it. 我已经无数次地以各种形式搜索我的问题,但仍然无法解决。 It's just very confusing because there are so many versions out there, and i don't even know how to build the binaries, if even have to do that, and i couldn't find the configure.exe. 这只是非常令人困惑,因为那里有很多版本,我什至不知道如何构建二进制文件,即使必须这样做,我也找不到configure.exe。 I don't have it after i installed QT5. 安装QT5后我没有它。

I have python, perl, Visual Studio, QT5,QT addin, and openssl installed. 我安装了python,perl,Visual Studio,QT5,QT插件和openssl。

When going to QT5, QT Options, then Add, add: C:\\Qt\\5.2.1\\mingw48_32 as the path and got an error about qmake not found or something. 转到QT5时,选择“ QT选项”,然后添加,然后添加:C:\\ Qt \\ 5.2.1 \\ mingw48_32作为路径,并得到有关找不到qmake的错误或其他信息。 So I deleted libqtmain.a and libqtmaind.a as suggested by some site and that solved the problem. 因此,按照某些站点的建议,我删除了libqtmain.a和libqtmaind.a,从而解决了该问题。

I've also tried this: http://blog.kikicode.com/2011/09/qt-version-uses-unsupported-makefile.html but i couldn't find the Trolltech folder, so i stopped. 我也尝试过这样的方法: http : //blog.kikicode.com/2011/09/qt-version-uses-unsupported-makefile.html,但是我找不到Trolltech文件夹,所以我停了下来。

But now my problem is this 但是现在我的问题是

"This QT version uses an unsupported makefile generator (used: MINGW, supported: MSVN.NET, MSBUILD). “此QT版本使用了不受支持的Makefile生成器(用于:MINGW,受支持:MSVN.NET,MSBUILD)。

I don't even have a configure.exe file, and can't launch it from the visual studio command line. 我什至没有configure.exe文件,也无法从Visual Studio命令行启动它。

I really have no idea what to do. 我真的不知道该怎么办。 I've been attacking this problem for all of yesterday, and i've ran out of steps today. 我昨天整天都在攻击这个问题,而今天我筋疲力尽。 Please help me. 请帮我。

I don't have the express version of VS. 我没有VS的快速版本。 Just so you know. 请注意。

I just solved this issue. 我刚刚解决了这个问题。 It get me mad, but is easy. 它让我生气,但是很容易。 The Add-in looks to $(QTDIR)\\mkspecs\\default to know which one to use. 加载项会查找$(QTDIR)\\ mkspecs \\ default来知道要使用哪个。 The "default" folder is not created after configure and build Qt. 在配置和构建Qt之后,不会创建“默认”文件夹。 So the way I solved is to copy&paste the "win32-msvc2013" folder as "default". 因此,我解决的方法是将“ win32-msvc2013”​​文件夹复制并粘贴为“默认”。 And now the Add-in recognised Qt. 现在,该加载项可以识别Qt。

BTW, after build the sources "nmake", I make an install of them in another folder so I have just the binaries and tools but not all the source that I don't need for develop software based on Qt. 顺便说一句,在构建源代码“ nmake”之后,我将它们安装在另一个文件夹中,因此我只拥有二进制文件和工具,但没有所有不需要的源代码,因此不需要基于Qt开发软件。 Once the compilation is complete, then type: Set the root where the installation will be, ex: set INSTALL_ROOT=\\Sw\\Qt\\qt-4.8.5-install Execute in your source's root the command: nmake install 编译完成后,然后输入:设置安装的根目录,例如:set INSTALL_ROOT = \\ Sw \\ Qt \\ qt-4.8.5-install在源目录的根目录中执行以下命令:nmake install

So after trying everything i decided to run compile the binaries. 因此,在尝试了所有方法之后,我决定运行编译二进制文件。 I think not a lot of people have this problem and there is no solution on the internet because the 2013 addin is very new. 我认为没有多少人有这个问题,并且互联网上没有解决方案,因为2013插件非常新。 So here is what i did, and what worked for me, after countless hours of trying. 经过无数小时的尝试之后,这就是我的工作以及对我有用的工作。

I downloaded the zip located under the main downloads on their webpage: http://qt-project.org/downloads 我在其网页上的主要下载内容下下载了zip: http//qt-project.org/downloads

I uninstalled the old QT. 我卸载了旧的QT。 (kept the addin) I unzipped the zip it into a folder i named QT at C:\\ Then i ran the configure.bat located inside. (保留插件)我将其解压缩到C:\\ QT文件夹中。 On the Visual Studio cmd i cd to the C:\\QT\\qt-everywhere-opensource-src-5.2.1 directory where the configure file is, Tried running the 'configure' file, there was no configure.exe. 在Visual Studio cmd上,将CD转到配置文件所在的C:\\ QT \\ qt-everywhere-opensource-src-5.2.1目录,尝试运行“ configure”文件,没有configure.exe。 Then i ran 'nmake', that took like three hours. 然后我运行了“ nmake”,大概花了三个小时。 The i went into C:\\QT\\qt-everywhere-opensource-src-5.2.1\\qtbase\\qmake and made a folder bin where i copied the qmake.exe found in that same folder. 我进入C:\\ QT \\ qt-everywhere-opensource-src-5.2.1 \\ qtbase \\ qmake并制作了一个文件夹bin,在其中我复制了在同一文件夹中找到的qmake.exe。 Finally i went into the VS addin, qt, qt options and i added that directory. 最后,我进入了VS插件,qt,qt选项,并添加了该目录。 And it works! 而且有效!

I'm using Qt 5.6, msvc2014, but had the same issue at first. 我正在使用Qt 5.6,msvc2014,但起初有相同的问题。 This issue was solved for me by updating to Add-in 1.2.5 without changing anything else. 通过更新到加载项1.2.5为我解决了此问题,而没有进行任何其他更改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM