首页 > 解决方案 > CGAL-for-Android 交叉编译中的问题

问题描述

我正在尝试按照https://github.com/CGAL/cgal/wiki/Cross-Compilation-of-CGAL-for-Android为 Android 交叉编译 CGAL

执行 cmake 时出现以下错误:

CMake Error at /usr/share/cmake-3.12/Modules/Platform/Android-Common.cmake:54 (message):
  Android: STL 'gnustl_static' include directory not found:

有人有线索吗?

(使用 kubuntu 16.10、CGAL 4.13、android 28)

标签: androidcross-compilingcgal

解决方案


I read that gnustl_static has been recently replaced by c++_static. My guess is you should add

-DCMAKE_ANDROID_STL_TYPE="c++_static"

to your cmake configuration options. Source: https://cmake.org/cmake/help/v3.9/variable/CMAKE_ANDROID_STL_TYPE.html Please let me know if that works and I'll update the wiki.


推荐阅读