linux下安装qt for android
2013-10-20 16:56
253 查看
参考博客http://hahaya.github.io/2013/07/09/use-qt5.1-build-android-program.html,安装qt for android,然而因为是64位系统,遇到一些问题,总结如下:
1.下载qt-linux-opensource-5.1.1-android-x86_64-offline.run
chmod +x,运行
2.源包安装libgl1-mesa-dev(解决cannot find lgl问题)
3.源包安装openjdk-7-jdk、ant、lib32stdc++6 (解决error while loading shared libraries: libstdc++.so.6,无法启动模拟器问题)、lib32z1(解决ant clean debug 失败,无法部署问题),
~/.profile添加JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64"
PATH="$JAVA_HOME/bin:$PATH"
CLASSPATH="$JAVA_HOME/lib:$CLASSPATH"
4.下载安装:ndk(https://dl.google.com/android/ndk/android-ndk-r9-linux-x86_64.tar.bz2)、adt-bundle(https://dl.google.com/android/adt/adt-bundle-linux-x86_64-20130917.zip)
5.打开qt creator,工具" -> "选项" -> "Android选项",设置其中的SDK、NDK路径,启动AVD管理器,选择device definitions->create avd.
1.下载qt-linux-opensource-5.1.1-android-x86_64-offline.run
chmod +x,运行
2.源包安装libgl1-mesa-dev(解决cannot find lgl问题)
3.源包安装openjdk-7-jdk、ant、lib32stdc++6 (解决error while loading shared libraries: libstdc++.so.6,无法启动模拟器问题)、lib32z1(解决ant clean debug 失败,无法部署问题),
~/.profile添加JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64"
PATH="$JAVA_HOME/bin:$PATH"
CLASSPATH="$JAVA_HOME/lib:$CLASSPATH"
4.下载安装:ndk(https://dl.google.com/android/ndk/android-ndk-r9-linux-x86_64.tar.bz2)、adt-bundle(https://dl.google.com/android/adt/adt-bundle-linux-x86_64-20130917.zip)
5.打开qt creator,工具" -> "选项" -> "Android选项",设置其中的SDK、NDK路径,启动AVD管理器,选择device definitions->create avd.
相关文章推荐
- Qt for Linux:环境搭建(CentOS 6.5 32位)——完全从零安装
- Qt for android安装
- QT5.1 FOR ANDROID 安装配置
- Qt for Android 安装参考文档
- QT for Linux安装配置
- linux下安装qt-4.5_for_TQ210_V1.0.(TQ210)-ubuntu11.10过程出现的问题
- linux下安装qt-4.5_for_TQ210_V1.0.(TQ210)-ubuntu11.10过程出现的问题
- 在 Linux 中自动生成 Cordova/Phonegap for Android 的 APK 安装程序
- Qt for Linux:环境搭建(CentOS 6.5 32位)——完全从零安装
- QT For Linux 安装小记
- Qt for Android调用android原生控件安装apk
- VLC 编译安装 [for android, linux, windows]
- Qt for android安装
- 在 Linux 中自动生成 Cordova/Phonegap for Android 的 APK 安装程序
- [置顶] ubuntu下Qt for Android的安装及环境配置
- 安装qt for android开发环境
- Qt for Android 安装与配置
- opensuse12.3 安装Qt5.1.1 for Android
- qt for android环境搭建(Linux平台)
- qt5.7 for android 在linux下开发环境的搭建