-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Build embed with C modules isn't working #15654
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
Comments
This could be a failure either at build time or a module loading time. Do you see the module being built? |
If I try to build using the same instructions I get the error:
If the USER_C_MODULES path is invalid it will just fail silently. Fwiw I was using:
If I mangle CFLAGS and CXXFLAGS until things build, I end up with:
Presumably the included .mk is building the user modules, but they aren't being added to the target. |
With these changes I got C/C++ modules working... in a limited capacity. It's clear the embed port makes no effort to support these whatsoever since presumably you'd handle C functionality in your application code anyway. But since ulab is a (very good) C module, and might conceivably be wanted in MicroPython's embed port... this could make sense. (ノ◕ヮ◕)ノ*:・゚✧. master...pimoroni:micropython:feature/embed_c_modules |
The embed port is very new and still needs work to add more features. See eg #11430. |
Port, board and/or hardware
embed
MicroPython version
MicroPython v1.22.2 on 2024-08-13; linux [GCC 4.2.1] version
Reproduction
examples/embedding/main.c
by addingimport cexample
into second exampleexamples/embedding
runExpected behaviour
Expected to start without errors
Observed behaviour
Additional Information
No, I've provided everything above.
Code of Conduct
Yes, I agree
The text was updated successfully, but these errors were encountered: