sette

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: OpenCV link error #9150
    sette
    Participant

    I have changed computer to a one without the Windows version of the OpenCV libraries. Which resolved the previous issues. However, I get a new error now.

    What can be the problem now?

    VisualGDB: Run “C:\Program Files (x86)\CMake\bin\cmake.exe -DCMAKE_SYSTEM_PROCESSOR=armv8 -G “Unix Makefiles” -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_COLOR_MAKEFILE=OFF .. -DCMAKE_TOOLCHAIN_FILE=toolchain-Debug.cmake -DCMAKE_MAKE_PROGRAM=”C:/SysGCC/raspberry/bin/make.exe”” in directory “C:\Users\Erik\Desktop\PI\RaspberryCameraTest\Raspicam\..\..\..\..\..\..\raspicam-0.1.3/Debug” on (unspecified)
    1>  CMake Error at CMakeLists.txt:110 (if):
    1>    if given arguments:
    1>
    1>      “MATCHES” “amd64*” “OR” “MATCHES” “x86_64*”
    1>
    1>    Unknown arguments specified

    in reply to: OpenCV link error #9116
    sette
    Participant

    Thank you for your answer.

    However, I get the same error when trying the tutorial you suggested. How can I set the directory for the Linux versions of the libraries? The contents of my CMakeLists.txt is attached below:

    cmake_minimum_required(VERSION 2.7)

    project(OpenCVDemo)

    find_package(OpenCV REQUIRED)

    ocv_include_directories(“${OpenCV_SOURCE_DIR}/include”)

    ocv_include_modules_recurse(${OPENCV_CPP_SAMPLES_REQUIRED_DEPS})

    set(LIBRARIES_FROM_REFERENCES “”)

    add_executable(OpenCVDemo OpenCVDemo.cpp)

    target_link_libraries(OpenCVDemo ${OpenCV_LIBS} “${LIBRARIES_FROM_REFERENCES}”)

    • This reply was modified 8 years, 2 months ago by sette.
Viewing 2 posts - 1 through 2 (of 2 total)