[英]Qt android compilation error
I installed Qt 5.4 on my windows 7 x64 (disk D) and created simplest Qt widget prgram. 我在Windows 7 x64(磁盘D)上安装了Qt 5.4,并创建了最简单的Qt小部件prgram。 I'm trying to run it on my physical device (Samsumg galaxy S5 mini) Google USB driver installed and Qt can see physical device but after compilation I have this error:
我试图在安装的物理设备(Samsumg galaxy S5 mini)上运行它,并且Qt可以看到物理设备,但是编译后出现此错误:
The system cannot find the path specified
该系统找不到指定的路径
makefile:1628: recipe for target 'install_target' failedmakefile:1628:目标“ install_target”的配方失败
mingw32-make: [install_target] Error 1 (ignored)mingw32-make:[install_target]错误1(忽略)
Application binary is not in output directory: D:/Qt Samples/build-AndroidGio-Android_for_armeabi_GCC_4_9_Qt_5_4_2-Debug/android-build//libs/armeabi/libAndroidGio.so.
应用程序二进制文件不在输出目录中:D:/ Qt Samples / build-AndroidGio-Android_for_armeabi_GCC_4_9_Qt_5_4_2-Debug / android-build // libs / armeabi / libAndroidGio.so。 Please run 'mingw32-make install INSTALL_ROOT=D:/Qt Samples/build-AndroidGio-Android_for_armeabi_GCC_4_9_Qt_5_4_2-Debug/android-build/' first.
请首先运行'mingw32-make install INSTALL_ROOT = D:/ Qt Samples / build-AndroidGio-Android_for_armeabi_GCC_4_9_Qt_5_4_2-Debug / android-build /。 18:51:56: The process "D:\\Qt\\5.4\\android_armv5\\bin\\androiddeployqt.exe" exited with code 7. Error while building/deploying project AndroidGio (kit: Android for armeabi (GCC 4.9, Qt 5.4.2)) When executing step "Build Android APK"
18:51:56:进程“ D:\\ Qt \\ 5.4 \\ android_armv5 \\ bin \\ androiddeployqt.exe”以代码7退出。构建/部署项目AndroidGio时出错(套件:armeabi的Android(GCC 4.9,Qt 5.4.2 ))执行步骤“ Build Android APK”
how can I run "mingw32-make install INSTALL_ROOT=D:/Qt Samples/build-AndroidGio-Android_for_armeabi_GCC_4_9_Qt_5_4_2-Debug/android-build/' first." 如何运行“ mingw32-make install INSTALL_ROOT = D:/ Qt样本/ build-AndroidGio-Android_for_armeabi_GCC_4_9_Qt_5_4_2-Debug / android-build /'首先。”
and what the problem? 还有什么问题? Also I enabled developer mode on my samsung device and enabled USB debugging
另外,我在三星设备上启用了开发人员模式并启用了USB调试
As Fran Osterfeld said, you can't have spaces in your build path. 正如Fran Osterfeld所说,您的构建路径中不能有空格。 I ran into that one a long time ago.
我很久以前遇到了那个。
When I upgraded from Qt 5.4 to 5.5, however, I also ran into a problem with some other characters. 但是,当我从Qt 5.4升级到5.5时,我也遇到了其他一些字符的问题。 I had a build path like "..\\Source\\C++\\MyProject...".
我有一个类似“ .. \\ Source \\ C ++ \\ MyProject ...”的构建路径。 I had to remove the "++" and just name that directory "C".
我必须删除“ ++”,仅将目录命名为“ C”。
Weird how this only popped up in the new Qt version! 奇怪如何仅在新的Qt版本中弹出! I tried overriding the make path to use the prior version of mingw32-make (4.9.1 instead of 4.9.2) as that changed during the upgrade, but to no avail.
我尝试覆盖make路径以使用mingw32-make的早期版本(4.9.1而不是4.9.2),因为在升级期间进行了更改,但无济于事。 I'm not sure what the root cause is, but the point is try the most basic build path name you can as a starting point for fixing this issue.
我不确定根本原因是什么,但重点是尝试使用最基本的构建路径名称作为解决此问题的起点。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.