Compiling from source, only need python3 libraries


I am using openCV to access a camera stream in python3 on a Beaglebone Black. The system runs on an IOT version of the debian firmware since I try to save space.

I only need a very limited functionality, and only in Python3.

I came to the following list of compilation flags as a minimal compilation:


The compilation fails (I’ll still need to look in to this, I’m compiling on the BBB itself which takes ages. At a later stage I’ll figure out how to cross compile on my linux machine), but I first want to make sure that this will give me what I need.

After I make, how do I install the python3 libraries?

make install

will copy your to the resp. site-packages folder

i’d add -DBUILD_SHARED_LIBS=OFF to the cmake flags to achieve a statically linked python module. (else you need to keep all other’s around, and have to run ldconfig on your (custom!) install folder

just show us