Ask Your Question
0

how to cross compile opencv for raspberrypi

asked 2016-08-03 00:28:25 -0600

jekson@jekson-Veriton-M200-H81:~/opencv/platforms/linux/build_hardfp$ cmake -DCMAKE_TOOLCHAIN_FILE=../arm-gnueabi.toolchain.cmake ../ CMake Error: The source directory "/home/jekson/opencv/platforms/linux" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI.

i am getting this error. please help.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-08-03 03:36:09 -0600

Here is quite the nice guide on cross compiling OpenCV 3 on Raspberri Pi. As to your code, you are probably not in the folder with the source code, because there is no CMakeLists.txt.

Either

  • do make a build directory and then change your command to at least cmake -DCMAKE_TOOLCHAIN_FILE=../arm-gnueabi.toolchain.cmake .. without the slash.
  • or just move into your source code directory and do cmake -DCMAKE_TOOLCHAIN_FILE=../arm-gnueabi.toolchain.cmake .
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-08-03 00:28:25 -0600

Seen: 140 times

Last updated: Aug 03 '16