Fast-DDS-Gen icon indicating copy to clipboard operation
Fast-DDS-Gen copied to clipboard

undefined reference to `performance_test::msg::FastDDSGen::PointCloud4m::PointCloud4m()

Open alexleel opened this issue 1 year ago • 2 comments

When I compile perf_test from performance_test as following: colcon build --cmake-args -DPERFORMANCE_TEST_FASTRTPS_ENABLED=ON, some errors occured: /usr/bin/ld: CMakeFiles/perf_test.dir/src/communication_abstractions/communicator_factory.cpp.o: in function eprosima::fastdds::dds::LoanableSequence<performance_test::msg::FastDDSGen::Struct4k, std::integral_constant<bool, true> >::resize(int)': communicator_factory.cpp:(.text._ZN8eprosima7fastdds3dds16LoanableSequenceIN16performance_test3msg10FastDDSGen8Struct4kESt17integral_constantIbLb1EEE6resizeEi[_ZN8eprosima7fastdds3dds16LoanableSequenceIN16performance_test3msg10FastDDSGen8Struct4kESt17integral_constantIbLb1EEE6resizeEi]+0xa5): undefined reference to performance_test::msg::FastDDSGen::Struct4k::Struct4k()' ...... which library should I take care of? I add libfast_rtps_idl.so to CMakeLists.txt but not work.

alexleel avatar Nov 23 '23 06:11 alexleel

Hi @alexleel ,

I'm afraid I'm going to need a bit more information:

  1. Which versions of each of the products are you using?
  2. What are the steps you're following to build?

EduPonz avatar Nov 24 '23 06:11 EduPonz

Hi @EduPonz I am very appreciate that you can help to take a look. Following is some information of my build:

Ros2 version : humble performance_test : master fastddsgen:all/jammy 2.1.0+dfsg-2 uptodate

build step: git clone https://github.com/eProsima/performance_test.git cd performance_test colcon build --cmake-args -DPERFORMANCE_TEST_FASTRTPS_ENABLED=ON

I have no idea what's happening. if I use '-DPERFORMANCE_TEST_CYCLONEDDS_ENABLED=ON' I can build successfully.

alexleel avatar Nov 24 '23 10:11 alexleel