Skip to content

Instantly share code, notes, and snippets.

@doccaico
Created January 30, 2025 01:27
Show Gist options
  • Save doccaico/9045a30c41c19c3255507d4c05dfabfb to your computer and use it in GitHub Desktop.
Save doccaico/9045a30c41c19c3255507d4c05dfabfb to your computer and use it in GitHub Desktop.
Windows上でlibxml2をビルドする (MSVC)

1: ソースをダウンロードする

2: ソースを解凍する

cmake -E tar xf libxml2-xxx.tar.gz

3: ビルドファイルを生成する

cmake -S libxml2-xxx -B libxml2-xxx-build -D LIBXML2_WITH_PYTHON=OFF -D LIBXML2_WITH_ICONV=OFF -D LIBXML2_WITH_DEBUG=OFF

4: ビルドする

cmake --build libxml2-v2.13.5-build --config Release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment