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

Raspberry Pi compile compatibility #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TierNolan
Copy link

This fixes 3 problems that prevent the latest repo from being compiled on a Raspberry Pi.

The cryptopp Makefile only does the Sun architecture check for x86 processors. However, blank is considered Sun architecture. This moves the check outside the if, so the check is always performed. This mean Sun specific flags are not added.

The Raspbian Wheezy version of linux doesn't have a python2 link in /usr/bin. The python link calls python 2.x. The Makefile is updated to use python if the python link calls version 2.x. Otherwise, it uses python2.

Finally, there is an exception when starting the GUI from armoryengine.py. /proc/cpuinfo is scanned for "model name". However, the Raspberry doesn't have that line. This means that the CpuStr field is left as null.

These changes allow make all to build the source files for use on the Pi.

Stops Makefile detecting processor as Sun processor
Uses /usr/bin/python for python2 if python2 doesn't exist, as PI doesn't have specific python2 link
Fixes exception for machine detection at startup in armoryengine.py
@TierNolan
Copy link
Author

I updated, the latest now checks that the version check from python is 2.x before switching from using python2 to python.

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

Successfully merging this pull request may close these issues.

1 participant