Building cross compiler error
I am trying to build cross compiler on Opensuse distribution but I run into error:
File "/home/morfeus/fresh_start_build/source/tmp/tmpyih9_2t1/pip-18.1-py2.py3-none-any.whl/pip/_internal/utils/glibc.py", line 3, in <module>
File "/home/morfeus/fresh_start_build/source/build_dir/hostpkg/Python-3.6.9/Lib/ctypes/init.py", line 7, in <module>
from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'
make: *** [install] Error 1
any idea how to solve this?
I did all as described in README.md and README file. Have also run sh scripts/onion-minimal-build.sh and checked in make menuconfig and there is no Python enabled. Thanks.
All fine. I was able to solve this problem this way:
- cd /scripts
- ./feeds install libffi
- ./feeds install libffi-devel
- ./feeds install python3-dev
- cd .. and run make -j
- (build failed again)
- cd staging_dir/hostpkg/lib/
- copy libffi* to /usr/lib
- enter to source folder and run make -j
All together, looks like the build system doesn't look in the right place for libs but instead in host /libs folder.
Just writing if someone runs into same problem to know how to solve.