简体   繁体   English

Qt 5.2和Android错误

[英]Qt 5.2 and Android Error

So after a few hours of struggling to set up my Qt so I can start with my first Android app I am still without luck. 所以经过几个小时的努力设置我的Qt所以我可以从我的第一个Android应用程序开始,我仍然没有运气。 I've gotten a VERY simple program (just to get all the settings right) to build properly but when I click the play button to run it, there is an error I cannot seem to solve. 我已经得到了一个非常简单的程序(只是为了让所有设置正确)来正确构建,但当我单击播放按钮来运行它时,有一个我似乎无法解决的错误。 Here is the complete output when I press play: 按下播放时,这是完整的输出:

22:16:45: Running steps for project Androidtest...
22:16:45: Configuration unchanged, skipping qmake step.
22:16:45: Starting: "C:\Qt\Tools\mingw48_32\bin\mingw32-make.exe"
mingw32-make: Nothing to be done for 'first'.
22:16:48: The process "C:\Qt\Tools\mingw48_32\bin\mingw32-make.exe" exited normally.
22:16:48: Starting: "mingw32-make" INSTALL_ROOT="D:\\RundownRiot\\Androidtest\\build-       Androidtest-Android_for_arm_GCC_4_6_Qt_5_2_0-Debug\\android-build" install
qtcreator_ctrlc_stub: Command line failed: mingw32-make INSTALL_ROOT="D:\\RundownRiot\\Androidtest\\build-Androidtest-Android_for_arm_GCC_4_6_Qt_5_2_0-Debug\\android-build" install
22:16:48: The process "mingw32-make" exited with code -1.
Error while building/deploying project Androidtest (kit: Android for arm (GCC 4.6, Qt 5.2.0))
When executing step 'Copy application data'
22:16:48: Elapsed time: 00:03.

The error is in line 6. 错误在第6行。

I read that sh.exe might be in the path variable but I don't think its there, here is the value for path: 我读到sh.exe可能在路径变量中,但我不认为它在那里,这里是路径的值:

C:\Program Files\Common Files\Microsoft Shared\Windows Live;
C:\Windows\system32;
C:\Windows;
C:\Windows\System32\Wbem;
C:\Windows\System32\WindowsPowerShell\v1.0\;
C:\Program Files\CineForm\Tools;C:\Program Files\QuickTime\QTSystem\;
C:\Program Files\Windows Live\Shared; C:\Program Files\Java\jdk1.7.0_51\bin;
C:\Android\AndroidSDK\sdk\tools;
C:\Android\AndroidSDK\sdk\platform-tools;C:\Program Files\Java\jdk1.7.0_51\bin;
C:\Qt\Qt5.1.1\5.1.1\mingw48_32\bin;

I am using win7 32bit, Qt5.2 and Qt Creator 3.0.1. 我使用的是win7 32bit,Qt5.2和Qt Creator 3.0.1。

I found that I had more than 1 version of Qt installed. 我发现我安装了超过1个版本的Qt。 So I uninstalled Qt completely and only installed the latest version. 所以我完全卸载了Qt并且只安装了最新版本。 That solved all my problems. 这解决了我所有的问题。

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

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