Skip to content

Fix Windows build on CI#199

Merged
czoido merged 3 commits intoconan-io:mainfrom
uilianries:sdl2/ci-fix
Nov 6, 2025
Merged

Fix Windows build on CI#199
czoido merged 3 commits intoconan-io:mainfrom
uilianries:sdl2/ci-fix

Conversation

@uilianries
Copy link
Member

fixes #198

uilianries and others added 2 commits November 6, 2025 08:16
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianr@jfrog.com>

if platform.system() == "Windows":
run("cmake --preset conan-default")
run("cmake --preset conan-release")
Copy link
Member

Choose a reason for hiding this comment

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

Why? Has the default generator changed to Ninja? I don't see that.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry, I'm running Ninja by default locally. I'll revert it.

sdl/[~2.28]

[options]
libtiff/*:lzma=False
Copy link
Member

Choose a reason for hiding this comment

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

But is libtiff broken for Windows with the default lzma=True option? It would be good to know the underlying problem

Copy link
Member Author

Choose a reason for hiding this comment

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

When building xz_utils we have a few error that breaks the CI:

C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\oaidl.h(487,17): error C2059: syntax error: '/' [C:\J2\workspace\Examples2.0_PR-192\85ca\e3ff.conan\p\b\xz_utd86488799d7c1\b\build-release\liblzma.vcxproj]
(compiling source file '../src/src/common/tuklib_physmem.c')

https://github.com/user-attachments/files/23366997/sdl_tutorial.log

It looks like tuklib_physmem.c is compiled with Windows headers that require C++. Wrong language mode maybe?

Still, I want to have a green build first, only to make sure we don't have more errors besides this one.

Copy link

Choose a reason for hiding this comment

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

could we open an issue in Conan Center about this?
I suspect its the version of the Windows SDK - our CI had no issues with this

Copy link
Member Author

Choose a reason for hiding this comment

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

Done, new issue reported: conan-io/conan-center-index#28835

Signed-off-by: Uilian Ries <uilianr@jfrog.com>
@uilianries
Copy link
Member Author

Okay, I can reproduce the CI error locally. I comes from that old Windows SDK version 10.0.17763.0 used in the CI:

xz_utils-5.8.1-windows-amd64-msvc194-sdk10.0.17763.0-reelease.log

Using one version later (10.0.18362.0) it works perfectly: xz_utils-5.8.1-windows-amd64-msvc194-sdk10.0.18362.0-reelease.log

And, using a more recent version it works as well: xz_utils-5.8.1-windows-amd64-msvc194-sdk10.0.26100.0-reelease.log

Microsoft marks those SDK version as deprecated: https://developer.microsoft.com/en-us/windows/downloads/sdk-archive/index-legacy

We will need or update the SDK version in CI, or just use libtiff without xz_utils.

@uilianries uilianries marked this pull request as ready for review November 6, 2025 11:06
@czoido
Copy link
Contributor

czoido commented Nov 6, 2025

I'm merging this so we can have the CI green, as we are planning to move the CI to GitHub Actions that can be addressed when we migrate.

@czoido czoido merged commit 841ca9b into conan-io:main Nov 6, 2025
4 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.

Main branch is broken on Windows CI during xz_utils build

4 participants