gokulp01/ros2-ublox-zedf9p

Colcon build failed

Chiwingum11 opened this issue · 1 comments

~/ublox_ws$ colcon build
Starting >>> ublox_serialization
Finished <<< ublox_serialization [0.88s]
Starting >>> ublox_msgs
[Processing: ublox_msgs]
[Processing: ublox_msgs]
[Processing: ublox_msgs]
[Processing: ublox_msgs]
Finished <<< ublox_msgs [2min 3s]
Starting >>> ublox_gps
--- stderr: ublox_gps
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find asio (missing: ASIO_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
cmake/Findasio.cmake:4 (find_package_handle_standard_args)
CMakeLists.txt:16 (find_package)


Failed <<< ublox_gps [0.75s, exited with code 1]

Summary: 2 packages finished [2min 4s]
1 package failed: ublox_gps
1 package had stderr output: ublox_gps
1 package not processed

Is there anything missing? I followed the instructions and this happened. Can someone help me out?

@Chiwingum11 This looks to be because your system does not have asio package installed. To install it try,

sudo apt-get install libasio-dev

Source and build again. It should work fine.