Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alexleel opened this issue Nov 23, 2023 · 2 comments
Labels
need more info More information is required to reproduce

Comments

@alexleel
Copy link

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.

@EduPonz
Copy link

EduPonz commented Nov 24, 2023

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 EduPonz added the need more info More information is required to reproduce label Nov 24, 2023
@alexleel
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need more info More information is required to reproduce
Projects
None yet
Development

No branches or pull requests

2 participants