eProsima / Fast-DDS-Gen

Fast-DDS IDL code generator tool. Looking for commercial support? Contact info@eprosima.com
Apache License 2.0
77 stars 59 forks source link

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

Open alexleel opened 7 months ago

alexleel commented 7 months ago

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 toperformance_test::msg::FastDDSGen::Struct4k::Struct4k()' ...... which library should I take care of? I add libfast_rtps_idl.so to CMakeLists.txt but not work.

EduPonz commented 7 months ago

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?
alexleel commented 7 months ago

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.