简体   繁体   English

Qt-Qt命令提示符

[英]Qt - Qt Command Prompt

So I found an excellent video where it teaches me about static compile. 因此,我找到了一个很棒的视频,它教了我有关静态编译的知识。 But in there it doesn't show where he got the "Qt Command Prompt" from. 但是在那里没有显示他从哪里得到“ Qt Command Prompt”的信息。 I searched alot but didn't find it in the directory. 我搜索了很多,但在目录中找不到它。 What do I do? 我该怎么办? Can anybody tell me where it's located? 有人可以告诉我它的位置吗? I even searched for it in Explorer but didn't find it. 我什至在资源管理器中搜索了它,但没有找到它。

Just add the following paths: 只需添加以下路径:

<qtdir>\mingw\bin;
<qtdir>\Desktop\Qt\<qtver>\mingw\bin;
<qtdir>Madde\bin\

to your %PATH% environment variable, and the default command prompt (cmd.exe) will become what you need. 到%PATH%环境变量中,默认命令提示符(cmd.exe)将成为您所需要的。 Don't forget to restart an already opened cmd.exe after editing %PATH%. 编辑%PATH%之后,不要忘记重新启动已经打开的cmd.exe。

What OS do you use? 您使用什么操作系统? For exanple, here you can find how to edit %PATH% on win7. 例如,您可以在此处找到如何在win7上编辑%PATH%。

The Qt command prompt is simply a normal cmd.exe session where the paths to the Qt libraries and binaries have been added to the environment. Qt命令提示符只是一个普通的cmd.exe会话,其中Qt库和二进制文件的路径已添加到环境中。

It depends on how you installed Qt (using the SDK, build from source, etc.). 这取决于您安装Qt的方式(使用SDK,从源代码构建等)。 If you used the SDK, a shortcut should have been installed in your Start menu. 如果使用SDK,则应该在“开始”菜单中安装了一个快捷方式。 My Qt command prompt is at: 我的Qt命令提示符位于:

C:\Qt\4.8.2\bin\qtvars.bat vsvars

That being said, I rarely use the Qt command prompt. 话虽如此,我很少使用Qt命令提示符。 If you use the normal Visual Studio command prompt, then navigate to your Qt "bin" folder, you should be able to execute the command you need, like configure . 如果使用正常的Visual Studio命令提示符,然后导航到Qt“ bin”文件夹,则应该能够执行所需的命令,例如configure

If you are using Windows 8, just type "Qt 5.4 for Desktop" after pressing the windows button. 如果您使用的是Windows 8,只需在按下Windows按钮后键入“ Qt 5.4 for Desktop”。 Actually in windows 8 just typing "qt" in start menu, will give you the suggestion. 实际上,在Windows 8中,只需在开始菜单中键入“ qt”,就会给您建议。

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

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