-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from RoboStack/featureparitywin
Enable more packages on Windows
- Loading branch information
Showing
62 changed files
with
1,688 additions
and
151 deletions.
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
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,11 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index f909972..5b6b6e8 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -19,3 +19,6 @@ find_package(ament_cmake REQUIRED) | ||
+if(WIN32) | ||
+ target_compile_definitions(angles INTERFACE _USE_MATH_DEFINES) | ||
+endif() | ||
|
||
if(BUILD_TESTING) | ||
find_package(ament_cmake_gtest REQUIRED) |
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,24 @@ | ||
diff --git a/cmake/ament_build.cmake b/cmake/ament_build.cmake | ||
index 55c3011b2..152268032 100644 | ||
--- a/cmake/ament_build.cmake | ||
+++ b/cmake/ament_build.cmake | ||
@@ -10,7 +10,10 @@ if(BTCPP_SQLITE_LOGGING) | ||
find_package(SQLite3 REQUIRED) | ||
endif() | ||
|
||
-find_package(ament_index_cpp REQUIRED) | ||
+find_package(ament_index_cpp REQUIRED) | ||
+ | ||
+set(BTCPP_EXTRA_INCLUDE_DIRS ${ZeroMQ_INCLUDE_DIRS} | ||
+ ${SQLite3_INCLUDE_DIRS}) | ||
|
||
set( BTCPP_EXTRA_LIBRARIES | ||
$<BUILD_INTERFACE:ament_index_cpp::ament_index_cpp> | ||
@@ -26,6 +29,7 @@ set( BTCPP_BIN_DESTINATION bin ) | ||
|
||
mark_as_advanced( | ||
BTCPP_EXTRA_LIBRARIES | ||
+ BTCPP_EXTRA_INCLUDE_DIRS | ||
BTCPP_LIB_DESTINATION | ||
BTCPP_INCLUDE_DESTINATION | ||
BTCPP_BIN_DESTINATION ) |
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,32 @@ | ||
From 791d063ea62837e86831b7b4dda48b22e680d8cc Mon Sep 17 00:00:00 2001 | ||
From: Christoph Froehlich <[email protected]> | ||
Date: Mon, 25 Nov 2024 20:11:09 +0000 | ||
Subject: [PATCH] Export symbols on windows | ||
|
||
--- | ||
CMakeLists.txt | 9 +++++++-- | ||
1 file changed, 7 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index cc1f551..30f4bad 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -7,11 +7,16 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)") | ||
endif() | ||
|
||
if(WIN32) | ||
- # Enable Math Constants | ||
- # https://docs.microsoft.com/en-us/cpp/c-runtime-library/math-constants?view=vs-2019 | ||
add_compile_definitions( | ||
+ # For math constants | ||
+ # https://docs.microsoft.com/en-us/cpp/c-runtime-library/math-constants?view=vs-2019 | ||
_USE_MATH_DEFINES | ||
+ # Minimize Windows namespace collision | ||
+ NOMINMAX | ||
+ WIN32_LEAN_AND_MEAN | ||
) | ||
+ # set the same behavior for windows as it is on linux | ||
+ set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) | ||
endif() | ||
|
||
set(THIS_PACKAGE_INCLUDE_DEPENDS |
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,9 @@ | ||
diff --git a/diagnostic_aggregator/CMakeLists.txt b/diagnostic_aggregator/CMakeLists.txt | ||
index 6014edf3..bbcee116 100644 | ||
--- a/diagnostic_aggregator/CMakeLists.txt | ||
+++ b/diagnostic_aggregator/CMakeLists.txt | ||
@@ -6,3 +6,4 @@ endif() | ||
+set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) | ||
|
||
find_package(ament_cmake REQUIRED) | ||
find_package(diagnostic_msgs REQUIRED) |
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,9 @@ | ||
diff --git a/diagnostic_updater/CMakeLists.txt b/diagnostic_updater/CMakeLists.txt | ||
index eafa9891..9199df0d 100644 | ||
--- a/diagnostic_updater/CMakeLists.txt | ||
+++ b/diagnostic_updater/CMakeLists.txt | ||
@@ -6,3 +6,4 @@ endif() | ||
+set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) | ||
|
||
find_package(ament_cmake REQUIRED) | ||
find_package(ament_cmake_ros REQUIRED) |
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,9 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 32b9f9f..587d5ca 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -12,3 +12,4 @@ endif() | ||
+set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) | ||
|
||
############################################################################## | ||
# Find dependencies |
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,22 @@ | ||
diff --git a/forward_command_controller/CMakeLists.txt b/forward_command_controller/CMakeLists.txt | ||
index bf027866d6..f7610c5f85 100644 | ||
--- a/forward_command_controller/CMakeLists.txt | ||
+++ b/forward_command_controller/CMakeLists.txt | ||
@@ -1,5 +1,5 @@ | ||
cmake_minimum_required(VERSION 3.16) | ||
-project(forward_command_controller LANGUAGES CXX) | ||
+project(forward_command_controller) | ||
|
||
if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)") | ||
add_compile_options(-Wall -Wextra -Wpedantic -Werror=conversion -Werror=unused-but-set-variable | ||
@@ -7,6 +7,10 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)") | ||
-Werror=missing-braces) | ||
endif() | ||
|
||
+# using this instead of visibility macros | ||
+# S1 from https://github.com/ros-controls/ros2_controllers/issues/1053 | ||
+set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) | ||
+ | ||
set(THIS_PACKAGE_INCLUDE_DEPENDS | ||
controller_interface | ||
generate_parameter_library |
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,16 @@ | ||
diff --git a/gripper_controllers/CMakeLists.txt b/gripper_controllers/CMakeLists.txt | ||
index 4ffdc76168..05174402d0 100644 | ||
--- a/gripper_controllers/CMakeLists.txt | ||
+++ b/gripper_controllers/CMakeLists.txt | ||
@@ -1,11 +1,6 @@ | ||
cmake_minimum_required(VERSION 3.16) | ||
project(gripper_controllers) | ||
|
||
-if(APPLE OR WIN32) | ||
- message(WARNING "gripper controllers are not available on OSX or Windows") | ||
- return() | ||
-endif() | ||
- | ||
if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)") | ||
add_compile_options(-Wall -Wextra -Wpedantic -Werror=conversion -Werror=unused-but-set-variable | ||
-Werror=return-type -Werror=shadow -Werror=format -Werror=range-loop-construct |
File renamed without changes.
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,8 @@ | ||
diff --git a/hardware_interface/CMakeLists.txt b/hardware_interface/CMakeLists.txt | ||
index b4e0f6cab0..50120726bb 100644 | ||
--- a/hardware_interface/CMakeLists.txt | ||
+++ b/hardware_interface/CMakeLists.txt | ||
@@ -57,3 +57,4 @@ target_include_directories(mock_components PUBLIC | ||
+target_link_libraries(mock_components PUBLIC hardware_interface) | ||
ament_target_dependencies(mock_components PUBLIC ${THIS_PACKAGE_INCLUDE_DEPENDS}) | ||
|
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,13 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 4570eb7..54bfe64 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -6,6 +6,8 @@ if(NOT CMAKE_CXX_STANDARD) | ||
set(CMAKE_CXX_STANDARD 14) | ||
endif() | ||
|
||
+set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) | ||
+ | ||
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
add_compile_options(-Wall -Wextra -Wpedantic) | ||
endif() |
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,25 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index cb41c81..88460ba 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -1,6 +1,8 @@ | ||
cmake_minimum_required(VERSION 3.5) | ||
project(image_publisher) | ||
|
||
+set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) | ||
+ | ||
# Default to C++14 | ||
if(NOT CMAKE_CXX_STANDARD) | ||
set(CMAKE_CXX_STANDARD 14) | ||
|
||
diff --git a/src/image_publisher.cpp b/src/image_publisher.cpp | ||
index 667e7209c..2f75459c1 100644 | ||
--- a/src/image_publisher.cpp | ||
+++ b/src/image_publisher.cpp | ||
@@ -34,3 +34,6 @@ | ||
+#ifndef _USE_MATH_DEFINES | ||
+#define _USE_MATH_DEFINES | ||
+#endif | ||
#include <cmath> | ||
#include <chrono> | ||
#include <limits> |
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,13 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 49c3b94..8445833 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -6,6 +6,8 @@ if(NOT CMAKE_CXX_STANDARD) | ||
set(CMAKE_CXX_STANDARD 14) | ||
endif() | ||
|
||
+add_compile_definitions(_USE_MATH_DEFINES) | ||
+ | ||
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
add_compile_options(-Wall -Wextra -Wpedantic) | ||
endif() |
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,13 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 27231ef..0b0246f 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -5,6 +5,8 @@ if(NOT CMAKE_CXX_STANDARD) | ||
set(CMAKE_CXX_STANDARD 14) | ||
endif() | ||
|
||
+set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) | ||
+ | ||
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
add_compile_options(-Wall -Wextra -Wpedantic) | ||
endif() |
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/io_context/CMakeLists.txt b/io_context/CMakeLists.txt | ||
index 54804aa..3c04653 100644 | ||
--- a/io_context/CMakeLists.txt | ||
+++ b/io_context/CMakeLists.txt | ||
@@ -25,6 +25,7 @@ endif() | ||
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
add_compile_options(-Wall -Wextra -Wpedantic) | ||
endif() | ||
+set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) | ||
|
||
## dependencies | ||
find_package(ament_cmake_auto REQUIRED) |
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/joint_limits/src/joint_soft_limiter.cpp b/joint_limits/src/joint_soft_limiter.cpp | ||
index a2292cb033..622a320384 100644 | ||
--- a/joint_limits/src/joint_soft_limiter.cpp | ||
+++ b/joint_limits/src/joint_soft_limiter.cpp | ||
@@ -13,6 +13,7 @@ | ||
// limitations under the License. | ||
|
||
/// \author Adrià Roig Moreno | ||
+#define _USE_MATH_DEFINES | ||
#include "joint_limits/joint_soft_limiter.hpp" | ||
|
||
namespace joint_limits |
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,18 @@ | ||
diff --git a/joint_state_broadcaster/include/joint_state_broadcaster/joint_state_broadcaster.hpp b/joint_state_broadcaster/include/joint_state_broadcaster/joint_state_broadcaster.hpp | ||
index f1c532dce9..9eb7ab8a13 100644 | ||
--- a/joint_state_broadcaster/include/joint_state_broadcaster/joint_state_broadcaster.hpp | ||
+++ b/joint_state_broadcaster/include/joint_state_broadcaster/joint_state_broadcaster.hpp | ||
@@ -88,9 +88,13 @@ class JointStateBroadcaster : public controller_interface::ControllerInterface | ||
const rclcpp_lifecycle::State & previous_state) override; | ||
|
||
protected: | ||
+ JOINT_STATE_BROADCASTER_PUBLIC | ||
bool init_joint_data(); | ||
+ JOINT_STATE_BROADCASTER_PUBLIC | ||
void init_joint_state_msg(); | ||
+ JOINT_STATE_BROADCASTER_PUBLIC | ||
void init_dynamic_joint_state_msg(); | ||
+ JOINT_STATE_BROADCASTER_PUBLIC | ||
bool use_all_available_interfaces() const; | ||
|
||
protected: |
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,11 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 3bb5bfd..b9f334b 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -23,1 +23,6 @@ ament_auto_add_library(laser_scan_filters SHARED src/laser_scan_filters.cpp) | ||
+find_package(Boost REQUIRED COMPONENTS thread) | ||
+target_link_libraries(laser_scan_filters Boost::thread) | ||
+set_target_properties(laser_scan_filters PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON) | ||
+set_target_properties(laser_filter_chains PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON) | ||
+set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS 1) | ||
|
Oops, something went wrong.