gpt4 book ai didi

c++ - 在ARM Zynq(裸机)上使用Eigen C++库

转载 作者:行者123 更新时间:2023-12-02 10:25:02 25 4
gpt4 key购买 nike

在无法针对Zynq裸机(Cross compile GNU Scientific Library for ARM Zynq ( baremetal ))交叉编译GNU Scientific库之后,我尝试改用Eigen C++。

所以我下载了它,然后解压缩并包含如下所示的标题

-I/home/wizard/Desktop/eigen

该代码在我的PC(x64 Ubuntu)上可以正常工作,但是一旦我将编译器从gcc更改为arm-xilinx-eabi-gcc和g++更改为arm-xilinx-eabi-g++,代码就会给我以下错误:
invalid conversion from 'const int*' to 'const int32_t* {aka const long int*}' [-fpermissive]   test4       line 244, external location: /home/wizard/Desktop/eigen/Eigen/src/Core/arch/NEON/PacketMath.h   C/C++ Problem
invalid conversion from 'const int*' to 'const int32_t* {aka const long int*}' [-fpermissive] test4 line 247, external location: /home/wizard/Desktop/eigen/Eigen/src/Core/arch/NEON/PacketMath.h C/C++ Problem
invalid conversion from 'const int*' to 'const int32_t* {aka const long int*}' [-fpermissive] test4 line 259, external location: /home/wizard/Desktop/eigen/Eigen/src/Core/arch/NEON/PacketMath.h C/C++ Problem
invalid conversion from 'const int*' to 'const int32_t* {aka const long int*}' [-fpermissive] test4 line 260, external location: /home/wizard/Desktop/eigen/Eigen/src/Core/arch/NEON/PacketMath.h C/C++ Problem
invalid conversion from 'int*' to 'int32_t* {aka long int*}' [-fpermissive] test4 line 265, external location: /home/wizard/Desktop/eigen/Eigen/src/Core/arch/NEON/PacketMath.h C/C++ Problem
invalid conversion from 'int*' to 'int32_t* {aka long int*}' [-fpermissive] test4 line 268, external location: /home/wizard/Desktop/eigen/Eigen/src/Core/arch/NEON/PacketMath.h C/C++ Problem
invalid conversion from 'int*' to 'int32_t* {aka long int*}' [-fpermissive] test4 line 309, external location: /home/wizard/Desktop/eigen/Eigen/src/Core/arch/NEON/PacketMath.h C/C++ Problem

我该怎么办 ?

最佳答案

终于能够解决问题了。有关解决方案,请引用https://forum.kde.org/viewtopic.php?f=74&t=138964“在Zynq裸机上编译Eigen3”。

关于c++ - 在ARM Zynq(裸机)上使用Eigen C++库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42098040/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com