17537
- 收藏
- 点赞
- 分享
- 举报
【已解决】QT5.5.1交叉编译到海思平台,编译出错,头大啊!!!
本帖最后由 goodman 于 2016-3-21 15:52 编辑
CPU:hi3535
编译器:arm-hisiv100nptl-linux-gcc (Hisilicon_v100(gcc4.4-290+uclibc_0.9.32.1+eabi+linuxpthread)) 4.4.1
qtbase/mkspecs/:复制/拷贝 linux-arm-gnueabi-g++ 到 linux-hisiv100nptl-g++ 后修改
qmake.conf:
MAKEFILE_GENERATOR = UNIX
CONFIG += incremental
QMAKE_INCREMENTAL_STYLE = sublib
include(../common/linux.conf)
include(../common/gcc-base-unix.conf)
include(../common/g++-unix.conf)
# modifications to g++.conf
QMAKE_CC = arm-hisiv100nptl-linux-gcc
QMAKE_CXX = arm-hisiv100nptl-linux-g++
QMAKE_LINK = arm-hisiv100nptl-linux-g++
QMAKE_LINK_SHLIB = arm-hisiv100nptl-linux-g++
# modifications to linux.conf
QMAKE_AR = arm-hisiv100nptl-linux-ar cqs
QMAKE_OBJCOPY = arm-hisiv100nptl-linux-objcopy
QMAKE_NM = arm-hisiv100nptl-linux-nm -P
QMAKE_STRIP = arm-hisiv100nptl-linux-strip
load(qt_config)
qplatformdefs.h:
添加一行 #undef O_CLOEXEC
配置:./configure -v \
-xplatform linux-hisiv100nptl-g++ \
-prefix /opt/Qt-5.5.1/hisiv100nptl \
-opensource \
-confirm-license \
-c++11 \
-shared \
-largefile \
-accessibility \
-qt-sql-sqlite \
-qml-debug \
-no-sse2 \
-no-sse3 \
-no-ssse3 \
-no-sse4.1 \
-no-sse4.2 \
-no-avx \
-no-avx2 \
-no-mips_dsp \
-no-mips_dspr2 \
-mtdev \
-no-journald \
-no-openssl \
-widgets \
-no-optimized-qmake \
-no-cups \
-iconv \
-evdev \
-qt-libjpeg \
-nomake examples \
-make tools
出错打印:
在/qtwebkit/Source/WTF目录下
./wtf/unicode/wchar/UnicodeWchar.h: In function 'bool WTF::Unicode::isAlphanumeric(UChar)':
./wtf/unicode/wchar/UnicodeWchar.h:139: error: 'iswalnum' was not declared in this scope
........
还有一些和 'iswalnum' 类似的函数报错
CPU:hi3535
编译器:arm-hisiv100nptl-linux-gcc (Hisilicon_v100(gcc4.4-290+uclibc_0.9.32.1+eabi+linuxpthread)) 4.4.1
qtbase/mkspecs/:复制/拷贝 linux-arm-gnueabi-g++ 到 linux-hisiv100nptl-g++ 后修改
qmake.conf:
MAKEFILE_GENERATOR = UNIX
CONFIG += incremental
QMAKE_INCREMENTAL_STYLE = sublib
include(../common/linux.conf)
include(../common/gcc-base-unix.conf)
include(../common/g++-unix.conf)
# modifications to g++.conf
QMAKE_CC = arm-hisiv100nptl-linux-gcc
QMAKE_CXX = arm-hisiv100nptl-linux-g++
QMAKE_LINK = arm-hisiv100nptl-linux-g++
QMAKE_LINK_SHLIB = arm-hisiv100nptl-linux-g++
# modifications to linux.conf
QMAKE_AR = arm-hisiv100nptl-linux-ar cqs
QMAKE_OBJCOPY = arm-hisiv100nptl-linux-objcopy
QMAKE_NM = arm-hisiv100nptl-linux-nm -P
QMAKE_STRIP = arm-hisiv100nptl-linux-strip
load(qt_config)
qplatformdefs.h:
添加一行 #undef O_CLOEXEC
配置:./configure -v \
-xplatform linux-hisiv100nptl-g++ \
-prefix /opt/Qt-5.5.1/hisiv100nptl \
-opensource \
-confirm-license \
-c++11 \
-shared \
-largefile \
-accessibility \
-qt-sql-sqlite \
-qml-debug \
-no-sse2 \
-no-sse3 \
-no-ssse3 \
-no-sse4.1 \
-no-sse4.2 \
-no-avx \
-no-avx2 \
-no-mips_dsp \
-no-mips_dspr2 \
-mtdev \
-no-journald \
-no-openssl \
-widgets \
-no-optimized-qmake \
-no-cups \
-iconv \
-evdev \
-qt-libjpeg \
-nomake examples \
-make tools
出错打印:
在/qtwebkit/Source/WTF目录下
./wtf/unicode/wchar/UnicodeWchar.h: In function 'bool WTF::Unicode::isAlphanumeric(UChar)':
./wtf/unicode/wchar/UnicodeWchar.h:139: error: 'iswalnum' was not declared in this scope
........
还有一些和 'iswalnum' 类似的函数报错
我来回答
回答20个
时间排序
认可量排序
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片
相关问答
-
2017-08-16 17:10:52
-
2015-11-10 10:40:56
-
2019-07-16 20:43:07
-
2019-04-11 17:02:41
-
2015-01-21 22:06:56
-
2015-11-13 10:45:51
-
2015-12-03 17:25:33
-
2013-03-11 15:15:55
-
2016-08-24 18:59:12
-
2018-06-21 20:06:00
-
2017-10-12 14:55:58
-
2015-07-06 17:28:27
-
2021-11-11 09:41:24
-
2024-12-26 14:40:35
-
2022-06-18 17:39:10
-
2024-10-17 11:36:38
-
2018-05-15 10:56:07
-
2020-10-31 11:27:06
-
2021-01-13 16:56:34
无更多相似问答 去提问

点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
5SS928/SD3403 录像失败 venc stream time out, exit thread; venc 2 stream buffer is full
-
10Hi3516DV500无法运行PQTool软件
-
10君正T23+1084带TF卡插卡(给该主板适配TF卡驱动,电机驱动,适配GPIO)
-
5Hi3536A从vpss获取1080分辨率的yuv数据异常
-
10谁有RV1126 最新版本SDK卖吗?
-
10opencv算法移植海思3519能否用IVE加速
-
50【话题】DeepSeek爆火背后:人工智能时代,哪些岗位会被“替代”?快来看看吧
-
5ss928与虚拟机和pc端网络ping不通
-
10SS928 DC摄像头驱动移植,不报错不出图,求助!
-
10求hi3516cv610 sdk, 需含middleware
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认