我现在正在努力奋斗2天并且不能让它发挥作用.
到目前为止我做了什么:
在Ubuntu 12.04 LTS上从源代码构建opencv 2.4.8 - >在ubuntu上编译和运行OpenCV项目
在Raspberry Pi Raspian上从源代码构建opencv 2.4.8 - >在Raspberry Pi上编译和运行OpenCV项目
使用crosstools-ng为Raspberry Pi构建了一个交叉编译器(http://www.bootc.net/archives/2012/05/26/how-to-build-a-cross-compiler-for-your-raspberry-pi /) - >在Ubuntu上构建的c ++程序,在Raspberry Pi上运行交叉编译器
我有什么问题:
|2|fatal error: opencv2/highgui/highgui.hpp: No such file or directory|
Run Code Online (Sandbox Code Playgroud)
# 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)