-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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 build px4 native on beaglebone blue #12509
Comments
Hi |
Hi I did replace the PX4_INFO and PX4_ERR with the printf function. Below i put the full instalation log file. debian@beaglebone:~/Firmware$ sudo make beaglebone_blue_native Thanks in advance |
It seems like this symbol is not available https://github.com/PX4/DriverFramework/blob/06277ef49fb8c9fad18d56ef40e8bc9fe1655a65/framework/src/I2CDevObj.cpp#L176. but I have no idea where this library would come from. @UAV-Pilot do you know? |
It has to be replaced with providing one |
Thank you very much guys It was indeed about the line @silentjet pointed out, |
@Kirito1136 @silentjet can one of you please submit a PR to fix these? Thanks. |
PR PX4/DriverFramework#239 created |
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
I'm going to close this because a lot has changed recently around DriverFramework etc. |
These issues were fixed and we build |
Intro
Because i need to do some extra calculations in the air i decided to buy a Beaglebone blue to use it as a flight controller in my project.
Bug Description.
I used the guide that is written on docs.px4.io to upload the firmware native at the Beaglebone blue.
https://docs.px4.io/v1.9.0/en/flight_controller/Beaglebone_blue.html
I believe that the documentation is outdated by my time of writing because the command
/Firmware$ make posix_bbblue_native
i cannot findit so instead i used the command
/Firmware$ make beaglebone_blue_native
but that asside.
the problem is that at 2-20% its giving the error:
'MODULE_NAME' undecleared (first use in this function)
To Reproduce this error
1 connect the beaglebone to a laptop
2 flash BBB-blank-debian-9.5-iot-armhf-2018-10-07-4gb on it
3 install extra packages that are needed > apt-get install numpy, toml, ect
4 clone the librobotcontrol from the website (2.0.4)
5 rename the librobotcontrol to LIBROBOTCONTROL_INSTALL_DIR
6 clone the px4 firmware (1.9.0) to home/Firmware (standard location)
7 Run: debian@beaglebone:~/Firmware$ sudo make beaglebone_blue_native
8 Between 2 and 20% see the magic happens
Expected behavior
Go on with the installation and finish it so that px4 can be used on the beaglebone
Log files of the installation
debian@beaglebone:~/Firmware$ sudo make beaglebone_blue_native
[ 1%] Built target df_bmp280
[ 1%] Built target df_mpu9250
[ 1%] Built target uorb_headers
[ 3%] Built target df_driver_framework
Scanning dependencies of target drivers_board
Scanning dependencies of target rc
[ 3%] Built target mixer_gen_6dof
[ 3%] Building C object boards/beaglebone/blue/src/CMakeFiles/drivers_board.dir/init.c.o
[ 3%] Built target mixer_gen
[ 3%] Building CXX object src/lib/rc/CMakeFiles/rc.dir/crsf.cpp.o
[ 3%] Built target ver_gen
[ 3%] Built target git_gps_devices
[ 3%] Built target git_ecl
[ 3%] Built target git_mavlink_v2
[ 3%] Built target git_driverframework
[ 4%] Built target lockstep_scheduler
Scanning dependencies of target tinybson
[ 4%] Building CXX object src/lib/parameters/tinybson/CMakeFiles/tinybson.dir/tinybson.cpp.o
Scanning dependencies of target uorb_msgs
[ 4%] Building CXX object src/lib/rc/CMakeFiles/rc.dir/st24.cpp.o
In file included from /home/debian/Firmware/boards/beaglebone/blue/src/init.c:40:0:
/home/debian/Firmware/boards/beaglebone/blue/src/init.c: In function ‘rc_init’:
/home/debian/Firmware/src/platforms/px4_log.h:232:29: error: ‘MODULE_NAME’ undeclared (first use in this function)
px4_log_modulename(level, MODULE_NAME, fmt, ##VA_ARGS);
^
/home/debian/Firmware/src/platforms/px4_log.h:388:29: note: in expansion of macro ‘__px4_log_modulename’
#define PX4_INFO(FMT, ...) __px4_log_modulename(_PX4_LOG_LEVEL_INFO, FMT, ##VA_ARGS)
^~~~~~~~~~~~~~~~~~~~
/home/debian/Firmware/boards/beaglebone/blue/src/init.c:56:2: note: in expansion of macro ‘PX4_INFO’
PX4_INFO("Initializing librobotcontrol ...");
^~~~~~~~
compilation terminated due to -Wfatal-errors.
boards/beaglebone/blue/src/CMakeFiles/drivers_board.dir/build.make:62: recipe for target 'boards/beaglebone/blue/src/CMakeFiles/drivers_board.dir/init.c.o' failed
make[3]: *** [boards/beaglebone/blue/src/CMakeFiles/drivers_board.dir/init.c.o] Error 1
CMakeFiles/Makefile2:9857: recipe for target 'boards/beaglebone/blue/src/CMakeFiles/drivers_board.dir/all' failed
make[2]: *** [boards/beaglebone/blue/src/CMakeFiles/drivers_board.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[ 4%] Building CXX object src/lib/rc/CMakeFiles/rc.dir/sumd.cpp.o
[ 4%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/actuator_armed.cpp.o
[ 4%] Linking CXX static library libtinybson.a
Makefile:149: recipe for target 'all' failed
make[1]: *** [all] Error 2
Makefile:193: recipe for target 'beaglebone_blue_native' failed
make: *** [beaglebone_blue_native] Error 2
Thanks in advance
The text was updated successfully, but these errors were encountered: