Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Colcon build failure following Building from Source steps #15

Open
TomyTomm opened this issue Mar 19, 2020 · 0 comments
Open

Colcon build failure following Building from Source steps #15

TomyTomm opened this issue Mar 19, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@TomyTomm
Copy link

root@docker-desktop:~/ros-workspace# colcon build
Starting >>> aws_common
Starting >>> kinesis_video_msgs
Finished <<< aws_common [0.76s]                                                                         
Starting >>> aws_ros2_common
Starting >>> h264_encoder_core
Starting >>> kinesis_manager
Finished <<< kinesis_video_msgs [0.94s]                                                                                                               
Finished <<< h264_encoder_core [0.42s]                                                                                                        
--- stderr: aws_ros2_common                                                                            
CMakeFiles/test_configuration_provider.dir/test/client_configuration_provider_test.cpp.o: In function `DefaultClientConfigurationProvider_getClientConfiguration_Test::TestBody()':
client_configuration_provider_test.cpp:(.text+0xd90): undefined reference to `Aws::Client::ClientConfigurationProvider::GetClientConfiguration(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
CMakeFiles/test_configuration_provider.dir/test/client_configuration_provider_test.cpp.o: In function `DefaultClientConfigurationProvider_userAgentTest_Test::TestBody()':
client_configuration_provider_test.cpp:(.text+0x12d6): undefined reference to `Aws::Client::ClientConfigurationProvider::GetClientConfiguration(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
client_configuration_provider_test.cpp:(.text+0x14b5): undefined reference to `Aws::Client::ClientConfigurationProvider::GetClientConfiguration(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
collect2: error: ld returned 1 exit status
make[2]: *** [test_configuration_provider] Error 1
make[1]: *** [CMakeFiles/test_configuration_provider.dir/all] Error 2
make: *** [all] Error 2
---
Failed   <<< aws_ros2_common	[ Exited with code 2 ]
Aborted  <<< kinesis_manager                                       

Summary: 3 packages finished [2.44s]
  1 package failed: aws_ros2_common
  1 package aborted: kinesis_manager
  2 packages had stderr output: aws_ros2_common kinesis_manager
  2 packages not processed

After changing the .rosinstall file's versions from "master" to "release-latest", I get this error message:

root@docker-desktop:~/ros-workspace# colcon build
Starting >>> aws_common
Starting >>> kinesis_video_msgs
Finished <<< aws_common [0.74s]                                                                          
Starting >>> aws_ros2_common
Starting >>> h264_encoder_core
Starting >>> kinesis_manager
Finished <<< kinesis_video_msgs [0.95s]                                                                                                                                          
Finished <<< h264_encoder_core [0.47s]                                                                                                            
Finished <<< aws_ros2_common [0.48s]
Starting >>> h264_video_encoder
Finished <<< h264_video_encoder [0.39s]                                                                      
--- stderr: kinesis_manager                             
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find Log4cplus (missing: LOG4CPLUS_LIBRARIES
  LOG4CPLUS_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  cmake/Modules/FindLog4cplus.cmake:100 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:136 (find_package)


make[2]: *** [kvssdk/KVS_SDK_IMPORT-prefix/src/KVS_SDK_IMPORT-stamp/KVS_SDK_IMPORT-build] Error 1
make[1]: *** [kvssdk/CMakeFiles/KVS_SDK_IMPORT.dir/all] Error 2
make: *** [all] Error 2
---
Failed   <<< kinesis_manager	[ Exited with code 2 ]

Summary: 5 packages finished [2.72s]
  1 package failed: kinesis_manager
  1 package had stderr output: kinesis_manager
  1 package not processed

This seems to be an issue with the kinesis_video_common package when importing the amazon-kinesis-video-streams-producer-sdk-cpp package.

Note: skipping this step that downloads the other RoboMaker packages

  • Fetch unreleased dependencies from github
  cd ~/ros-workspace 
  cp src/kinesisvideo-encoder-ros2/.rosinstall.master .rosinstall
  rosws update

results in a clean build.

@jaisontj jaisontj added the bug Something isn't working label Oct 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants