hashlink icon indicating copy to clipboard operation
hashlink copied to clipboard

Fix CI

Open tobil4sk opened this issue 3 years ago • 6 comments

tobil4sk avatar May 15 '22 09:05 tobil4sk

Still some failures there ;)

ncannasse avatar May 16 '22 12:05 ncannasse

Yes, a long list of weird compiler errors, eg:

C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\oaidl.h(487,17): error C2059: syntax error: '/' [D:\a\1\s\libhl.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\oaidl.h(502,17): warning C5103: pasting '/' and '/' does not result in a valid preprocessing token [D:\a\1\s\libhl.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\shared\wtypes.h(745): message : in expansion of macro '_VARIANT_BOOL' [D:\a\1\s\libhl.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\oaidl.h(502,17): error C2059: syntax error: '/' [D:\a\1\s\libhl.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\oaidl.h(529,40): warning C4094: untagged 'struct' declared no symbols [D:\a\1\s\libhl.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\oaidl.h(530,17): error C2059: syntax error: '}' [D:\a\1\s\libhl.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\oaidl.h(531,13): error C2059: syntax error: '}' [D:\a\1\s\libhl.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\oaidl.h(533,9): error C2059: syntax error: '}' [D:\a\1\s\libhl.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\oaidl.h(534,5): error C2059: syntax error: '}' [D:\a\1\s\libhl.vcxproj]

Not sure why there would be syntax errors, or why it's using the windows 10 kit and not 8.1 which is meant to be the one that is set up?

tobil4sk avatar May 16 '22 12:05 tobil4sk

So there were some issues with how the SDK was configured in CMake, which prevented it from the correct one being uses (it has to be set before the project() call, at which point MSVC is not set so an if block I wrapped it in wasn't running).

Additionally, the compiler errors were still present even with the correct SDK. The 8.1 SDK (along with some older Windows 10 SDKs) requires the C language standard to be set to "Legacy MSVC", as some of the SDK header files depend on non-standard features. This blog goes into more depth. Legacy MSVC is what is used by default, and it is what is configured by default for the projects in hl.sln.

tobil4sk avatar Aug 13 '22 17:08 tobil4sk

@ncannasse The only thing that's left now is that DirectX 12 is not supported on Windows 8.1, so compilation is failing now. WIth DirectX12 support being added, it may be a good time to start building for Windows 10 instead of 8.1?

tobil4sk avatar Aug 13 '22 17:08 tobil4sk

I think that's what we did for latest vcxproj : upgraded to vs2019 + win10 sdk

Le sam. 13 août 2022 à 20:41, tobil4sk @.***> a écrit :

@ncannasse https://github.com/ncannasse The only thing that's left now is that DirectX 12 is not supported on Windows 8.1, so compilation is failing now. WIth DirectX12 support being added, it may be a good time to start building for Windows 10 instead of 8.1?

— Reply to this email directly, view it on GitHub https://github.com/HaxeFoundation/hashlink/pull/548#issuecomment-1214195764, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHZXQETIAZPY7K5LXXNJM3VY7M6FANCNFSM5V6ZPUFQ . You are receiving this because you were mentioned.Message ID: @.***>

ncannasse avatar Aug 14 '22 19:08 ncannasse

Right now all the vcxproj files still have the windows 8.1 sdk, apart from the dx12 one:

For example: https://github.com/HaxeFoundation/hashlink/blob/9cadbe5aacd32c22699a12b0a927627279a53506/hl.vcxproj#L33 https://github.com/HaxeFoundation/hashlink/blob/9cadbe5aacd32c22699a12b0a927627279a53506/libhl.vcxproj#L33

So the intention was to update to sdk 10 everywhere then?

tobil4sk avatar Aug 14 '22 19:08 tobil4sk

@ncannasse Upgraded everything to win 10 sdk properly, and everything's building properly now so we're ready to merge. 👍

tobil4sk avatar Aug 21 '22 11:08 tobil4sk

Thanks !

ncannasse avatar Aug 21 '22 11:08 ncannasse