Install cmake
website: https://cmake.org/download/
Install mingw
website: https://www.mingw-w64.org/downloads/
windows choose posix & seh
https://github.com/niXman/mingw-builds-binaries/releases
Install Visual Studio Community
website: https://visualstudio.microsoft.com/zh-hans/
select windows 11 SDK
Install vcpkg
website: https://github.com/microsoft/vcpkg-tool
install pkg-config to cmake (for windows)
compile pkg-config
vcpkg install pkgconf:x64-windows
copy exe
cp [vcpkg_root]/packages/pkgconf_x64-windows/tools/pkgconf/pkgconf.exe [cmake_root]/bin/pkg-config.exe
Integrate to vscode
vcpkg integrate install
Install boost
vcpkg help triplet
vcpkg install boost:x64-windows
vcpkg install boost:x64-windows-static
ref: Boost 1.79.0 Library Documentation
Install gtkmm
vcpkg install gtkmm:x64-windows
Q&A
Q: build python3[core]:x64-mingw-static failed
A: https://github.com/microsoft/vcpkg/issues/21186
change file vcpkg/ports/python3/portfile.cmake
if(VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_UWP)
to
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
change file vcpkg/ports/python3/0009-python.pc.patch
+Cflags: -I${includedir}/python@VERSION@
to
+Cflags: -I${includedir}/python@VERSION@ -Wno-error