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

diagnostic_aggregator: catkin_make -DCATKIN_ENABLE_TESTING=0 fails #27

Closed
bulwahn opened this issue Jul 27, 2014 · 6 comments
Closed

diagnostic_aggregator: catkin_make -DCATKIN_ENABLE_TESTING=0 fails #27

bulwahn opened this issue Jul 27, 2014 · 6 comments

Comments

@bulwahn
Copy link
Contributor

bulwahn commented Jul 27, 2014

When executing catkin_make -DCATKIN_ENABLE_TESTING=0, it fails with:

Linking CXX executable (...)/diagnostics_ws/devel/lib/diagnostic_aggregator/analyzer_loader
/usr/bin/ld: cannot find -lgtest
collect2: error: ld returned 1 exit status
make[2]: *** [(...)/diagnostics_ws/devel/lib/diagnostic_aggregator/analyzer_loader] Error 1

diagnostic_aggregator in version 1.8.4 needs the gtest library, but this is only discovered for linking when testing is enabled in catkin.

@trainman419
Copy link
Contributor

The self_test package already does this. Why is it a problem in diagnostic_aggregator and not in self_test?

@trainman419
Copy link
Contributor

I've fixed this in the https://github.com/ros/diagnostics/tree/include_gtest branch by including the gtest sources in the packages that need them. Can you test that this works on your system before I merge?

@bulwahn
Copy link
Contributor Author

bulwahn commented Jul 28, 2014

I tested it and it solves the problem for my setup. I have never tested the self_test package. Maybe you can try executing 'catkin_make -DCATKIN_ENABLE_TESTING=0' for self_test?

@trainman419
Copy link
Contributor

This is fixed in #28 and released as 1.8.5 into Hydro ( ros/rosdistro#5149 ) and Indigo ( ros/rosdistro#5150 )

@trainman419
Copy link
Contributor

Dirk and Tully seem to think #28 was a bad idea; care to comment?

@trainman419
Copy link
Contributor

Closing due to lack of response from @bulwahn

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

2 participants