9 comments on “OpenCV on Raspberry Pi with Arch Linux

  1. Pingback: Performance of Raspberry Pi with OpenCV | Ryan Messina

  2. This give me an error message :g++:error: image.c :No such file or directory…
    Could me pls give me an example (or location) of image.c file?
    thx

  3. Hey, it works fantastically well. I just added absolute paths in compile.sh for I was getting the same error of not finding the source file.
    I have a big question: How does this work without having to build the entire openCV library? I have read a lot about compilation and such, however i don’t quite understand why libraries have to be built, and this process seems to get around it. I hope you can answer, i want to learn more.

    • Hi, this is compiling with gcc or g++ and that is how they operate. Chances are if you are experiencing something else you are not using these compilers. I am not an expert in these area so I cannot confirm this.

  4. If you change “image” to “$1” you can pass a parameter to the script so that it can compile any file and not have to rewrite it every time. For example you can pass
    ./compile image
    ./compile image2
    and so on. The correct code is
    g++ $(pkg-config –cflags –libs opencv) -lm -o $1 $1.cpp
    (cpp is used for c++, c is used for c programs and with gcc)

Leave a comment