Skip to content

Fix compilation for Ubuntu 22.04 (Humble)#198

Draft
Rayman wants to merge 1 commit into
fixposition:mainfrom
nobleo:fix/compilation-with-gtest
Draft

Fix compilation for Ubuntu 22.04 (Humble)#198
Rayman wants to merge 1 commit into
fixposition:mainfrom
nobleo:fix/compilation-with-gtest

Conversation

@Rayman

@Rayman Rayman commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

On humble we have libgtest-dev at version 1.11.0-3 but this package restricts gtest to 1.12 or higher. If you remove this version restriction, this package can also be used on Humble.

On humble we have libgtest-dev at version 1.11.0-3 but this package
restricts gtest to 1.12 or higher. If you remove this version
restriction, this package can also be used on Humble.
@flipflip8952 flipflip8952 marked this pull request as draft July 8, 2026 05:46
@flipflip8952

Copy link
Copy Markdown
Contributor

This is fixposition-sdk dependency, which is why we install gtest 1.13 "manually": https://github.com/fixposition/fixposition-sdk/blob/main/docker/scripts/install_gtest.sh for those systems (Docker images) that come with an earlier one, such as Ubuntu 22 (https://github.com/fixposition/fixposition-sdk/blob/main/docker/Dockerfile.humble-base#L34).

You can skip the testing by using the FPSDK_BUILD_TESTING=OFF CMake option.

Does that work for you?

@Rayman

Rayman commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

Yes I see that a higher version is installed. But this is not needed. All tests run fine with gtest 1.11

docker run -it --volume .:/ws ros:humble
rosdep install --from-path . -i -y
colcon build --cmake-args -DBUILD_TESTING=ON
colcon test --event-handlers console_direct+
100% tests passed, 0 tests failed out of 197
apt list --installed | grep gtest
libgtest-dev/jammy,now 1.11.0-3 amd64 [installed,automatic]

@flipflip8952

flipflip8952 commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

I believe there are other (non-public) branches/versions of fixposition-sdk that do need a more recent gtest. That's why it explicitly asks for at least this version. I'll investigate this a bit more at some time, perhaps we can set it to >= 1.11

For the time being please either upgrade your gtest or build with FPSDK_BUILD_TESTING=OFF or build using your branch.

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