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

SHARED linking for Geographiclib #624

Merged
merged 2 commits into from
Mar 22, 2021
Merged

SHARED linking for Geographiclib #624

merged 2 commits into from
Mar 22, 2021

Conversation

AchmadFathoni
Copy link
Contributor

Arch Linux doesn't install static library by default. So I made this PR for AUR package patch. It is OK if this PR is not eventually accepted.

CMakeLists.txt Outdated
@@ -34,7 +34,7 @@ endif()

# Geographiclib installs FindGeographicLib.cmake to this non-standard location
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "/usr/share/cmake/geographiclib/")
find_package(GeographicLib REQUIRED COMPONENTS STATIC)
find_package(GeographicLib REQUIRED COMPONENTS SHARED)
Copy link

Choose a reason for hiding this comment

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

Is there a way to just remove the explicit STATIC/SHARED dependency on the line?
Something like just

Suggested change
find_package(GeographicLib REQUIRED COMPONENTS SHARED)
find_package(GeographicLib REQUIRED)

@@ -34,7 +34,7 @@ endif()

# Geographiclib installs FindGeographicLib.cmake to this non-standard location
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "/usr/share/cmake/geographiclib/")
find_package(GeographicLib REQUIRED COMPONENTS STATIC)
find_package(GeographicLib REQUIRED)
Copy link
Collaborator

Choose a reason for hiding this comment

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

@AGummyBear Was there any reason for the static linkage previously?

Choose a reason for hiding this comment

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

My thinking was just that it would result in not needing to install GeographicLib as a dependency unless building, since I think most users are probably running this package as installed. I'm fine with the change to shared though. There was no technical reason to use static.

@ayrton04 ayrton04 merged commit a5eda33 into cra-ros-pkg:noetic-devel Mar 22, 2021
ayrton04 pushed a commit that referenced this pull request Jun 3, 2021
* remove GeographicLib specific linking option
sundermann pushed a commit to sundermann/robot_localization that referenced this pull request Jan 6, 2022
* remove GeographicLib specific linking option
sundermann pushed a commit to sundermann/robot_localization that referenced this pull request Jan 6, 2022
* remove GeographicLib specific linking option
SteveMacenski pushed a commit that referenced this pull request Jan 7, 2022
* remove GeographicLib specific linking option

Co-authored-by: Achmad Fathoni <fathoni.id@gmail.com>
SteveMacenski pushed a commit that referenced this pull request Jan 7, 2022
* remove GeographicLib specific linking option

Co-authored-by: Achmad Fathoni <fathoni.id@gmail.com>
tonynajjar added a commit to logivations/robot_localization that referenced this pull request Apr 26, 2022
* SHARED linking for Geographiclib (cra-ros-pkg#624) (cra-ros-pkg#713)

* remove GeographicLib specific linking option

Co-authored-by: Achmad Fathoni <fathoni.id@gmail.com>

* Fixing code style divergence for ament_uncrustify (cra-ros-pkg#742)

* Fixed state history reversion (cra-ros-pkg#736)

Co-authored-by: Zygfryd Wieszok <zwieszok@autonomous-systems.pl>

* Read predict_to_current_time from ROS parameters (cra-ros-pkg#737)

Co-authored-by: Zygfryd Wieszok <zwieszok@autonomous-systems.pl>

* Using angles library to normalize angles (cra-ros-pkg#739)

* Using angles library for innovation angle normalization

Co-authored-by: Stephan Sundermann <stephansundermann@gmail.com>
Co-authored-by: Achmad Fathoni <fathoni.id@gmail.com>
Co-authored-by: Anish <anishgdev@gmail.com>
Co-authored-by: Zygfryd Wieszok <zygfryd.wieszok@gmail.com>
Co-authored-by: Zygfryd Wieszok <zwieszok@autonomous-systems.pl>
Co-authored-by: Marek Piechula <marpiechula@gmail.com>
tonynajjar added a commit to logivations/robot_localization that referenced this pull request Apr 26, 2022
* SHARED linking for Geographiclib (cra-ros-pkg#624) (cra-ros-pkg#713)

* remove GeographicLib specific linking option

Co-authored-by: Achmad Fathoni <fathoni.id@gmail.com>

* Fixing code style divergence for ament_uncrustify (cra-ros-pkg#742)

* Fixed state history reversion (cra-ros-pkg#736)

Co-authored-by: Zygfryd Wieszok <zwieszok@autonomous-systems.pl>

* Read predict_to_current_time from ROS parameters (cra-ros-pkg#737)

Co-authored-by: Zygfryd Wieszok <zwieszok@autonomous-systems.pl>

* Using angles library to normalize angles (cra-ros-pkg#739)

* Using angles library for innovation angle normalization

Co-authored-by: Stephan Sundermann <stephansundermann@gmail.com>
Co-authored-by: Achmad Fathoni <fathoni.id@gmail.com>
Co-authored-by: Anish <anishgdev@gmail.com>
Co-authored-by: Zygfryd Wieszok <zygfryd.wieszok@gmail.com>
Co-authored-by: Zygfryd Wieszok <zwieszok@autonomous-systems.pl>
Co-authored-by: Marek Piechula <marpiechula@gmail.com>
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.

None yet

4 participants