-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Compile errors on Linux and macOS #5224
Comments
The MacOS build seems to lack libffi. |
Seems like I had an up-to-date libffi 3.2.1 already, I've run |
To skip libffi use make |
The first error is due to mpy-cross not being available. You need to run I'll update #5218 to add a nicer error about this. |
Good idea. |
@deeplook
|
Awesome, works for macOS! Thanks! Can we add that to some installation step in some README, please? Let me know where and I could do it... Testing on Linux now... |
Works on Linux, too! # macOS only prep step
brew install libffi
brew install pkgconfig
export PKG_CONFIG_PATH=/usr/local/opt/libffi/lib/pkgconfig
git clone https://github.com/micropython/micropython.git
cd micropython
git submodule update --init lib/axtls lib/berkeley-db-1.xx
cd mpy-cross
make
cd ..
cd ports/unix/
make
# smoke test
./micropython -c "print(42)" |
I have done the same as in the previous comment which works with x86/x86_64 build,however I have tried to cross compile it ended up with this.
|
Since ffi is failing (because it's not installed for the cross compiler) simply disable it with |
Yes i did. Its works well , however i would like to use modules (like requests, etc) , which does require libffi. Thus this method is not an option. The device i am trying to build for is a Kobo glo hd.To get this level of support i might have to bootstrap a whole system (like debian/alpine linux). |
You can try building with |
On Ubuntu 18.04 (x64), I had to install ffi headers, After that, I was able to build locally. Cross build support will be my next challenge. |
…s_nrf52840 Add adafruit_led_glasses_nrf52840
It seems that solutions have been found for the reported problems. Proposing to close this issue. |
I'm trying to compile the Unix port on Linux and macOS by doing the following:
But I get this on Linux:
And this on MacOS 10.14.6:
I was following the advice from #5207 about cloning the submodules, first... Anything I can do better?
The text was updated successfully, but these errors were encountered: