Skip to content

Conversation

@traversaro
Copy link
Contributor

The package compiles a library, but does not expose any symbol on Windows, so if the CMake project is compiled on on Windows, no library is actually generated.

On Linux and macOS, everything compiles by default all the symbols are visible. We can achieve exactly the same behavior in Windows by setting to ON the CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS CMake variable, so this PR sets the CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS variable to ON, to ensure that the compilation works fine on Windows.

Furthermore, the following fixes were also added:

  • -Wall -Wextra are GCC/Clang specific compilations options, so I moved it in an if for adding GCC/Clang specific compilations options.
  • uint does not exists in Windows, so we use uint32_t instead
  • The sleep function is not defined on Windows, so we use std::this_thread::sleep_for instead

Copy link
Member

@urfeex urfeex left a comment

Choose a reason for hiding this comment

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

That looks good to me, thank you @traversaro

Copy link
Member

@urfeex urfeex left a comment

Choose a reason for hiding this comment

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

That seems fair, thanks for providing this.

@urfeex urfeex merged commit 94e574f into UniversalRobots:main Jun 25, 2025
5 of 11 checks passed
mergify bot pushed a commit that referenced this pull request Jun 25, 2025
mergify bot pushed a commit that referenced this pull request Jun 25, 2025
urfeex pushed a commit that referenced this pull request Jun 25, 2025
urfeex pushed a commit that referenced this pull request Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants