Skip to content

Commit 44bf5ef

Browse files
committed
AppVeyor: Add a workaround for build with Visual Studio 2019 on ARM64
Avoid SDK 10.0.26100.0. Use an older SDK: 10.0.22621.0. The problem first appeared on November 7, 2025. The errors were: C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\um\winnt.h (6343,27): warning C4013: '_CountOneBits64' undefined; assuming extern returning int Something has changed in the AppVeyor build system. When it was OK: cmake version 4.1.0 -- The C compiler identification is MSVC 19.29.30159.0 Current: cmake version 4.1.0 -- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.17763. -- The C compiler identification is MSVC 19.29.30159.0 [skip ci]
1 parent 3ed0cd0 commit 44bf5ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.appveyor.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,14 @@ environment:
9595
PLATFORM: ARM64
9696
SDK: npcap-sdk
9797
REMOTE: -DENABLE_REMOTE=NO
98+
WINDOWS_TARGET_PLATFORM_VERSION: -p:WindowsTargetPlatformVersion=10.0.22621.0
9899
# VS 2019, Npcap, 64-bit ARM, with remote
99100
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
100101
GENERATOR: "Visual Studio 16 2019"
101102
PLATFORM: ARM64
102103
SDK: npcap-sdk
103104
OPENSSL_ROOT_DIR: -DOPENSSL_ROOT_DIR=C:\OpenSSL-v33-Win64\bin
105+
WINDOWS_TARGET_PLATFORM_VERSION: -p:WindowsTargetPlatformVersion=10.0.22621.0
104106
# VS 2022, WinPcap, 32-bit and 64-bit x86, without remote
105107
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
106108
GENERATOR: "Visual Studio 17 2022"
@@ -168,4 +170,4 @@ build_script:
168170
- cd build
169171
- cmake --version
170172
- cmake %REMOTE% %OPENSSL_ROOT_DIR% -DPacket_ROOT=c:\projects\libpcap\Win32\%SDK% -G"%GENERATOR%" -DPacket_ROOT=c:\projects\libpcap\Win32\%SDK% -DPacket_ROOT=c:\projects\libpcap\Win32\%SDK% -G"%GENERATOR%" -G"%GENERATOR%" -A %PLATFORM% ..
171-
- msbuild /m /nologo /p:Configuration=Release pcap.sln
173+
- msbuild /m /nologo /p:Configuration=Release pcap.sln %WINDOWS_TARGET_PLATFORM_VERSION%

0 commit comments

Comments
 (0)