iphone - 如何在 iPhone 中编译 Eigen

标签 iphone c++ compilation eigen cross-compiling

我想编译 Eigen 并在具有 NEON 功能的 iPhone 中使用它。 如何在 iPhone 中编译 Eigen?是否需要针对特定​​的 ARM 芯片进行编译?我需要修改构建脚本吗?

干杯。

最佳答案

由于在 Eigen 的最新版本中开箱即用地支持 ARM NEON 的显式矢量化,我猜您根本不需要做任何特殊的事情。手册中关于安装的部分内容如下:

In order to use Eigen, you just need to download and extract Eigen's source code (see the wiki for download instructions). In fact, the header files in the Eigen subdirectory are the only files required to compile programs using Eigen. The header files are the same for all platforms. It is not necessary to use CMake or install anything.

总结:它是一个全头文件库。无需编译。

假设您设置了正确的工具链,您应该可以开始了。如果您使用的是受支持的编译器之一(我假设是 gcc),它应该自动检测要编译的优化(编辑:假设正确的编译器标志,例如打开 NEON)。

至于如何为 iPhone 编译东西,好吧,关于那个话题我忘记了 :D

关于iphone - 如何在 iPhone 中编译 Eigen,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7453572/

相关文章:

iphone - 如何向 UILabel 的文本添加渐变,而不是背景?

c++ - Visual Studio 2010 : Using define macro to specify output executable

c# - 为什么这个带有可空值的 C# 重载没有歧义?

iphone - SQLite "SQLITE MISUSE"错误

iphone - 我可以在iTunes Connect的哪个位置上传大图像图标?

c++ - 使用变量索引对 vector 的 vector 进行排序

c++ - C++03 中的函数返回类型推导

c++ - ShellExecute 崩溃

c - Sublime Text 2 编译错误(我认为)

iPhone 通过 POST 发送 Json 数组