在无法针对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”。

07-28 06:06