我是Qt的新手。刚开始使用Qt开发。正确链接SDK和NDK for Android开发后,当我尝试运行Hello World应用程序时,出现错误[install_target]Error 1(ignored)
。
这是日志:
22:56:08: Running steps for project HelloWorld...
22:56:08: Configuration unchanged, skipping qmake step.
22:56:08: Starting: "/usr/bin/make"
make: Nothing to be done for 'first'.
22:56:08: The process "/usr/bin/make" exited normally.
22:56:08: Removing directory /home/vijay/Documents/Android Applications/HelloWorld/android-build
22:56:08: Starting: "/usr/bin/make" 'INSTALL_ROOT=/home/vijay/Documents/Android Applications/HelloWorld/android-build' install
/bin/sh: 1: test: /home/vijay/Documents/Android: unexpected operator
install -m 755 -p "libHelloWorld.so" "/home/vijay/Documents/Android Applications/HelloWorld/android-build/libs/armeabi/libHelloWorld.so"
install: cannot create regular file '/home/vijay/Documents/Android Applications/HelloWorld/android-build/libs/armeabi/libHelloWorld.so': No such file or directory
Makefile:1722: recipe for target 'install_target' failed
make: [install_target] Error 1 (ignored)
22:56:08: The process "/usr/bin/make" exited normally.
22:56:08: Starting: "/home/vijay/Qt5.4.1/5.4/android_armv5/bin/androiddeployqt" --input '/home/vijay/Documents/Android Applications/HelloWorld/android-libHelloWorld.so-deployment-settings.json' --output '/home/vijay/Documents/Android Applications/HelloWorld/android-build' --deployment bundled --android-platform android-22 --jdk /usr/lib/jvm/java-6-openjdk-amd64 --ant /usr/bin/ant
Application binary is not in output directory: /home/vijay/Documents/Android Applications/HelloWorld/android-build//libs/armeabi/libHelloWorld.so. Please run 'make install INSTALL_ROOT=/home/vijay/Documents/Android Applications/HelloWorld/android-build/' first.
Generating Android Package
Input file: /home/vijay/Documents/Android Applications/HelloWorld/android-libHelloWorld.so-deployment-settings.json
Output directory: /home/vijay/Documents/Android Applications/HelloWorld/android-build/
Application binary: /home/vijay/Documents/Android Applications/HelloWorld/libHelloWorld.so
Android build platform: android-22
Install to device: No
22:56:08: The process "/home/vijay/Qt5.4.1/5.4/android_armv5/bin/androiddeployqt" exited with code 7.
**Error while building/deploying project HelloWorld (kit: Android for armeabi (GCC 4.9, Qt 5.4.1))
When executing step "Build Android APK"**
22:56:08: Elapsed time: 00:00.
请帮我解决。提前谢谢。
答案 0 :(得分:3)
我想出了答案:我在输出目录中包含了一个空格。显然,其中一个命令无法处理,因而也就是错误。我重命名了该目录,然后就可以了。