Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't cross build python packages #29

Closed
odurc opened this issue Aug 11, 2015 · 2 comments
Closed

can't cross build python packages #29

odurc opened this issue Aug 11, 2015 · 2 comments

Comments

@odurc
Copy link

odurc commented Aug 11, 2015

I can't build python packages using buildroot. In the building process the following message is received:

>>> python-olimex 0.2.1 Patching
>>> python-olimex 0.2.1 Configuring
>>> python-olimex 0.2.1 Building
(cd /home/crudo/modduo-build/ROOT/build/python-olimex-0.2.1//; PATH="/home/crudo/modduo-build/ROOT/host/bin:/home/crudo/modduo-build/ROOT/host/sbin:/home/crudo/modduo-build/ROOT/host/usr/bin:/home/crudo/modduo-build/ROOT/host/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" PYTHONPATH="/home/crudo/modduo-build/ROOT/target/usr/lib/python3.4/sysconfigdata/:/home/crudo/modduo-build/ROOT/target/usr/lib/python3.4/site-packages/" _python_sysroot=/home/crudo/modduo-build/ROOT/host/usr/arm-buildroot-linux-gnueabihf/sysroot _python_prefix=/usr _python_exec_prefix=/usr  /home/crudo/modduo-build/ROOT/host/usr/bin/python setup.py build  )
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.4
creating build/lib.linux-x86_64-3.4/pyA20
copying pyA20/__init__.py -> build/lib.linux-x86_64-3.4/pyA20
creating build/lib.linux-x86_64-3.4/pyA20/gpio
copying pyA20/gpio/__init__.py -> build/lib.linux-x86_64-3.4/pyA20/gpio
running build_ext
No processor detected
Warning! Detected and target processor mismatch. 
Do you want to continue [Y/n]?
@nardist01
Copy link

same problem

@selfbg
Copy link
Contributor

selfbg commented Mar 7, 2016

Since you're cross compiling the setup script is detecting that the host cpu is not same as the target(AW A20). Because of that you get input form. To bypass this, you should comment some code:

def print_warning():
"""
Print confirmation dialog
:return:
"""
print (print_color("Warning! ") + "Detected and target processor mismatch. ")


# var = input("Do you want to continue [Y/n]? ")
# if var == 'Y' or var == 'y':
#     return
# else:
#     print ("Abort.")
#    sys.exit(1)

This is setup.py file. After that it should work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants