Qt Android环境搭建遇到的问题汇总

117 篇文章 1 订阅
问题1:android-19/arch-arm/:No such or directory

问题2:'C:\Program' 不是内部或外部命令,也不是可运行的程序 或批处理文件。

解决:可能是arm编译器路径遇到空格的问题,将arm交叉编译器安装在C盘根目录。

问题3:mingw32-make: *** No rule to make target 'C:\Program Files\Android\android-ndk-r9c-windows-x86\android-ndk-r9c\sources\cxx-stl\gnu-libstdc++\4.8\include\utility', needed by 'main.obj'. Stop.
解决:重新qmake
问题4:系统找不到指定的路径。
Project ERROR: You need to set the ANDROID_NDK_ROOT environment variable to point to your Android NDK.
Could not read qmake configuration file C:/Qt/Qt5.2.0/5.2.0/android_armv7/mkspecs/android-g++/qmake.conf.
解决:

setx下载地址:
http://download.microsoft.com/download/win2000platform/setx/1.00.0.1/nt5/en-us/setx_setup.exe

NDK Setup

  • Unzip it somewhere, and note the root directory.
  • You need to set an environment variable named ANDROID_NDK_ROOT which points to this directory. This can be done from the command line:

 setx ANDROID_NDK_ROOT c:\android-ndk-r6 
 
  
附加博文:
   
   
   
   
   
   
   
   
   
   
   
   
问题5: Install to device: emulator-5554 
ANT_HOME is set incorrectly or ant could not be located. Please set ANT_HOME.

Installing to device failed!

-- Run with --verbose for more information.

解决:

file:///C:/apache-ant-1.9.2-bin/apache-ant-1.9.2/manual/index.html

Only the bin and lib directories are required to run Ant. To install Ant, choose a directory and copy the distribution files there. This directory will be known as ANT_HOME.

只有bin和lib目录都必须运行Ant 。安装Ant ,选择一个目录,并复制分发文件存在。该目录将被称作ANT_HOME。

file:///C:/apache-ant-1.9.2-bin/apache-ant-1.9.2/manual/index.html

Assume Ant is installed in c:\ant\. The following sets up the environment:

set ANT_HOME=c:\ant
set JAVA_HOME=c:\jdk-1.5.0.05
set PATH=%PATH%;%ANT_HOME%\bin


  • 3
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值