Movatterモバイル変換


[0]ホーム

URL:


everything curl

    Windows

    You can build curl on Windows in several different ways. We recommend usingthe MSVC compiler from Microsoft or the free and open source mingwcompiler. The build process is, however, not limited to these.

    If you use mingw, you might want to use theautotools buildsystem.

    winbuild

    This is how to build curl and libcurl using the command line.

    Build with MSVC using thenmake utility like this:

    cd winbuild

    Decide what options to enable/disable in your build. TheREADME.md file inthat directory details them all, but an example command line could look likethis (split into several lines for readability):

    nmake WITH_SSL=dll WITH_NGHTTP2=dll ENABLE_IPV6=yes \WITH_ZLIB=dll MACHINE=x64

    Visual C++ project files

    UsingCMake, you can generate a set of Visual Studio projectfiles:

    cmake -B build -G 'Visual Studio 17 2022'

    Once generated, you import them and build with Visual Studio like normally.

    You can even generate them for 32-bit Windows with:

    cmake -B build -G 'Visual Studio 17 2022' \-DCMAKE_GENERATOR_PLATFORM=x86

    Mingw

    You can build curl with the mingw compiler suite. UseCMake togenerate the set of Makefiles for you:

    cmake -B build -G "MinGW Makefiles"

    [8]ページ先頭

    ©2009-2025 Movatter.jp