2014-04-17 4 views
0

내가 iOS 용을 OpenCV를 컴파일하려고 실패합니다. 나는 항상 이러한 오류가 발생합니다. 다른 버전의 opencv로 시도했지만 결과는 같습니다. 컴파일 OpenCV의 실패 - Cmake은

나는이 실행 파이썬의 플랫폼/IOS/build_framework.py ios_opencv_build

내가 파이썬, cmake와 g 설치 ++ 컴파일러를 가지고있다. 누구나 이러한 오류의 의미와 내가 성공적으로 컴파일해야 할 일을 알고 있습니까?

-- Setting up iPhoneOS toolchain 
    -- iPhoneOS toolchain loaded 
    -- Setting up iPhoneOS toolchain 
    -- iPhoneOS toolchain loaded 
    -- The CXX compiler identification is Clang 5.1.0 
    -- The C compiler identification is Clang 5.1.0 
    -- Performing Test HAVE_CXX_FSIGNED_CHAR 
    CMake Error at /opt/local/share/cmake-2.8/Modules/CMakeCXXInformation.cmake:37 (get_filename_component): 
     get_filename_component called with incorrect number of arguments 
    Call Stack (most recent call first): 
     CMakeLists.txt:3 (PROJECT) 


    CMake Error: Internal CMake error, TryCompile configure of cmake failed 
    -- Performing Test HAVE_CXX_FSIGNED_CHAR - Failed 
    -- Performing Test HAVE_C_FSIGNED_CHAR 
    CMake Error at /opt/local/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (get_filename_component): 
     get_filename_component called with incorrect number of arguments 
    Call Stack (most recent call first): 
     CMakeLists.txt:3 (PROJECT) 


    CMake Error: Internal CMake error, TryCompile configure of cmake failed 
    -- Performing Test HAVE_C_FSIGNED_CHAR - Failed 
    -- Performing Test HAVE_CXX_W 
    CMake Error at /opt/local/share/cmake-2.8/Modules/CMakeCXXInformation.cmake:37 (get_filename_component): 
     get_filename_component called with incorrect number of arguments 
    Call Stack (most recent call first): 
     CMakeLists.txt:3 (PROJECT) 
... 

답변

2

구식 버전의 CMake에는 문제가있는 것 같습니다. 자신의 웹 사이트에서 사용 가능한 최신 CMake로 업데이트 시도

도 참조 (OS 버전 및 CMake 버전은 사용 않는?) : http://answers.opencv.org/question/6789/problem-with-installation-opencv/ 이 (나는이 문제가 비슷한 생각을) : https://github.com/urho3d/Urho3D/issues/308

+0

cmake 버전 2.8.12 & Mac OSX 10.9.2 링크를 확인하고 v 2.4.3.1까지 다운로드하여 컴파일했습니다. 그것의 동일한 결과. – vatti

+1

그것의 작동. 놀랄 만한. 그것은 CMake의 오래된 버전 때문이었습니다. 나는 2.8.12.1을 가지고 있었는데, 당신이 물었을 때 커맨드 라인상에서 2.8.12만을 보여 주었고 나는 최신 버전 2.8.12.2를 가지고 있다고 생각했다. 포트를 사용하여 다시 설치하고 파이썬 스크립트를 실행하고 작동했습니다. 고마워요! – vatti

+0

다른 오류가 발생했습니다. 시간이 있다면 좀 보시 겠어요? http://stackoverflow.com/questions/23156007/compile-opencv-for-ios-fails – vatti