-
Notifications
You must be signed in to change notification settings - Fork 13.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
Unable to biuld px4 v 1.9.0 by cross-compilation on Ubuntu16.04 #13118
Comments
Have you tried to add See: http://man7.org/linux/man-pages/man2/sched_setparam.2.html |
Describe the bug To Reproduce Log Files and Screenshots
|
Have you tried adding |
@julianoes , the above errors have been solved through adding However, I have only one error at the last step. To Reproduce
Expected behavior Log Files and Screenshots
|
It can't find |
I have set the @julianoes , where and which file do I edit to add |
@MartinAtCoventry did you set |
Can you just add |
@TSC21 , how can I set the CFLAGS? |
Describe the bug I've found the function So, I think this means the header files of the robotcontrol library are not found by Cmake yet. Expected behavior Log Files and Screenshots
|
It looks like you're missing an update to DriverFramework. Can you check if you can checkout master of DriverFramework: You can do this by:
And then, when you build, you need to say that you know what you're doing regarding submodules, otherwise the script will reset it back. |
@julianoes , according to the way(PX4/DriverFramework@c7d2fe2) you give, I have successfully cross-compiled the full project codes for my Beaglebone Blue ( Log Files and Screenshots
|
If you're on Ubuntu 16.04, try to update |
@julianoes , It's so fantastic, the above error disappeared after installing Describe the bug Expected behavior
Log Files and Screenshots
|
Add something like this before the include:
Sorry, I guess the BeagleBone is not really something that is regularly tested or maintained by the PX4 community. |
@julianoes , this seem incorrect. When added
So, I changed the code you give because other two files have been defined
The whole project can be cross-compiled successfully. |
@julianoes , thank you so much for solving my cross-compilation problems. Through I cross-compiled again about the branch master and v1.9.0-rc2 of PX4 for BeagleboneBlue board, all of these two branches of code have been cross-compiled successfully. Also, I forget to give you the binary files about the robotcontrol library. You can download them from my github address: |
Thanks, glad I could help! |
Describe the bug
I am developing a PX4 flight controller which based on BeagleBoneBlue platform. I have set a cross compilation environment according to https://docs.px4.io/v1.9.0/en/flight_controller/beaglebone_blue.html)
But there still are some compilation errors when I execute a cross-compilation task on my Ubuntu(16.04LTS) development host.
To Reproduce
copy robotcontrol.h and rc/* from my beagleboneblue board into /home/yangyang/px4/robotcontrolLib/include(on my Ubuntu host).
copy librobotcontrol.* from beagleboneblue board into /home/yangyang/px4/robotcontrolLib/lib.
export LIBROBOTCONTROL_INSTALL_DIR=/home/yangyang/px4/robotcontrolLib
export PATH=$PATH:/opt/compilers/gcc-arm-linux-gnueabihf/bin
export CrossCompiler=/opt/compilers/gcc-arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
Tip: the version of cross-compiler is gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf
clone the px4 firmware (1.9.0-rc2) to home/yangyang/px4/Firmware
cd px4/Firmwre, and run "make beaglebone_blue_cross".
When compiling at the step [6/755], see the following errors.
Expected behavior
Go on with the cross compilation and finish it so that px4 can be used on the beagleboneblue.
Log Files and Screenshots
Thanks in advance
The text was updated successfully, but these errors were encountered: