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

make bindings_python error #1370

Closed
Guohao23 opened this issue Apr 23, 2024 · 4 comments
Closed

make bindings_python error #1370

Guohao23 opened this issue Apr 23, 2024 · 4 comments

Comments

@Guohao23
Copy link

ros2 :galactic ubuntu :20.04
guo@Guo:~/crazyflie-firmware$ make bindings_python
Makefile:213: warning: overriding recipe for target 'bindings_python'
tools/kbuild/Makefile.kbuild:147: warning: ignoring old recipe for target 'bindings_python'
make[1]: Entering directory '/home/guo/crazyflie-firmware/build'
make[1]: Nothing to be done for 'bindings_python'.
make[1]: Leaving directory '/home/guo/crazyflie-firmware/build'
swig -python -Isrc/modules/interface -Isrc/hal/interface -Isrc/utils/interface -Isrc/modules/interface/controller -Isrc/platform/interface -Isrc/modules/interface/outlierfilter -Isrc/modules/interface/kalman_core -o build/cffirmware_wrap.c bindings/cffirmware.i
python3 bindings/setup.py build_ext --inplace
In file included from src/modules/interface/kalman_core/kalman_core.h:56,
from build/cffirmware_wrap.c:2757:
src/utils/interface/cf_math.h:35:10: fatal error: arm_math.h: No such file or directory
35 | #include "arm_math.h"
| ^~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
make: *** [Makefile:214: bindings_python] Error 1

@knmcguire
Copy link
Member

You forgot to do --recursive as per instructions. Do git submodule init and then git submodule update

Duplicate of IMRCLab/crazyswarm2#486

@jpreiss
Copy link
Contributor

jpreiss commented May 17, 2024

One situation where you get this error: if you clone a fork of this repo whose master branch is super old (like 2+ years), its submodule for CMSIS points to a different repo. If you then check out a feature branch that's more recent, the submodule url won't get updated automatically. A git submodule sync && git submodule update will fix it.

@knmcguire
Copy link
Member

@Guohao23 could you confirm that this fixed your problem? then we can close this issue

@ataffanel
Copy link
Member

This issue is stalled so I am closing it. Do not hesitate to re-open if needed.

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

No branches or pull requests

4 participants