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

gmock/gtest cannot be found #1

Closed
acxz opened this issue Jul 9, 2020 · 7 comments
Closed

gmock/gtest cannot be found #1

acxz opened this issue Jul 9, 2020 · 7 comments
Labels

Comments

@acxz
Copy link
Member

acxz commented Jul 9, 2020

See upstream issue: ros/catkin#1030

@acxz acxz added the patched label Jul 9, 2020
@hadogenes
Copy link

after last update I have error while building ros-noetic-realtime-tools:

-- BUILD_SHARED_LIBS is on
-- Found Threads: TRUE  
CMake Warning at /opt/ros/noetic/share/catkin/cmake/test/gtest.cmake:160 (message):
  skipping gmock 'realtime_box_tests' in project 'realtime_tools' because
  gmock was not found
Call Stack (most recent call first):
  /opt/ros/noetic/share/catkin/cmake/test/gtest.cmake:89 (_catkin_add_executable_with_google_test)
  /opt/ros/noetic/share/catkin/cmake/test/gtest.cmake:63 (_catkin_add_google_test)
  CMakeLists.txt:23 (catkin_add_gmock)


CMake Error at CMakeLists.txt:24 (target_link_libraries):
  Cannot specify link libraries for target "realtime_box_tests" which is not
  built by this project.

@acxz
Copy link
Member Author

acxz commented Jul 14, 2020

Just to make sure can you run 'yay -Syu ros-noetic-realtime-tools --rebuildtree'?

@hadogenes
Copy link

I always build from scratch - I use jenkins and have minimal docker image.
One thing I'm building for manjaro, so some packages can be outdated to arch.

@acxz
Copy link
Member Author

acxz commented Jul 14, 2020

ah thats probably why then can you check what version of the gtest package you are on?

Edit just checked, Manjaro is using an older gtest version: 1.8.1, while Arch is on gtest 1.10.0

I recommend using an Arch repo compatible distro, such as EndeavourOS which we do support instead of an Arch based one like Manjaro.
If the reason you choose Manjaro over Arch because of the GUI installer, dont worry EndeavourOS also has a GUI installer.

@acxz acxz closed this as completed Jul 15, 2020
@acxz acxz reopened this Jul 15, 2020
@acxz
Copy link
Member Author

acxz commented Jul 15, 2020

The patch has been released in the latest version 0.8.7. Closing this issue.

@acxz acxz closed this as completed Jul 15, 2020
@hadogenes
Copy link

I confirm it was due to gtest version. After updating to v1.10, it builds correctly.
PS I've used gentoo before, so the lack of an installer doesn't scare me. I want a bit more stability than arch.

@acxz
Copy link
Member Author

acxz commented Jul 21, 2020

Glad to hear it works!

Well as you just experienced you won't find stability with the AUR ROS packages and Manjaro repos.

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

No branches or pull requests

2 participants