ubuntu14.04上的Cmake错误

时间:2016-03-14 06:50:07

标签: opencv cmake

我正在尝试从git构建project。获取以下错误:

CMake Warning at cmake/OpenCVDetectCXXCompiler.cmake:95 (message):
  GCC version not detected!
Call Stack (most recent call first):
  CMakeLists.txt:116 (include)


-- Detected version of GNU GCC: 00 (0)
-- Check if the system is big endian
-- Searching 16 bit integer
CMake Error at /usr/share/cmake-3.2/Modules/TestBigEndian.cmake:51 (message):
  no suitable type found
Call Stack (most recent call first):
  CMakeLists.txt:529 (test_big_endian)


-- Configuring incomplete, errors occurred!

无法理解错误。任何帮助表示赞赏

在项目3. Build Android OpenCV SDK with extra modules for Android中,当我尝试sh ./scripts/cmake_android_arm.sh时,我收到了上述错误。

1 个答案:

答案 0 :(得分:4)

我遇到了同样的错误:TestBigEndian:找不到合适的类型。

但是,删除build_android_arm目录下的CMakeCache.txt文件解决了这个问题。