通过终端进入arm-OpenCV-2.4.3目录
vim CMakeCache.txt
此时需要修改CMakeCache.txt,CMAKE_EXE_LINKER_FLAGS原来为空,加上-lpthread -lrt (大概在173行)
make(出现 bin include lib share)
make install
将生成的库移植到开发板上,写一个程序测试一下
可能会出现以下问题
运行错误:
Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvNamedWindow, file /usr/local/opencv/OpenCV-2.0.0/src/highgui/window.cpp, line 100
terminate called after throwing an instance of 'cv::Exception'
Aborted