mingw gcc 静态 static 编译 dav1d libdav1d.a

export CC=/mingw/bin/gcc
export CXX=/mingw/bin/g++
meson --prefix "/usr/local" build --buildtype release --default-library static
ninja -C build
ninja -C build install

32位版本 编译好的下载地址 dav1d-0.3.1-20190614-a1e3f358-dev.7z
链接: https://pan.baidu.com/s/1lKtbPg5l8JwPIIstlI2Nug 提取码: hr73

----------------------------------------------------------------------------------------------------------
/build/libs/dav1d-20190614-a1e3f358
$ meson --prefix "/usr/local" build --buildtype release --default-library static
The Meson build system
Version: 0.50.1
Source dir: D:MSYSuildlibsdav1d-20190614-a1e3f358
Build dir: D:MSYSuildlibsdav1d-20190614-a1e3f358uild
Build type: native build
Project name: dav1d
Project version: 0.3.1
Appending CFLAGS from environment: '-ID:/MSYS/local/include'
Appending LDFLAGS from environment: '-LD:/MSYS/local/lib'
Appending CPPFLAGS from environment: '-ID:/MSYS/local/include'
Native C compiler: d:/msys/mingw/bin/gcc (gcc 8.1.0 "gcc (i686-posix-sjlj-rev0, Built by MinGW-W64 project) 8.1.0")
Build machine cpu family: x86
Build machine cpu: x86
Checking for function "fseeko" : YES
Check usable header "stdatomic.h" : YES
Check usable header "unistd.h" : YES
Check usable header "io.h" : YES
Checking for function "getopt_long" : YES
Checking for function "posix_memalign" : NO
Checking for function "_aligned_malloc" : YES
Compiler for C supports arguments -fvisibility=hidden: YES
Compiler for C supports arguments -Wundef: YES
Compiler for C supports arguments -Werror=vla: YES
Compiler for C supports arguments -Wno-maybe-uninitialized -Wmaybe-uninitialized: YES
Compiler for C supports arguments -Wno-missing-field-initializers -Wmissing-field-initializers: YES
Compiler for C supports arguments -Wno-unused-parameter -Wunused-parameter: YES
Compiler for C supports arguments -Werror=missing-prototypes: YES
Compiler for C supports arguments -Wshorten-64-to-32: NO
Compiler for C supports arguments -msse2: YES
Compiler for C supports arguments -mfpmath=sse: YES
Compiler for C supports arguments -fomit-frame-pointer: YES
Compiler for C supports arguments -ffast-math: YES
Compiler for C supports arguments -mpreferred-stack-boundary=4: YES
Configuring config.h using configuration
Configuring config.asm using configuration
Program nasm found: YES (D:MSYSoptin
asm.EXE)
Configuring version.h using configuration

Configuring Doxyfile using configuration
Library m found: YES
Program objcopy found: YES (d:msysmingwinobjcopy.EXE)
Checking for function "posix_memalign" : NO
Build targets in project: 12
Found ninja-1.9.0 at 'D:MSYSoptmeson
inja.EXE'

/build/libs/dav1d-20190614-a1e3f358
$ ninja -C build
ninja: Entering directory `build'
[107/107] Linking target tools/dav1d.exe.

/build/libs/dav1d-20190614-a1e3f358
$ ninja -C build install
ninja: Entering directory `build'
[1/2] Installing files.
Installing srclibdav1d.a to D:/MSYS/locallib
Installing toolsdav1d.exe to D:/MSYS/localin
Installing D:MSYSuildlibsdav1d-20190614-a1e3f358includedav1dcommon.h to D:/MSYS/localincludedav1d
Installing D:MSYSuildlibsdav1d-20190614-a1e3f358includedav1ddata.h to D:/MSYS/localincludedav1d
Installing D:MSYSuildlibsdav1d-20190614-a1e3f358includedav1ddav1d.h to D:/MSYS/localincludedav1d
Installing D:MSYSuildlibsdav1d-20190614-a1e3f358includedav1dheaders.h to D:/MSYS/localincludedav1d
Installing D:MSYSuildlibsdav1d-20190614-a1e3f358includedav1dpicture.h to D:/MSYS/localincludedav1d
Installing D:MSYSuildlibsdav1d-20190614-a1e3f358uildincludedav1dversion.h to D:/MSYS/localincludedav1d
Installing D:MSYSuildlibsdav1d-20190614-a1e3f358uildmeson-privatedav1d.pc to D:/MSYS/locallibpkgconfig
----------------------------------------------------------------------------------------------------------
原文地址:https://www.cnblogs.com/nlsoft/p/11039358.html