【问题标题】:OpenCV __int128 error when compiling for 64 bit为 64 位编译时 OpenCV __int128 错误
【发布时间】:2018-09-12 17:22:36
【问题描述】:

我尝试为 x86_64 和 arm64-v8a 编译 opencv,但它在下面抛出错误:

In file included 
from D:\AndroidSDK\android-ndk-r17b\sources\cxx-stl\gnu-libstdc++\4.9\include/bits/stl_algo.h:59:0,
from D:\AndroidSDK\android-ndk-r17b\sources\cxx-stl\gnu-libstdc++\4.9\include/algorithm:62,
from D:\TMP\C++\OpenCV-Source\opencv-3.4.3\modules\core\include/opencv2/core/base.hpp:55,
from D:\TMP\C++\OpenCV-Source\opencv-3.4.3\modules\core\include/opencv2/core.hpp:54,
from D:\TMP\C++\OpenCV-Source\opencv-3.4.3\modules\core\include/opencv2/core/utility.hpp:56,
from D:\TMP\C++\OpenCV-Source\opencv-3.4.3\modules\core\src\precomp.hpp:49,
from D:\TMP\C++\OpenCV-Source\opencv-3.4.3\modules\core\src\algorithm.cpp:43:
D:\AndroidSDK\android-ndk-r17b\sources\cxx-stl\gnu- 
libstdc++\4.9\include/cstdlib:178:10: error: expected unqualified-id before 
'__int128'
inline __int128
D:\AndroidSDK\android-ndk-r17b\sysroot\usr\include\aarch64-linux- 
android/asm/sigcontext.h:40:3: error: '__uint128_t' does not name a type
__uint128_t vregs[32];

如何解决?

【问题讨论】:

    标签: opencv 64-bit mingw


    【解决方案1】:

    似乎是stl库的问题。您可以尝试将 CMAKE 中的 stl 更改为 c++ static:

    标志:ANDROID_STL 值:c++_static

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-08-25
      • 2014-01-12
      • 2016-11-15
      • 2011-04-24
      • 2013-06-13
      • 1970-01-01
      • 2018-12-09
      • 1970-01-01
      相关资源
      最近更新 更多