web-dev-qa-db-ja.com

OpenCVの構成中にCmakeが失敗する

OpenCVを作成してQtで使用しようとしています。 OpenCVとQtに必要なすべてのパッケージをインストールした後、cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local /media/d/Install/opencv-2.4.8も実行しようとしましたが、エラーが発生しました。

CMake Error at /usr/share/cmake-2.8/Modules/CMakeDetermineSystem.cmake:189 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMakeLists.txt:56 (project)


-- The CXX compiler identification is GNU 4.8.2
CMake Error at /usr/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:185 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMakeLists.txt:56 (project)


-- The C compiler identification is GNU 4.8.2
CMake Error at /usr/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:186 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMakeLists.txt:56 (project)


-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:71 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMakeLists.txt:56 (project)


-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:78 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMakeLists.txt:56 (project)


CMake Error at CMakeLists.txt:70 (message):
  CMake fails to deterimine the bitness of target platform.

    Please check your CMake and compiler installation. If you are crosscompiling then ensure that your CMake toolchain file correctly sets the compiler details.


-- Configuring incomplete, errors occurred!

CMakeLists.txt:56:

project(OpenCV CXX C)

/usr/share/cmake-2.8/Modules/CMakeDetermineSystem.cmake:189:

configure_file(${CMAKE_ROOT}/Modules/CMakeSystem.cmake.in
                ${CMAKE_PLATFORM_INFO_DIR}/CMakeSystem.cmake
                IMMEDIATE @ONLY)
2
Ilia

以前にcmakeを開始したビルドフォルダーを削除して解決しましたが、インストール中にキャンセルしました。今では動作します。

1
Louis M