I am trying to get the Python APIs running on a Beaglebone Black. The Beaglebone I have is running a custom Linux flavor and does not have network access, so I can’t simply install swig and compile directly on the Beaglebone. Instead, I have a toolchain on my host computer I’m trying to use to cross-compile for the Beaglebone Black. I was able to use this toolchain to cross-compile the C++ demos and run them successfully on the Beaglebone, but now I’m having trouble compiling the Python demos. After modifying swig.dat and running build_python_demos.sh, I get the following error:
In file included from /usr/include/python3.6m/Python.h:8:0,
from pixy_wrap.cxx:173:
/usr/include/python3.6m/pyconfig.h:13:12: fatal error: arm-linux-gnueabihf/python3.6m/pyconfig.h: No such file or directory
# include <arm-linux-gnueabihf/python3.6m/pyconfig.h>
Has anyone had success with using swig to cross-compile?