Skip to content

fix: windows crosscompilation and added a workflow to test it by crosscompiling on ubuntu and running tests on windows#402

Merged
christian-rauch merged 3 commits into
AprilRobotics:masterfrom
VincentMarnier:master
Oct 3, 2025
Merged

fix: windows crosscompilation and added a workflow to test it by crosscompiling on ubuntu and running tests on windows#402
christian-rauch merged 3 commits into
AprilRobotics:masterfrom
VincentMarnier:master

Conversation

@VincentMarnier

@VincentMarnier VincentMarnier commented Oct 2, 2025

Copy link
Copy Markdown
Contributor

When crosscompiling for windows, Winsock2.h is not found, because the include statement is case sensitive and the header's names is winsock2.h instead of Winsock2.h.

We now checks which is present and use it.

Also added a workflow to test the cross compilation by building (using mingw) on ubuntu and running the tests on windows.

@VincentMarnier

VincentMarnier commented Oct 2, 2025

Copy link
Copy Markdown
Contributor Author

So here we are again, with the __has_include and the CI.
Let me know if something feels wrong to you!

@christian-rauch christian-rauch left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good. Can you maybe just add some info in the commit message and the PR what is happening here and why this is required?

Comment thread .github/workflows/cross-compilation.yml
@VincentMarnier VincentMarnier changed the title fix: windows crosscompilation fix: windows crosscompilation and added a workflow to test it by crosscompiling on ubuntu and running tests on windows Oct 3, 2025
@christian-rauch christian-rauch self-requested a review October 3, 2025 09:14
@christian-rauch christian-rauch merged commit 3c97a99 into AprilRobotics:master Oct 3, 2025
42 checks passed
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