android-lighthoust编译错误
来源:互联网 发布:nginx 别名 404 编辑:程序博客网 时间:2024/04/30 02:25
- 下载android-lighthouse:http://gitorious.org/~taipan/qt/android-lighthouse
git clone git://gitorious.org/~taipan/qt/android-lighthouse.git 这个就是qt for android 源代码,下面将在此基础上编译基于android的qt库。
- 修改androidconfigbuild.sh
ANDROID_NDK_ROOT 指向android ndk根目录
ANDROID_NDK_HOST设置为当前系统,比如mac os x上应该是darwin-x86
ANDROID_NDK_PLATFORM 设置为已安装的android sdk版本,比如android-15
注意要使用绝对路径,不要使用波浪号tilde当前用户前缀,否则以后gcc -I包括头文件路径时会找不到。下面是mac os x下的片段:
export ANDROID_NDK_ROOT=/lib/android-ndk-r8e
export ANDROID_NDK_HOST=darwin-x86_64
export ANDROID_NDK_TOOLCHAIN_PREFIX=arm-linux-androideabi
export ANDROID_NDK_TOOLCHAIN_VERSION=4.4.3
export ANDROID_NDK_PLATFORM=android-15
- 修改mkspecs/android-g++/qmake.conf
将以上androidconfigbuild.sh中所做的修改也应用在这里,因为qmake生成Makefile时需要这些hardcode路径
执行脚本androidconfigbuild.sh,编译qt for android,然后我注释掉make相关 的。自己make -j4编译。碰到下面问题。
../../include/QtCore/../../src/corelib/tools/qlist.h:412: error: no matching function for call to 'operator new(unsigned int, QList<QFutureCallOutInterface*>::Node*&)'
<built-in>:0: note: candidates are: void* operator new(unsigned int)
../../include/QtCore/../../src/corelib/tools/qlist.h:423: error: 'memcpy' was not declared in this scope
make[1]: *** [.obj/release-shared/qfutureinterface.o] 错误 1
make[1]:正在离开目录 `/home/baimingyong/下载/android-lighthouse/src/corelib'
make: *** [sub-corelib-make_default-ordered] 错误 2
- android-lighthoust编译错误
- Android编译错误处理
- Android编译错误处理
- android 编译错误解决
- Android NDK编译错误
- android 编译错误汇总
- android 编译错误
- android 4.0编译错误
- Android 编译错误
- Android 编译源码 错误
- android编译错误
- android 编译源码错误
- android常见编译错误
- android编译错误解决办法
- android源码编译错误
- android源码编译错误
- Android编译常见错误
- android编译错误
- 如何获得并配对连接在同一Wifi网段上的其他手机
- 友好的表格效果
- IOS类使用积累-NSProcessInfo类
- mac 上搭建svn服务器
- Illegal pattern character 'Y'错误
- android-lighthoust编译错误
- AJAX弹出提示信息效果
- 一切都是需要由自己去争取的
- onFocus="this.blur()",
- Activity-android:configChanges属性
- Recurrent Problems 1.1 THE TOWER OF HANOI
- SQL Server 2005无法远程连接的解决方法
- C#.net关于生成html静态页面的问题
- Nikon Capture NX(尼康照片处理) v2.4.1中文完美破解版