How can I use dronecore on Raspberry pi?

#1

Hi,

Currently Iโ€™ve downloaded dronecode library from github and tried to build on Raspberry pi 3 for off board control.
But in build time, Raspberry pi(Ubuntu Mate) is locked up.
Do you have any solution?

1 Like
#2

Hi,
I tried to install the DroneCore on Raspberrypi 2B, and I also found a problem about tinyxml2, just as follows. That means I have to install the tinyxml2 lib on the Pi firstly?

#3

I have solved such problem. DroneCore is installed on my RaspberryPi 2B successfully, as shown in the Figure.

#4

Thank you for infomation.
Could you please share the command or instruction for this build?

#5

hey @kevinjhur,

I show you the process of installation. would you please share the topology of the RaspberryPi connecting to the pixhawk with me?

Iโ€™m trying the following application process of the DroneCore for the real vehicle.

We can share the exploration process, do you agree?

After โ€˜git submodule update --init --recursiveโ€™ then
three steps need to implement:
1.
pi@raspberrypi:~ $ sudo apt-get install libtinyxml2-dev
Reading package listsโ€ฆ Done
Building dependency tree
Reading state informationโ€ฆ Done
The following extra packages will be installed:
libtinyxml2-2
The following NEW packages will be installed:
libtinyxml2-2 libtinyxml2-dev
0 upgraded, 2 newly installed, 0 to remove and 303 not upgraded.
Need to get 55.4 kB of archives.
After this operation, 245 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main libtinyxml2-2 armhf 2.2.0-1 [21.4 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main libtinyxml2-dev armhf 2.2.0-1 [34.0 kB]
Fetched 55.4 kB in 2s (26.6 kB/s)
Selecting previously unselected package libtinyxml2-2:armhf.
(Reading database โ€ฆ 122757 files and directories currently installed.)
Preparing to unpack โ€ฆ/libtinyxml2-2_2.2.0-1_armhf.deb โ€ฆ
Unpacking libtinyxml2-2:armhf (2.2.0-1) โ€ฆ
Selecting previously unselected package libtinyxml2-dev:armhf.
Preparing to unpack โ€ฆ/libtinyxml2-dev_2.2.0-1_armhf.deb โ€ฆ
Unpacking libtinyxml2-dev:armhf (2.2.0-1) โ€ฆ
Setting up libtinyxml2-2:armhf (2.2.0-1) โ€ฆ
Setting up libtinyxml2-dev:armhf (2.2.0-1) โ€ฆ
Processing triggers for libc-bin (2.19-18+deb8u6) โ€ฆ

pi@raspberrypi:~ $ cd DroneCore
pi@raspberrypi:~/DroneCore $ make clean
pi@raspberrypi:~/DroneCore $ make default
โ€“ The C compiler identification is GNU 4.9.2
โ€“ The CXX compiler identification is GNU 4.9.2
โ€“ Check for working C compiler: /usr/bin/cc
โ€“ Check for working C compiler: /usr/bin/cc โ€“ works
โ€“ Detecting C compiler ABI info
โ€“ Detecting C compiler ABI info - done
โ€“ Detecting C compile features
โ€“ Detecting C compile features - done
โ€“ Check for working CXX compiler: /usr/bin/c++
โ€“ Check for working CXX compiler: /usr/bin/c++ โ€“ works
โ€“ Detecting CXX compiler ABI info
โ€“ Detecting CXX compiler ABI info - done
โ€“ Detecting CXX compile features
โ€“ Detecting CXX compile features - done
โ€“ Looking for sys/types.h
โ€“ Looking for sys/types.h - found
โ€“ Looking for stdint.h
โ€“ Looking for stdint.h - found
โ€“ Looking for stddef.h
โ€“ Looking for stddef.h - found
โ€“ Check size of off64_t
โ€“ Check size of off64_t - done
โ€“ Looking for fseeko
โ€“ Looking for fseeko - found
โ€“ Looking for unistd.h
โ€“ Looking for unistd.h - found
โ€“ Found CURL: /usr/lib/arm-linux-gnueabihf/libcurl.so (found version โ€œ7.38.0โ€)
โ€“ Looking for pthread.h
โ€“ Looking for pthread.h - found
โ€“ Looking for pthread_create
โ€“ Looking for pthread_create - not found
โ€“ Looking for pthread_create in pthreads
โ€“ Looking for pthread_create in pthreads - not found
โ€“ Looking for pthread_create in pthread
โ€“ Looking for pthread_create in pthread - found
โ€“ Found Threads: TRUE
โ€“ Performing Test _flag_supported
โ€“ Performing Test _flag_supported - Failed
โ€“ BUILD_DRONECORESERVER not set: not building dronecore server
โ€“ Found PythonInterp: /usr/bin/python (found version โ€œ2.7.9โ€)
โ€“ Check if compiler accepts -pthread
โ€“ Check if compiler accepts -pthread - yes
โ€“ Configuring done
โ€“ Generating done
โ€“ Build files have been written to: /home/pi/DroneCore/build/default
Build dir: build/default
Scanning dependencies of target gtest
Scanning dependencies of target zlibstatic
Scanning dependencies of target zlib
Scanning dependencies of target json11
Scanning dependencies of target gmock
[ 1%] Building CXX object plugins/mission/third_party/json11/CMakeFiles/json11.dir/json11.cpp.o
[ 2%] Building C object third_party/zlib/CMakeFiles/zlib.dir/adler32.o
[ 2%] Building C object third_party/zlib/CMakeFiles/zlibstatic.dir/compress.o
[ 3%] Building C object third_party/zlib/CMakeFiles/zlibstatic.dir/crc32.o
[ 4%] Building C object third_party/zlib/CMakeFiles/zlibstatic.dir/deflate.o
[ 5%] Building CXX object third_party/gtest/googlemock/gtest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
[ 6%] Building C object third_party/zlib/CMakeFiles/zlibstatic.dir/adler32.o
[ 7%] Building CXX object third_party/gtest/googlemock/CMakeFiles/gmock.dir//googletest/src/gtest-all.cc.o
[ 7%] Building CXX object third_party/gtest/googlemock/CMakeFiles/gmock.dir/src/gmock-all.cc.o
[ 8%] Building C object third_party/zlib/CMakeFiles/zlib.dir/compress.o
[ 9%] Building C object third_party/zlib/CMakeFiles/zlib.dir/crc32.o
[ 10%] Building C object third_party/zlib/CMakeFiles/zlibstatic.dir/gzclose.o
[ 10%] Building C object third_party/zlib/CMakeFiles/zlib.dir/deflate.o
[ 11%] Building C object third_party/zlib/CMakeFiles/zlib.dir/gzclose.o
[ 12%] Building C object third_party/zlib/CMakeFiles/zlibstatic.dir/gzlib.o
[ 13%] Building C object third_party/zlib/CMakeFiles/zlib.dir/gzlib.o
[ 14%] Building C object third_party/zlib/CMakeFiles/zlib.dir/gzread.o
[ 15%] Building C object third_party/zlib/CMakeFiles/zlib.dir/gzwrite.o
[ 15%] Building C object third_party/zlib/CMakeFiles/zlib.dir/inflate.o
[ 15%] Building C object third_party/zlib/CMakeFiles/zlibstatic.dir/gzread.o
[ 16%] Building C object third_party/zlib/CMakeFiles/zlib.dir/infback.o
[ 18%] Building C object third_party/zlib/CMakeFiles/zlibstatic.dir/gzwrite.o
[ 18%] Building C object third_party/zlib/CMakeFiles/zlib.dir/inftrees.o
[ 19%] Building C object third_party/zlib/CMakeFiles/zlib.dir/inffast.o
[ 20%] Building C object third_party/zlib/CMakeFiles/zlib.dir/trees.o
[ 20%] Building C object third_party/zlib/CMakeFiles/zlib.dir/uncompr.o
[ 21%] Building C object third_party/zlib/CMakeFiles/zlibstatic.dir/inflate.o
[ 22%] Building C object third_party/zlib/CMakeFiles/zlib.dir/zutil.o
[ 23%] Building C object third_party/zlib/CMakeFiles/zlibstatic.dir/infback.o
[ 24%] Building C object third_party/zlib/CMakeFiles/zlibstatic.dir/inftrees.o
[ 24%] Building C object third_party/zlib/CMakeFiles/zlibstatic.dir/inffast.o
[ 25%] Building C object third_party/zlib/CMakeFiles/zlibstatic.dir/trees.o
[ 26%] Building C object third_party/zlib/CMakeFiles/zlibstatic.dir/uncompr.o
[ 27%] Building C object third_party/zlib/CMakeFiles/zlibstatic.dir/zutil.o
[ 28%] Linking C shared library libz.so
[ 28%] Built target zlib
Scanning dependencies of target minigzip
Scanning dependencies of target example
Scanning dependencies of target example64
[ 29%] Building C object third_party/zlib/CMakeFiles/minigzip.dir/test/minigzip.o
[ 30%] Building C object third_party/zlib/CMakeFiles/example.dir/test/example.o
[ 31%] Building C object third_party/zlib/CMakeFiles/example64.dir/test/example.o
[ 32%] Linking C static library libz.a
[ 32%] Linking C executable minigzip
[ 32%] Built target zlibstatic
Scanning dependencies of target minigzip64
[ 32%] Built target minigzip
[ 32%] Linking C executable example
[ 34%] Building C object third_party/zlib/CMakeFiles/minigzip64.dir/test/minigzip.o
[ 35%] Linking C executable example64
Scanning dependencies of target dronecore
[ 35%] Built target example
[ 35%] Built target example64
[ 36%] Linking C executable minigzip64
[ 36%] Built target minigzip64
[ 36%] Building CXX object core/CMakeFiles/dronecore.dir/call_every_handler.cpp.o
[ 37%] Building CXX object core/CMakeFiles/dronecore.dir/connection.cpp.o
[ 38%] Building CXX object core/CMakeFiles/dronecore.dir/device.cpp.o
[ 39%] Building CXX object core/CMakeFiles/dronecore.dir/curl_wrapper.cpp.o
[ 40%] Building CXX object core/CMakeFiles/dronecore.dir/dronecore.cpp.o
[ 40%] Building CXX object core/CMakeFiles/dronecore.dir/dronecore_impl.cpp.o
[ 41%] Linking CXX static library libjson11.a
[ 41%] Built target json11
[ 42%] Building CXX object core/CMakeFiles/dronecore.dir/global_include.cpp.o
[ 44%] Building CXX object core/CMakeFiles/dronecore.dir/mavlink_commands.cpp.o
[ 44%] Building CXX object core/CMakeFiles/dronecore.dir/http_loader.cpp.o
[ 44%] Building CXX object core/CMakeFiles/dronecore.dir/mavlink_parameters.cpp.o
[ 45%] Building CXX object core/CMakeFiles/dronecore.dir/mavlink_channels.cpp.o
[ 46%] Building CXX object core/CMakeFiles/dronecore.dir/mavlink_receiver.cpp.o
[ 47%] Building CXX object core/CMakeFiles/dronecore.dir/plugin_base.cpp.o
[ 48%] Building CXX object core/CMakeFiles/dronecore.dir/plugin_impl_base.cpp.o
[ 48%] Building CXX object core/CMakeFiles/dronecore.dir/serial_connection.cpp.o
[ 49%] Linking CXX static library libgmockd.a
[ 50%] Building CXX object core/CMakeFiles/dronecore.dir/tcp_connection.cpp.o
[ 51%] Building CXX object core/CMakeFiles/dronecore.dir/timeout_handler.cpp.o
[ 52%] Building CXX object core/CMakeFiles/dronecore.dir/udp_connection.cpp.o
[ 53%] Linking CXX static library libgtestd.a
[ 53%] Built target gmock
[ 53%] Built target gtest
Scanning dependencies of target gtest_main
[ 54%] Building CXX object third_party/gtest/googlemock/gtest/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o
[ 54%] Linking CXX shared library libdronecore.so
[ 54%] Built target dronecore
Scanning dependencies of target dronecore_gimbal
Scanning dependencies of target dronecore_mission
Scanning dependencies of target dronecore_action
Scanning dependencies of target dronecore_telemetry
Scanning dependencies of target dronecore_logging
Scanning dependencies of target dronecore_offboard
Scanning dependencies of target dronecore_info
[ 54%] Building CXX object plugins/info/CMakeFiles/dronecore_info.dir/info.cpp.o
[ 54%] Building CXX object plugins/telemetry/CMakeFiles/dronecore_telemetry.dir/telemetry.cpp.o
[ 55%] Building CXX object plugins/offboard/CMakeFiles/dronecore_offboard.dir/offboard.cpp.o
[ 56%] Building CXX object plugins/gimbal/CMakeFiles/dronecore_gimbal.dir/gimbal.cpp.o
[ 57%] Building CXX object plugins/logging/CMakeFiles/dronecore_logging.dir/logging.cpp.o
[ 58%] Building CXX object plugins/action/CMakeFiles/dronecore_action.dir/action.cpp.o
[ 59%] Building CXX object plugins/mission/CMakeFiles/dronecore_mission.dir/mission.cpp.o
[ 60%] Linking CXX static library libgtest_maind.a
[ 60%] Built target gtest_main
[ 61%] Building CXX object plugins/mission/CMakeFiles/dronecore_mission.dir/mission_impl.cpp.o
[ 62%] Building CXX object plugins/info/CMakeFiles/dronecore_info.dir/info_impl.cpp.o
[ 63%] Building CXX object plugins/gimbal/CMakeFiles/dronecore_gimbal.dir/gimbal_impl.cpp.o
[ 63%] Building CXX object plugins/logging/CMakeFiles/dronecore_logging.dir/logging_impl.cpp.o
[ 64%] Building CXX object plugins/offboard/CMakeFiles/dronecore_offboard.dir/offboard_impl.cpp.o
[ 65%] Building CXX object plugins/telemetry/CMakeFiles/dronecore_telemetry.dir/telemetry_impl.cpp.o
[ 67%] Building CXX object plugins/action/CMakeFiles/dronecore_action.dir/action_impl.cpp.o
Scanning dependencies of target dronecore_follow_me
[ 68%] Building CXX object plugins/follow_me/CMakeFiles/dronecore_follow_me.dir/follow_me.cpp.o
[ 69%] Linking CXX shared library libdronecore_info.so
[ 69%] Built target dronecore_info
[ 70%] Building CXX object plugins/mission/CMakeFiles/dronecore_mission.dir/mission_item.cpp.o
[ 71%] Linking CXX shared library libdronecore_gimbal.so
[ 71%] Building CXX object plugins/follow_me/CMakeFiles/dronecore_follow_me.dir/follow_me_impl.cpp.o
[ 72%] Linking CXX shared library libdronecore_logging.so
[ 73%] Building CXX object plugins/telemetry/CMakeFiles/dronecore_telemetry.dir/math_conversions.cpp.o
[ 73%] Built target dronecore_gimbal
[ 73%] Building CXX object plugins/mission/CMakeFiles/dronecore_mission.dir/mission_item_impl.cpp.o
[ 73%] Built target dronecore_logging
[ 74%] Linking CXX shared library libdronecore_offboard.so
[ 75%] Linking CXX shared library libdronecore_action.so
[ 75%] Built target dronecore_offboard
[ 76%] Linking CXX shared library libdronecore_telemetry.so
[ 76%] Built target dronecore_action
[ 76%] Built target dronecore_telemetry
[ 77%] Linking CXX shared library libdronecore_mission.so
[ 77%] Built target dronecore_mission
Scanning dependencies of target unit_tests_runner
[ 78%] Building CXX object CMakeFiles/unit_tests_runner.dir/core/mavlink_channels_test.cpp.o
[ 78%] Building CXX object CMakeFiles/unit_tests_runner.dir/core/unittests_main.cpp.o
[ 79%] Building CXX object CMakeFiles/unit_tests_runner.dir/core/curl_test.cpp.o
[ 80%] Building CXX object CMakeFiles/unit_tests_runner.dir/core/global_include_test.cpp.o
[ 81%] Building CXX object CMakeFiles/unit_tests_runner.dir/core/call_every_handler_test.cpp.o
[ 82%] Building CXX object CMakeFiles/unit_tests_runner.dir/core/timeout_handler_test.cpp.o
[ 83%] Building CXX object CMakeFiles/unit_tests_runner.dir/plugins/mission/mission_import_qgc_test.cpp.o
[ 84%] Linking CXX shared library libdronecore_follow_me.so
[ 84%] Built target dronecore_follow_me
Scanning dependencies of target integration_tests_runner
[ 84%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/
/core/unittests_main.cpp.o
[ 85%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/simple_connect.cpp.o
[ 86%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/async_connect.cpp.o
[ 87%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/telemetry_simple.cpp.o
[ 88%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/telemetry_modes.cpp.o
[ 89%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/telemetry_health.cpp.o
[ 89%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/telemetry_async.cpp.o
[ 90%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/simple_hover.cpp.o
[ 90%] Linking CXX executable unit_tests_runner
[ 91%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/async_hover.cpp.o
[ 91%] Built target unit_tests_runner
[ 91%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/takeoff_and_kill.cpp.o
[ 92%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/offboard_velocity.cpp.o
[ 93%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/logging.cpp.o
[ 94%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/info.cpp.o
[ 95%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/mission.cpp.o
[ 95%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/mission_change_speed.cpp.o
[ 96%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/mission_survey.cpp.o
[ 97%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/gimbal.cpp.o
[ 98%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/transition_multicopter_fixedwing.cpp.o
[ 98%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/follow_me.cpp.o
[100%] Linking CXX executable integration_tests_runner
[100%] Built target integration_tests_runner

pi@raspberrypi:~/DroneCore $ make clean
pi@raspberrypi:~/DroneCore $ sudo INSTALL_PREFIX=/usr/local make default install-- The C compiler identification is GNU 4.9.2
โ€“ The CXX compiler identification is GNU 4.9.2
โ€“ Check for working C compiler: /usr/bin/cc
โ€“ Check for working C compiler: /usr/bin/cc โ€“ works
โ€“ Detecting C compiler ABI info
โ€“ Detecting C compiler ABI info - done
โ€“ Detecting C compile features
โ€“ Detecting C compile features - done
โ€“ Check for working CXX compiler: /usr/bin/c++
โ€“ Check for working CXX compiler: /usr/bin/c++ โ€“ works
โ€“ Detecting CXX compiler ABI info
โ€“ Detecting CXX compiler ABI info - done
โ€“ Detecting CXX compile features
โ€“ Detecting CXX compile features - done
โ€“ Looking for sys/types.h
โ€“ Looking for sys/types.h - found
โ€“ Looking for stdint.h
โ€“ Looking for stdint.h - found
โ€“ Looking for stddef.h
โ€“ Looking for stddef.h - found
โ€“ Check size of off64_t
โ€“ Check size of off64_t - done
โ€“ Looking for fseeko
โ€“ Looking for fseeko - found
โ€“ Looking for unistd.h
โ€“ Looking for unistd.h - found
โ€“ Found CURL: /usr/lib/arm-linux-gnueabihf/libcurl.so (found version โ€œ7.38.0โ€)
โ€“ Looking for pthread.h
โ€“ Looking for pthread.h - found
โ€“ Looking for pthread_create
โ€“ Looking for pthread_create - not found
โ€“ Looking for pthread_create in pthreads
โ€“ Looking for pthread_create in pthreads - not found
โ€“ Looking for pthread_create in pthread
โ€“ Looking for pthread_create in pthread - found
โ€“ Found Threads: TRUE
โ€“ Performing Test _flag_supported
โ€“ Performing Test _flag_supported - Failed
โ€“ BUILD_DRONECORESERVER not set: not building dronecore server
โ€“ Found PythonInterp: /usr/bin/python (found version โ€œ2.7.9โ€)
โ€“ Check if compiler accepts -pthread
โ€“ Check if compiler accepts -pthread - yes
โ€“ Configuring done
โ€“ Generating done
โ€“ Build files have been written to: /home/pi/DroneCore/build/default
Build dir: build/default
Scanning dependencies of target json11
Scanning dependencies of target gtest
Scanning dependencies of target zlibstatic
Scanning dependencies of target zlib
Scanning dependencies of target gmock
[ 1%] Building CXX object plugins/mission/third_party/json11/CMakeFiles/json11.dir/json11.cpp.o
[ 2%] Building C object third_party/zlib/CMakeFiles/zlibstatic.dir/adler32.o
[ 3%] Building C object third_party/zlib/CMakeFiles/zlib.dir/compress.o
[ 4%] Building C object third_party/zlib/CMakeFiles/zlib.dir/adler32.o
[ 4%] Building C object third_party/zlib/CMakeFiles/zlibstatic.dir/compress.o
[ 5%] Building CXX object third_party/gtest/googlemock/gtest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
[ 6%] Building C object third_party/zlib/CMakeFiles/zlibstatic.dir/crc32.o
[ 7%] Building CXX object third_party/gtest/googlemock/CMakeFiles/gmock.dir//googletest/src/gtest-all.cc.o
[ 8%] Building C object third_party/zlib/CMakeFiles/zlibstatic.dir/deflate.o
[ 9%] Building C object third_party/zlib/CMakeFiles/zlib.dir/crc32.o
[ 10%] Building C object third_party/zlib/CMakeFiles/zlibstatic.dir/gzclose.o
[ 11%] Building C object third_party/zlib/CMakeFiles/zlib.dir/gzclose.o
[ 11%] Building C object third_party/zlib/CMakeFiles/zlib.dir/deflate.o
[ 11%] Building CXX object third_party/gtest/googlemock/CMakeFiles/gmock.dir/src/gmock-all.cc.o
[ 12%] Building C object third_party/zlib/CMakeFiles/zlibstatic.dir/gzlib.o
[ 12%] Building C object third_party/zlib/CMakeFiles/zlibstatic.dir/gzread.o
[ 13%] Building C object third_party/zlib/CMakeFiles/zlib.dir/gzlib.o
[ 14%] Building C object third_party/zlib/CMakeFiles/zlib.dir/gzread.o
[ 15%] Building C object third_party/zlib/CMakeFiles/zlibstatic.dir/gzwrite.o
[ 16%] Building C object third_party/zlib/CMakeFiles/zlibstatic.dir/inflate.o
[ 17%] Building C object third_party/zlib/CMakeFiles/zlib.dir/gzwrite.o
[ 18%] Building C object third_party/zlib/CMakeFiles/zlibstatic.dir/infback.o
[ 18%] Building C object third_party/zlib/CMakeFiles/zlib.dir/inflate.o
[ 19%] Building C object third_party/zlib/CMakeFiles/zlibstatic.dir/inftrees.o
[ 19%] Building C object third_party/zlib/CMakeFiles/zlibstatic.dir/inffast.o
[ 20%] Building C object third_party/zlib/CMakeFiles/zlibstatic.dir/trees.o
[ 21%] Building C object third_party/zlib/CMakeFiles/zlibstatic.dir/uncompr.o
[ 22%] Building C object third_party/zlib/CMakeFiles/zlibstatic.dir/zutil.o
[ 23%] Building C object third_party/zlib/CMakeFiles/zlib.dir/infback.o
[ 24%] Building C object third_party/zlib/CMakeFiles/zlib.dir/inftrees.o
[ 25%] Building C object third_party/zlib/CMakeFiles/zlib.dir/inffast.o
[ 26%] Building C object third_party/zlib/CMakeFiles/zlib.dir/trees.o
[ 26%] Building C object third_party/zlib/CMakeFiles/zlib.dir/uncompr.o
[ 27%] Building C object third_party/zlib/CMakeFiles/zlib.dir/zutil.o
[ 28%] Linking C static library libz.a
[ 29%] Linking C shared library libz.so
[ 29%] Built target zlibstatic
Scanning dependencies of target dronecore
[ 29%] Built target zlib
Scanning dependencies of target example
Scanning dependencies of target example64
Scanning dependencies of target minigzip
[ 30%] Building C object third_party/zlib/CMakeFiles/example.dir/test/example.o
[ 31%] Building C object third_party/zlib/CMakeFiles/example64.dir/test/example.o
[ 32%] Building C object third_party/zlib/CMakeFiles/minigzip.dir/test/minigzip.o
[ 32%] Building CXX object core/CMakeFiles/dronecore.dir/call_every_handler.cpp.o
[ 32%] Linking C executable example
[ 34%] Linking C executable example64
[ 34%] Linking C executable minigzip
[ 34%] Built target example64
[ 34%] Built target example
[ 35%] Building CXX object core/CMakeFiles/dronecore.dir/connection.cpp.o
[ 35%] Built target minigzip
Scanning dependencies of target minigzip64
[ 36%] Building CXX object core/CMakeFiles/dronecore.dir/curl_wrapper.cpp.o
[ 37%] Building C object third_party/zlib/CMakeFiles/minigzip64.dir/test/minigzip.o
[ 38%] Linking C executable minigzip64
[ 39%] Linking CXX static library libjson11.a
[ 39%] Built target minigzip64
[ 40%] Building CXX object core/CMakeFiles/dronecore.dir/device.cpp.o
[ 40%] Built target json11
[ 40%] Building CXX object core/CMakeFiles/dronecore.dir/dronecore.cpp.o
[ 41%] Building CXX object core/CMakeFiles/dronecore.dir/dronecore_impl.cpp.o
[ 42%] Building CXX object core/CMakeFiles/dronecore.dir/global_include.cpp.o
[ 43%] Building CXX object core/CMakeFiles/dronecore.dir/http_loader.cpp.o
[ 44%] Building CXX object core/CMakeFiles/dronecore.dir/mavlink_parameters.cpp.o
[ 45%] Building CXX object core/CMakeFiles/dronecore.dir/mavlink_commands.cpp.o
[ 45%] Building CXX object core/CMakeFiles/dronecore.dir/mavlink_channels.cpp.o
[ 46%] Building CXX object core/CMakeFiles/dronecore.dir/mavlink_receiver.cpp.o
[ 47%] Building CXX object core/CMakeFiles/dronecore.dir/plugin_base.cpp.o
[ 48%] Building CXX object core/CMakeFiles/dronecore.dir/plugin_impl_base.cpp.o
[ 48%] Building CXX object core/CMakeFiles/dronecore.dir/serial_connection.cpp.o
[ 49%] Building CXX object core/CMakeFiles/dronecore.dir/tcp_connection.cpp.o
[ 50%] Building CXX object core/CMakeFiles/dronecore.dir/timeout_handler.cpp.o
[ 51%] Building CXX object core/CMakeFiles/dronecore.dir/udp_connection.cpp.o
[ 52%] Linking CXX static library libgtestd.a
[ 53%] Linking CXX static library libgmockd.a
[ 53%] Linking CXX shared library libdronecore.so
[ 53%] Built target gtest
[ 53%] Built target gmock
Scanning dependencies of target gtest_main
[ 54%] Building CXX object third_party/gtest/googlemock/gtest/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o
[ 54%] Built target dronecore
Scanning dependencies of target dronecore_offboard
Scanning dependencies of target dronecore_mission
Scanning dependencies of target dronecore_gimbal
Scanning dependencies of target dronecore_action
Scanning dependencies of target dronecore_logging
Scanning dependencies of target dronecore_telemetry
Scanning dependencies of target dronecore_info
[ 56%] Building CXX object plugins/gimbal/CMakeFiles/dronecore_gimbal.dir/gimbal.cpp.o
[ 56%] Building CXX object plugins/offboard/CMakeFiles/dronecore_offboard.dir/offboard.cpp.o
[ 57%] Building CXX object plugins/action/CMakeFiles/dronecore_action.dir/action.cpp.o
[ 58%] Building CXX object plugins/logging/CMakeFiles/dronecore_logging.dir/logging.cpp.o
[ 58%] Building CXX object plugins/info/CMakeFiles/dronecore_info.dir/info.cpp.o
[ 58%] Building CXX object plugins/telemetry/CMakeFiles/dronecore_telemetry.dir/telemetry.cpp.o
[ 59%] Building CXX object plugins/mission/CMakeFiles/dronecore_mission.dir/mission.cpp.o
[ 60%] Building CXX object plugins/info/CMakeFiles/dronecore_info.dir/info_impl.cpp.o
[ 61%] Linking CXX static library libgtest_maind.a
[ 62%] Building CXX object plugins/gimbal/CMakeFiles/dronecore_gimbal.dir/gimbal_impl.cpp.o
[ 63%] Building CXX object plugins/telemetry/CMakeFiles/dronecore_telemetry.dir/telemetry_impl.cpp.o
[ 63%] Building CXX object plugins/logging/CMakeFiles/dronecore_logging.dir/logging_impl.cpp.o
[ 64%] Building CXX object plugins/mission/CMakeFiles/dronecore_mission.dir/mission_impl.cpp.o
[ 65%] Building CXX object plugins/action/CMakeFiles/dronecore_action.dir/action_impl.cpp.o
[ 67%] Building CXX object plugins/offboard/CMakeFiles/dronecore_offboard.dir/offboard_impl.cpp.o
[ 67%] Built target gtest_main
Scanning dependencies of target dronecore_follow_me
[ 68%] Building CXX object plugins/follow_me/CMakeFiles/dronecore_follow_me.dir/follow_me.cpp.o
[ 69%] Linking CXX shared library libdronecore_info.so
[ 69%] Built target dronecore_info
[ 70%] Building CXX object plugins/telemetry/CMakeFiles/dronecore_telemetry.dir/math_conversions.cpp.o
[ 71%] Linking CXX shared library libdronecore_gimbal.so
[ 71%] Built target dronecore_gimbal
[ 72%] Building CXX object plugins/mission/CMakeFiles/dronecore_mission.dir/mission_item.cpp.o
[ 72%] Building CXX object plugins/follow_me/CMakeFiles/dronecore_follow_me.dir/follow_me_impl.cpp.o
[ 73%] Linking CXX shared library libdronecore_logging.so
[ 73%] Building CXX object plugins/mission/CMakeFiles/dronecore_mission.dir/mission_item_impl.cpp.o
[ 73%] Built target dronecore_logging
[ 74%] Linking CXX shared library libdronecore_offboard.so
[ 74%] Built target dronecore_offboard
[ 75%] Linking CXX shared library libdronecore_telemetry.so
[ 76%] Linking CXX shared library libdronecore_action.so
[ 76%] Built target dronecore_telemetry
[ 76%] Built target dronecore_action
[ 77%] Linking CXX shared library libdronecore_follow_me.so
[ 78%] Linking CXX shared library libdronecore_mission.so
[ 78%] Built target dronecore_follow_me
[ 78%] Built target dronecore_mission
Scanning dependencies of target unit_tests_runner
Scanning dependencies of target integration_tests_runner
[ 79%] Building CXX object CMakeFiles/unit_tests_runner.dir/core/mavlink_channels_test.cpp.o
[ 79%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/
/core/unittests_main.cpp.o
[ 80%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/async_connect.cpp.o
[ 80%] Building CXX object CMakeFiles/unit_tests_runner.dir/core/unittests_main.cpp.o
[ 82%] Building CXX object CMakeFiles/unit_tests_runner.dir/core/global_include_test.cpp.o
[ 82%] Building CXX object CMakeFiles/unit_tests_runner.dir/core/call_every_handler_test.cpp.o
[ 83%] Building CXX object CMakeFiles/unit_tests_runner.dir/core/timeout_handler_test.cpp.o
[ 84%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/simple_connect.cpp.o
[ 86%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/simple_hover.cpp.o
[ 86%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/telemetry_simple.cpp.o
[ 87%] Building CXX object CMakeFiles/unit_tests_runner.dir/core/curl_test.cpp.o
[ 89%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/telemetry_async.cpp.o
[ 89%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/telemetry_modes.cpp.o
[ 90%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/telemetry_health.cpp.o
[ 89%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/async_hover.cpp.o
[ 91%] Building CXX object CMakeFiles/unit_tests_runner.dir/plugins/mission/mission_import_qgc_test.cpp.o
[ 91%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/takeoff_and_kill.cpp.o
[ 92%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/offboard_velocity.cpp.o
[ 93%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/info.cpp.o
[ 94%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/mission.cpp.o
[ 95%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/logging.cpp.o
[ 94%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/mission_change_speed.cpp.o
[ 95%] Linking CXX executable unit_tests_runner
[ 96%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/mission_survey.cpp.o
[ 96%] Built target unit_tests_runner
[ 97%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/gimbal.cpp.o
[ 98%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/transition_multicopter_fixedwing.cpp.o
[ 98%] Building CXX object integration_tests/CMakeFiles/integration_tests_runner.dir/follow_me.cpp.o
[100%] Linking CXX executable integration_tests_runner
[100%] Built target integration_tests_runner
Install the projectโ€ฆ
โ€“ Install configuration: โ€œDebugโ€
โ€“ Installing: /usr/local/lib/libdronecore.so
โ€“ Installing: /usr/local/include/dronecore/dronecore.h
โ€“ Installing: /usr/local/include/dronecore/device.h
โ€“ Installing: /usr/local/include/dronecore/plugin_base.h
โ€“ Installing: /usr/local/include/dronecore/action.h
โ€“ Installing: /usr/local/lib/libdronecore_action.so
โ€“ Set runtime path of โ€œ/usr/local/lib/libdronecore_action.soโ€ to โ€œโ€
โ€“ Installing: /usr/local/include/dronecore/gimbal.h
โ€“ Installing: /usr/local/lib/libdronecore_gimbal.so
โ€“ Set runtime path of โ€œ/usr/local/lib/libdronecore_gimbal.soโ€ to โ€œโ€
โ€“ Installing: /usr/local/include/dronecore/mission.h
โ€“ Installing: /usr/local/include/dronecore/mission_item.h
โ€“ Installing: /usr/local/lib/libdronecore_mission.so
โ€“ Set runtime path of โ€œ/usr/local/lib/libdronecore_mission.soโ€ to โ€œโ€
โ€“ Installing: /usr/local/lib/arm-linux-gnueabihf/libjson11.a
โ€“ Installing: /usr/local/include/arm-linux-gnueabihf/json11.hpp
โ€“ Installing: /usr/local/lib/arm-linux-gnueabihf/pkgconfig/json11.pc
โ€“ Installing: /usr/local/include/dronecore/offboard.h
โ€“ Installing: /usr/local/lib/libdronecore_offboard.so
โ€“ Set runtime path of โ€œ/usr/local/lib/libdronecore_offboard.soโ€ to โ€œโ€
โ€“ Installing: /usr/local/include/dronecore/telemetry.h
โ€“ Installing: /usr/local/lib/libdronecore_telemetry.so
โ€“ Set runtime path of โ€œ/usr/local/lib/libdronecore_telemetry.soโ€ to โ€œโ€
โ€“ Installing: /usr/local/include/dronecore/logging.h
โ€“ Installing: /usr/local/lib/libdronecore_logging.so
โ€“ Set runtime path of โ€œ/usr/local/lib/libdronecore_logging.soโ€ to โ€œโ€
โ€“ Installing: /usr/local/include/dronecore/info.h
โ€“ Installing: /usr/local/lib/libdronecore_info.so
โ€“ Set runtime path of โ€œ/usr/local/lib/libdronecore_info.soโ€ to โ€œโ€
โ€“ Installing: /usr/local/include/dronecore/follow_me.h
โ€“ Installing: /usr/local/lib/libdronecore_follow_me.so
โ€“ Set runtime path of โ€œ/usr/local/lib/libdronecore_follow_me.soโ€ to โ€œโ€
pi@raspberrypi:~/DroneCore $

#6

Thank you for your support, Xiao.
Iโ€™ll try.

#7

Hey. Did that work?
I am having compilation issues. I followed the same steps as described by Xiao.
Right now I get undefined reference to drone code_sdk::DronecodeSDK error.

Can you please help me out.

#8

This is quite an old thread. I would recommend to create a new thread and include your specific error message.

1 Like