-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[vcpkg baseline][many ports] Fix build failures #22180
Merged
BillyONeal
merged 7 commits into
microsoft:master
from
JackBoosY:dev/jack/fix-baseline-20211223
Dec 28, 2021
+248
−60
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
55eb927
[vcpkg baseline][omplapp] Fix dependencies, add features
561d452
version
4742ada
[sdformat9] Add the required dependency urdfdom-headers
0235f43
[ignition-math6] Fix build error
2b5e888
version
86265a6
[botan] Fix the pkgconfig again
ce4a76c
version
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/include/ignition/math/Color.hh b/include/ignition/math/Color.hh | ||
index faf7a08..16758c5 100644 | ||
--- a/include/ignition/math/Color.hh | ||
+++ b/include/ignition/math/Color.hh | ||
@@ -18,6 +18,7 @@ | ||
#define IGNITION_MATH_COLOR_HH_ | ||
|
||
#include <iostream> | ||
+#include <cctype> | ||
|
||
#include <ignition/math/Helpers.hh> | ||
#include <ignition/math/Vector3.hh> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,128 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 4c7e6901..a433b7da 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -136,7 +136,7 @@ find_package(Drawstuff QUIET) | ||
set_package_properties(assimp PROPERTIES | ||
URL "http://assimp.org" | ||
PURPOSE "Used in ompl_app for reading meshes representing robots and environments.") | ||
-find_package(assimp REQUIRED) | ||
+find_package(assimp CONFIG REQUIRED) | ||
set_package_properties(ccd PROPERTIES | ||
URL "https://github.com/danfis/libccd" | ||
PURPOSE "Collision detection library used by fcl.") | ||
@@ -178,8 +178,7 @@ include_directories( | ||
"${OMPLAPP_INCLUDE_DIRS}" | ||
"${OMPL_INCLUDE_DIRS}" | ||
"${EIGEN3_INCLUDE_DIR}" | ||
- "${FCL_INCLUDE_DIRS}" | ||
- "${ASSIMP_INCLUDE_DIRS}") | ||
+ "${FCL_INCLUDE_DIRS}") | ||
|
||
# ROS installs fcl in /usr. In /usr/include/fcl/config.h it says octomap was | ||
# enabled. Octomap is installed in /opt/ros/${ROS_DISTRO}/include (most | ||
@@ -195,7 +194,7 @@ set(OMPLAPP_MODULE_LIBRARIES | ||
${FCL_LIBRARIES}) | ||
set(OMPLAPP_LIBRARIES | ||
${OPENGL_LIBRARIES} | ||
- ${ASSIMP_LIBRARIES} | ||
+ assimp::assimp | ||
${FCL_LIBRARIES}) | ||
link_directories(${ASSIMP_LIBRARY_DIRS} ${CCD_LIBRARY_DIRS} ${OCTOMAP_LIBRARY_DIRS} ${FCL_LIBRARY_DIRS}) | ||
|
||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 4c7e690..4b391b5 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -73,12 +73,15 @@ set_package_properties(OpenGL PROPERTIES | ||
URL "http://opengl.org" | ||
PURPOSE "Used to render graphics in ompl_app.") | ||
set(OpenGL_GL_PREFERENCE GLVND) | ||
-find_package(OpenGL) | ||
+if (OMPLAPP_WITH_OPENGL) | ||
+find_package(OpenGL REQUIRED) | ||
+endif() | ||
set_package_properties(Python PROPERTIES | ||
URL "http://python.org" | ||
PURPOSE "Used for python bindings.") | ||
# This includes our own FindPython.cmake in ompl/CMakeModules. It defines, | ||
# among other things, the find_python_module() function used below. | ||
+if (OMPLAPP_WITH_PYTHON) | ||
find_package(Python) | ||
find_boost_python() | ||
|
||
@@ -105,55 +108,76 @@ find_python_module(OpenGL) | ||
if (NOT OPENGL_FOUND OR NOT PY_OPENGL) | ||
message(WARNING "Both OpenGL and the Python OpenGL module need to be installed to use the GUI") | ||
endif() | ||
+endif() | ||
set_package_properties(Eigen3 PROPERTIES | ||
URL "http://eigen.tuxfamily.org" | ||
PURPOSE "A linear algebra library used throughout OMPL.") | ||
-find_package(Eigen3 REQUIRED) | ||
+find_package(Eigen3 CONFIG REQUIRED) | ||
set_package_properties(Triangle PROPERTIES | ||
URL "http://www.cs.cmu.edu/~quake/triangle.html" | ||
PURPOSE "Used to create triangular decompositions of polygonal 2D environments.") | ||
+if (OMPLAPP_WITH_TRIANGLE) | ||
find_package(Triangle QUIET) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It isn't worth respinning this but in the future it would be better to REQUIRED this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ditto the other find_package calls. |
||
+endif() | ||
set_package_properties(flann PROPERTIES | ||
URL "https://github.com/mariusmuja/flann" | ||
PURPOSE "If detetected, FLANN can be used for nearest neighbor queries by OMPL.") | ||
+if (OMPLAPP_WITH_FLANN) | ||
find_package(flann 1.8.3 QUIET) | ||
+endif() | ||
set_package_properties(spot PROPERTIES | ||
URL "http://spot.lrde.epita.fr" | ||
PURPOSE "Used for constructing finite automata from LTL formulae.") | ||
+if (OMPLAPP_WITH_SPOT) | ||
find_package(spot) | ||
+endif() | ||
set_package_properties(MORSE PROPERTIES | ||
URL "https://www.openrobots.org/wiki/morse" | ||
PURPOSE "OMPL includes a plugin for the MORSE Robot Simulation engine.") | ||
+if (OMPLAPP_WITH_MORSE) | ||
find_package(MORSE QUIET) | ||
+endif() | ||
set_package_properties(ODE PROPERTIES | ||
URL "http://ode.org" | ||
PURPOSE "The Open Dynamics Engine can be used as a \"black box\" for kinodynamic planning.") | ||
-find_package(ODE QUIET) | ||
+if (OMPLAPP_WITH_ODE) | ||
+find_package(ODE CONFIG REQUIRED) | ||
+set(ODE_LIBRARIES ODE::ODE) | ||
+endif() | ||
set_package_properties(Drawstuff PROPERTIES | ||
URL "http://ode.org" | ||
PURPOSE "Part of the ODE source distribution, used in one demo program.") | ||
+if (OMPLAPP_WITH_DRAWSTUFF) | ||
find_package(Drawstuff QUIET) | ||
+endif() | ||
set_package_properties(assimp PROPERTIES | ||
URL "http://assimp.org" | ||
PURPOSE "Used in ompl_app for reading meshes representing robots and environments.") | ||
-find_package(assimp REQUIRED) | ||
+find_package(assimp CONFIG REQUIRED) | ||
+set(ASSIMP_LIBRARIES assimp::assimp) | ||
set_package_properties(ccd PROPERTIES | ||
URL "https://github.com/danfis/libccd" | ||
PURPOSE "Collision detection library used by fcl.") | ||
-find_package(ccd REQUIRED) | ||
+find_package(ccd CONFIG REQUIRED) | ||
set_package_properties(fcl PROPERTIES | ||
URL "https://github.com/flexible-collision-library/fcl" | ||
PURPOSE "The default collision checking library.") | ||
+if (OMPLAPP_WITH_OCTOMAP) | ||
find_package(octomap QUIET) | ||
+endif() | ||
find_package(fcl REQUIRED) | ||
set_package_properties(Threads PROPERTIES | ||
URL "https://en.wikipedia.org/wiki/POSIX_Threads" | ||
PURPOSE "Pthreads is sometimes needed, depending on OS / compiler.") | ||
+if (OMPLAPP_WITH_THREADS) | ||
find_package(Threads QUIET) | ||
+endif() | ||
set_package_properties(Doxygen PROPERTIES | ||
URL "http://doxygen.org" | ||
PURPOSE "Used to create the OMPL documentation (i.e., http://ompl.kavrakilab.org).") | ||
+if (OMPLAPP_WITH_DOXYGEN) | ||
find_package(Doxygen) | ||
+endif() | ||
|
||
enable_testing() | ||
|
||
@@ -177,9 +201,7 @@ include_directories(SYSTEM "${Boost_INCLUDE_DIR}") | ||
include_directories( | ||
"${OMPLAPP_INCLUDE_DIRS}" | ||
"${OMPL_INCLUDE_DIRS}" | ||
- "${EIGEN3_INCLUDE_DIR}" | ||
- "${FCL_INCLUDE_DIRS}" | ||
- "${ASSIMP_INCLUDE_DIRS}") | ||
+ "${FCL_INCLUDE_DIRS}") | ||
|
||
# ROS installs fcl in /usr. In /usr/include/fcl/config.h it says octomap was | ||
# enabled. Octomap is installed in /opt/ros/${ROS_DISTRO}/include (most | ||
@@ -242,12 +264,14 @@ endif() | ||
set_package_properties(PQP PROPERTIES | ||
URL "http://gamma.cs.unc.edu/SSV/" | ||
PURPOSE "Used as an alternative, additional collision checking library (the default is FCL).") | ||
+IF (OMPLAPP_WITH_PQP) | ||
find_package(PQP QUIET) | ||
if(PQP_FOUND) | ||
include_directories("${PQP_INCLUDE_DIR}") | ||
set(OMPLAPP_MODULE_LIBRARIES ${OMPLAPP_MODULE_LIBRARIES} ${PQP_LIBRARY}) | ||
set(OMPLAPP_LIBRARIES ${OMPLAPP_LIBRARIES} ${PQP_LIBRARY}) | ||
endif() | ||
+endif() | ||
|
||
add_subdirectory(ompl/doc) | ||
add_subdirectory(ompl/src) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
{ | ||
"name": "sdformat9", | ||
"version-string": "9.4.0", | ||
"port-version": 1, | ||
"port-version": 2, | ||
"description": "Simulation Description Format (SDF) parser and description files.", | ||
"homepage": "http://sdformat.org/", | ||
"supports": "!(linux | uwp)", | ||
"dependencies": [ | ||
"ignition-math6", | ||
"tinyxml", | ||
"urdfdom" | ||
"urdfdom", | ||
"urdfdom-headers", | ||
{ | ||
"name": "vcpkg-cmake", | ||
"host": true | ||
}, | ||
{ | ||
"name": "vcpkg-cmake-config", | ||
"host": true | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked whether this made sense to do as a targeted fix like this or to do it more generally, and observe that Botan has a bespoke Python script for this so I agree with this approach.