- 收藏
- 点赞
- 分享
- 举报
如何解决QT移植3516D,./configure出现重复定义问题
今天想把QT移植到dv300,今天在网上找教程,找到这位大神的移植教程
https://blog.csdn.net/cocoron/article/details/105662856
我的ubuntu12.04,我按照他的步骤,下载了qt-everywhere-src-5.12.0.tar.xz到./configure -prefix /opt/qt5.12.8_hi3516dv300/shared的时候就出现了错误,如下:
.In file included from /home/phoenix/OPT/qt-everywhere-src-5.12.0/qtbase/include/QtCore/qendian.h:1:0,
from /home/phoenix/OPT/qt-everywhere-src-5.12.0/qtbase/src/corelib/codecs/qutfcodec.cpp:43:
/home/phoenix/OPT/qt-everywhere-src-5.12.0/qtbase/include/QtCore/../../src/corelib/global/qendian.h:165:61: error: redeclaration ‘constexpr T qbswap(T) [with T = qfloat16]’ differs in ‘constexpr’
template <> inline qfloat16 qbswap
^
/home/phoenix/OPT/qt-everywhere-src-5.12.0/qtbase/include/QtCore/../../src/corelib/global/qendian.h:96:42: error: from previous declaration ‘constexpr T qbswap(T) [with T = qfloat16]’
template
^
/home/phoenix/OPT/qt-everywhere-src-5.12.0/qtbase/include/QtCore/../../src/corelib/global/qendian.h:170:52: error: redeclaration ‘constexpr T qbswap(T) [with T = float]’ differs in ‘constexpr’
template <> inline float qbswap
^
/home/phoenix/OPT/qt-everywhere-src-5.12.0/qtbase/include/QtCore/../../src/corelib/global/qendian.h:96:42: error: from previous declaration ‘constexpr T qbswap(T) [with T = float]’
template
^
/home/phoenix/OPT/qt-everywhere-src-5.12.0/qtbase/include/QtCore/../../src/corelib/global/qendian.h:175:55: error: redeclaration ‘constexpr T qbswap(T) [with T = double]’ differs in ‘constexpr’
template <> inline double qbswap
^
/home/phoenix/OPT/qt-everywhere-src-5.12.0/qtbase/include/QtCore/../../src/corelib/global/qendian.h:96:42: error: from previous declaration ‘constexpr T qbswap(T) [with T = double]’
template
^
make: * [qutfcodec.o] Error 1
似乎是似乎是个和大小端有关的函数,出现qbswap重复定义的错误了,有没有大佬遇过相似的问题?
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片
-
2017-11-13 11:04:48
-
2022-07-12 17:52:56
-
2017-03-31 15:24:54
-
2016-08-05 16:27:37
-
2018-12-28 11:12:57
-
2017-02-09 10:35:07
-
2018-08-30 15:19:44
-
2019-01-04 13:46:15
-
12016-10-15 22:10:29
-
2017-08-02 09:58:42
-
2018-12-27 16:17:05
-
2019-01-04 15:44:55
-
2015-06-25 09:31:45
-
2015-11-06 11:06:17
-
2016-12-07 15:54:54
-
2017-08-10 10:11:29
-
2019-01-04 10:53:01
-
2018-08-02 14:05:17
-
2019-05-31 15:58:45
-
5hisi3516cv610 + gc4336p 夜晚很模糊
-
5AIISP(功能演示,SC4336P为BGGR,强制转RGGB,会导致颜色异常)
-
5rv1106使用luckfox的SDK,设备树和驱动都写好了,结果设备文件没有生成
-
5海思3516cv610中如何进行SD卡升级,根据官方文档操作,烧录进板子时,走的默认uboot,没有执行uboot升级。
-
5G610Q-IPC-38E 夜晚很暗 有什么办法解决吗 已经补光了
-
10转换模型时,SoC版本里没显示hi3516cv610芯片
-
5hisi3516cv610 使用 yolov8n 模型训练 要如何提高 这里识别的是人
-
10有人在海思平台接过SC035HGS吗
-
5关于hi3519dv500,以SD卡虚拟 U 盘操作
-
5ss928 sample_venc代码移植到openEuler24.03上执行报错 [sample_comm_vi_start_dev]-1068: vi set dev attr failed wi
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明

微信扫码分享
QQ好友
该回答已被题主采纳为最佳答案