Skip to content

docs(macos): add googletest to brew install - #7518

Open
erickisos wants to merge 1 commit into
ros2:rollingfrom
erickisos:patch-2
Open

erickisos wants to merge 1 commit into
ros2:rollingfrom
erickisos:patch-2

Conversation

@erickisos

Copy link
Copy Markdown
Contributor

Description

While trying to build ros2 on my mac I found that we also need googletest to be installed, otherwise ament_cmake_pytest package will fail with the following error:

Starting >>> ament_cmake_pytest
--- stderr: ament_cmake_gen_version_h
CMake Error at /opt/homebrew/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:290 (message):
  Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR
  GTEST_MAIN_LIBRARY)
Call Stack (most recent call first):
  /opt/homebrew/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:654 (_FPHSA_FAILURE_MESSAGE)
  /opt/homebrew/share/cmake/Modules/FindGTest.cmake:421 (find_package_handle_standard_args)
  ~/ros2_lyrical/install/ament_cmake_gtest/share/ament_cmake_gtest/cmake/ament_cmake_gtest-extras.cmake:23 (find_package)
  ~/ros2_lyrical/install/ament_cmake_gtest/share/ament_cmake_gtest/cmake/ament_add_gtest_executable.cmake:35 (_ament_cmake_gtest_find_gtest)
  ~/ros2_lyrical/install/ament_cmake_gtest/share/ament_cmake_gtest/cmake/ament_add_gtest.cmake:68 (ament_add_gtest_executable)
  CMakeLists.txt:26 (ament_add_gtest)


---
Failed   <<< ament_cmake_gen_version_h [3.15s, exited with code 1]
Aborted  <<< ament_cmake_pytest [0.04s]

@erickisos erickisos changed the title chore(macos): add googletest to brew install docs(macos): add googletest to brew install Nov 26, 2026
fujitatomoya
fujitatomoya previously approved these changes Nov 26, 2026

@fujitatomoya fujitatomoya left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think the fix looks good to me, can you target rollling branch instead? that is the development branch, and then we can backport to the downstream.

@erickisos
erickisos changed the base branch from lyrical to rolling November 26, 2026 15:03
@erickisos
erickisos dismissed fujitatomoya’s stale review November 26, 2026 15:03

The base branch was changed.

Signed-off-by: Erick G. Islas-Osuna <erickisos653@gmail.com>

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

2 participants