Created
May 20, 2020 22:10
-
-
Save natxopedreira/4afe59035feed60a0721fc98e50015da to your computer and use it in GitHub Desktop.
my notes on how to build from source
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:buster | |
USER root | |
RUN dpkg --add-architecture armhf && \ | |
apt-get update && \ | |
apt-get install -y --no-install-recommends \ | |
build-essential \ | |
crossbuild-essential-armhf \ | |
cmake \ | |
pkg-config \ | |
wget \ | |
xz-utils \ | |
cmake | |
libgtk2.0-dev:armhf \ | |
libpython-dev:armhf \ | |
libpython3-dev:armhf \ | |
python-numpy \ | |
python3-numpy \ | |
git \ | |
libusb-1.0-0-dev:armhf \ | |
libgtk-3-dev:armhf \ | |
libavcodec-dev:armhf \ | |
libavformat-dev:armhf \ | |
libswscale-dev:armhf \ | |
libgstreamer1.0-dev:armhf \ | |
libgstreamer-plugins-base1.0-dev:armhf \ | |
libpython3-dev:armhf \ | |
python3-pip | |
cmake -DCMAKE_BUILD_TYPE=Release \ | |
-DCMAKE_TOOLCHAIN_FILE="../cmake/arm.toolchain.cmake" \ | |
-DTHREADS_PTHREAD_ARG="-pthread" \ | |
-DENABLE_SSE42=OFF \ | |
-DTHREADING=SEQ \ | |
-DENABLE_GNA=OFF \ | |
-DENABLE_PYTHON=ON \ | |
-DPYTHON_EXECUTABLE=/usr/bin/python3.7 \ | |
-DPYTHON_LIBRARY=/usr/lib/arm-linux-gnueabihf/libpython3.7m.so \ | |
-DPYTHON_INCLUDE_DIR=/usr/include/python3.7 .. && make --jobs=$(nproc --all) | |
git clone https://github.com/openvinotoolkit/openvino.git | |
cd inference-engine | |
git submodule update --init --recursive | |
docker image build -t ie_cross_armhf ie_cross_armhf | |
sudo docker run -it -v /home/natxo/Escritorio/OPENVINO_LIFESENS/openvino:/home/pi/openvino ie_cross_armhf /bin/bash | |
pip3 install Cython |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment