小编eel*_*lay的帖子

在Ubuntu上为Raspberry Pi交叉编译opencv项目

我现在正在努力奋斗2天并且不能让它发挥作用.

到目前为止我做了什么:


我有什么问题:

  • OpenCV程序不使用交叉编译器进行编译
  • |2|fatal error: opencv2/highgui/highgui.hpp: No such file or directory|
    
    Run Code Online (Sandbox Code Playgroud)

  • 我想我需要在ubuntu上交叉编译OpenCV.从我的交叉编译器我也有一个工具链
  • # this one is important
    SET(CMAKE_SYSTEM_NAME Linux)
    #this one not so much
    SET(CMAKE_SYSTEM_VERSION 1)
    
    # specify the cross compiler
    SET(CMAKE_C_COMPILER
    /home/christian/Programming/x-tools/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-gcc)
    
    SET(CMAKE_CXX_COMPILER
    /home/christian/Programming/x-tools/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-g++)
    
    # where is the target environment
    SET(CMAKE_FIND_ROOT_PATH
    /home/christian/Programming/x-tools/arm-unknown-linux-gnueabi)
    
    # search for programs in the build host directories
    SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
    # for libraries …
    Run Code Online (Sandbox Code Playgroud)

    c++ ubuntu opencv cross-compiling raspberry-pi

    5
    推荐指数
    2
    解决办法
    1万
    查看次数

    标签 统计

    c++ ×1

    cross-compiling ×1

    opencv ×1

    raspberry-pi ×1

    ubuntu ×1