This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
shotdetect [2016/05/31 12:48] wbeckett |
shotdetect [2021/06/04 02:16] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== SHOTDETECT ==== | + | ====== SHOTDETECT ===== |
+ | Requires cmake: https://cmake.org/download/ | ||
+ | |||
+ | apt-get install cmake | ||
+ | |||
+ | |||
+ | sudo apt-get install libavdevice-dev libavformat-dev libgd2-noxpm libgd2-noxpm-dev | ||
+ | |||
+ | |||
+ | ==== First - basic error: ==== | ||
no clang++ | no clang++ | ||
+ | |||
+ | This fixes the first error: | ||
sudo apt-get install clang-3.5 llvm | sudo apt-get install clang-3.5 llvm | ||
+ | |||
+ | rpi: sudo apt-get install clang | ||
<code> | <code> | ||
Line 11: | Line 24: | ||
</code> | </code> | ||
+ | |||
+ | ==== Next error is related to a missing header file fixed with this: ===== | ||
sudo apt-get install libswscale-dev | sudo apt-get install libswscale-dev | ||
+ | |||
+ | |||
+ | apt-get install libxml-dev | ||
+ | ==== XML errors - fixed: ===== | ||
+ | |||
+ | https://git.gnome.org/browse/libxml2/ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | <code> | ||
+ | required for building libxml2 | ||
+ | |||
+ | sudo apt-get install libtool | ||
+ | |||
+ | sudo apt-get install autoconf | ||
+ | |||
+ | Then: | ||
+ | |||
+ | ln -s /usr/local/include/libxml2 /usr/include/libxml2 | ||
+ | |||
+ | |||
+ | |||
+ | </code> | ||
+ | |||
+ | |||
+ | ==== Missing Python.h ==== | ||
+ | |||
+ | sudo apt-get install python-dev | ||
+ | |||
+ | |||
+ | ==== Missing xslt header ===== | ||
+ | |||
+ | sudo apt-get install libxslt1-dev | ||
+ | |||
+ | |||
+ | |||
+ | ==== Compile options for RPI ===== | ||
+ | |||
+ | -ccc-host-triple armv6-unknown-eabi -march=armv6 -mfpu=vfp -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -mfloat-abi=hard | ||
+ | |||
+ | Added to build: | ||
+ | CMakeCache.txt:CMAKE_CXX_FLAGS:STRING=-ccc-host-triple armv6-unknown-eabi -march=armv6 -mfpu=vfp -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -mfloat-abi=hard |