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

build error #75

Closed
lejk8104 opened this issue Jun 3, 2021 · 7 comments
Closed

build error #75

lejk8104 opened this issue Jun 3, 2021 · 7 comments

Comments

@lejk8104
Copy link

lejk8104 commented Jun 3, 2021

some error when I build

Errors << depth_clustering:make /home/dgist/workspace/git-folder/clustering_ws/logs/depth_clustering/build.make.002.log
CMakeFiles/depth_clustering_test.dir/test_pose.cpp.o: In function PoseDeathTest_TestLikelihood_Test::TestBody()': test_pose.cpp:(.text+0x585d): undefined reference to testing::internal::DeathTest::Create(char const*, testing::Matcher<std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&>, char const*, int, testing::internal::DeathTest**)'
test_pose.cpp:(.text+0x5928): undefined reference to `testing::internal::DeathTest::Create(char const*, testing::Matcher<std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&>, char const*, int, testing::internal::DeathTest**)'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/dgist/workspace/git-folder/clustering_ws/devel/.private/depth_clustering/lib/depth_clustering/depth_clustering_test] Error 1
make[1]: *** [test/CMakeFiles/depth_clustering_test.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 2
cd /home/dgist/workspace/git-folder/clustering_ws/build/depth_clustering; catkin build --get-env depth_clustering | catkin env -si /usr/bin/make --jobserver-fds=6,7 -j; cd -
...............................................................................
Failed << depth_clustering:make [ Exited with code 2 ]
Failed <<< depth_clustering

what is happen?

my PC setting is

  1. Ubuntu 18.04
  2. ROS melodic
  3. install PCL

my command is
$ pip install catkin-tools
$ catkin build depth_clustering

@tuxiangxianzhe
Copy link

I have the same question, have you solved it?

@tuxiangxianzhe
Copy link

I change the version of googletest to 1.7.0, and solved this problem.
I wish it helps you.

@niosus
Copy link
Member

niosus commented Nov 11, 2021

@tuxiangxianzhe just for me to understand a bit better. Are you saying that you have changed the GoogleTest library version installed on your system? Which one is installed by default?

@tuxiangxianzhe
Copy link

Since ubuntu 18.04 does not come with googletest, I previously install the version 1.11.0 from GitHub (https://github.com/google/googletest/releases), which is the latest version.

@niosus
Copy link
Member

niosus commented Nov 11, 2021

Understood. I'll add that to the readme.

@niosus
Copy link
Member

niosus commented Nov 11, 2021

I added the notice to the readme and am closing this issue.

@niosus niosus closed this as completed Nov 11, 2021
@tuxiangxianzhe
Copy link

tuxiangxianzhe commented Nov 11, 2021

Un, maybe my expression is not clear.
What I mean is that the latest version of Googletest will cause errors, and you need to install version 1.7.0 to work smoothly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants