zoukankan      html  css  js  c++  java
  • mingw32环境上静态编译 dav1d 0.4.0

    2019-08-05 发布 dav1d 0.4.0
    dav1d 0.4.0 'Cheetah', the fast and small AV1 decoder This is the fourth major release of dav1d, the fast and small AV1 decoder, codename 'Cheetah'. It supports all the AV1 features and all bitdepths. 0.4.0 brings large improvements in speed on ARM64 (up to 25% speedup) and minor improvements on SSE and ARM. It also improves the RAM usage quite significantly, sometimes more than halving the RAM used. mingw32环境上静态编译 dav1d 0.4.0 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 如果出现一下错误 Linking target tools/dav1dplay.exe. FAILED: tools/dav1dplay.exe d:/msys/mingw/bin/gcc @tools/dav1dplay.exe.rsp D:/MSYS/local/lib/libSDL2.a(SDL_windowskeyboard.o):SDL_windowskeyboard.c:(.text+0x5dc): undefined reference to `ImmGetContext@4' D:/MSYS/local/lib/libSDL2.a(SDL_windowskeyboard.o):SDL_windowskeyboard.c:(.text+0x619): undefined reference to `ImmSetCompositionWindow@8' D:/MSYS/local/lib/libSDL2.a(SDL_windowskeyboard.o):SDL_windowskeyboard.c:(.text+0x631): undefined reference to `ImmReleaseContext@8' D:/MSYS/local/lib/libSDL2.a(SDL_windowskeyboard.o):SDL_windowskeyboard.c:(.text+0x788): undefined reference to `ImmGetContext@4' D:/MSYS/local/lib/libSDL2.a(SDL_windowskeyboard.o):SDL_windowskeyboard.c:(.text+0x7a8): undefined reference to `ImmReleaseContext@8' D:/MSYS/local/lib/libSDL2.a(SDL_windowskeyboard.o):SDL_windowskeyboard.c:(.text+0x88b): undefined reference to `ImmAssociateContext@8' D:/MSYS/local/lib/libSDL2.a(SDL_windowskeyboard.o):SDL_windowskeyboard.c:(.text+0x8fe): undefined reference to `ImmAssociateContext@8' D:/MSYS/local/lib/libSDL2.a(SDL_windowskeyboard.o):SDL_windowskeyboard.c:(.text+0x95c): undefined reference to `ImmAssociateContext@8' D:/MSYS/local/lib/libSDL2.a(SDL_windowskeyboard.o):SDL_windowskeyboard.c:(.text+0xa7c): undefined reference to `ImmGetContext@4' D:/MSYS/local/lib/libSDL2.a(SDL_windowskeyboard.o):SDL_windowskeyboard.c:(.text+0xdac): undefined reference to `ImmReleaseContext@8' D:/MSYS/local/lib/libSDL2.a(SDL_windowskeyboard.o):SDL_windowskeyboard.c:(.text+0xf6c): undefined reference to `ImmGetIMEFileNameA@12' D:/MSYS/local/lib/libSDL2.a(SDL_windowskeyboard.o):SDL_windowskeyboard.c:(.text+0x112b): undefined reference to `GetFileVersionInfoSizeA@8' D:/MSYS/local/lib/libSDL2.a(SDL_windowskeyboard.o):SDL_windowskeyboard.c:(.text+0x1176): undefined reference to `GetFileVersionInfoA@16' D:/MSYS/local/lib/libSDL2.a(SDL_windowskeyboard.o):SDL_windowskeyboard.c:(.text+0x11a2): undefined reference to `VerQueryValueA@16'D:/MSYS/local/lib/libSDL2.a(SDL_windowskeyboard.o):SDL_windowskeyboard.c:(.text+0x130a): undefined reference to `ImmGetIMEFileNameA@12' D:/MSYS/local/lib/libSDL2.a(SDL_windowskeyboard.o):SDL_windowskeyboard.c:(.text+0x1387): undefined reference to `ImmGetContext@4' D:/MSYS/local/lib/libSDL2.a(SDL_windowskeyboard.o):SDL_windowskeyboard.c:(.text+0x13c4): undefined reference to `ImmReleaseContext@8' D:/MSYS/local/lib/libSDL2.a(SDL_windowskeyboard.o):SDL_windowskeyboard.c:(.text+0x1521): undefined reference to `ImmGetContext@4' D:/MSYS/local/lib/libSDL2.a(SDL_windowskeyboard.o):SDL_windowskeyboard.c:(.text+0x1554): undefined reference to `ImmNotifyIME@16' D:/MSYS/local/lib/libSDL2.a(SDL_windowskeyboard.o):SDL_windowskeyboard.c:(.text+0x1597): undefined reference to `ImmSetCompositionStringW@24' D:/MSYS/local/lib/libSDL2.a(SDL_windowskeyboard.o):SDL_windowskeyboard.c:(.text+0x15bd): undefined reference to `ImmNotifyIME@16' D:/MSYS/local/lib/libSDL2.a(SDL_windowskeyboard.o):SDL_windowskeyboard.c:(.text+0x15d5): undefined reference to `ImmReleaseContext@8' D:/MSYS/local/lib/libSDL2.a(SDL_windowskeyboard.o):SDL_windowskeyboard.c:(.text+0x1626): undefined reference to `ImmGetCompositionStringW@16' D:/MSYS/local/lib/libSDL2.a(SDL_windowskeyboard.o):SDL_windowskeyboard.c:(.text+0x1664): undefined reference to `ImmGetCompositionStringW@16' D:/MSYS/local/lib/libSDL2.a(SDL_windowskeyboard.o):SDL_windowskeyboard.c:(.text+0x19bb): undefined reference to `ImmGetCandidateListW@16' D:/MSYS/local/lib/libSDL2.a(SDL_windowskeyboard.o):SDL_windowskeyboard.c:(.text+0x1a04): undefined reference to `ImmGetCandidateListW@16' D:/MSYS/local/lib/libSDL2.a(SDL_windowskeyboard.o):SDL_windowskeyboard.c:(.text+0x1d30): undefined reference to `ImmGetContext@4' D:/MSYS/local/lib/libSDL2.a(SDL_windowskeyboard.o):SDL_windowskeyboard.c:(.text+0x1dc5): undefined reference to `ImmReleaseContext@8' D:/MSYS/local/lib/libSDL2.a(SDL_windowskeyboard.o):SDL_windowskeyboard.c:(.text+0x1e66): undefined reference to `ImmGetContext@4' D:/MSYS/local/lib/libSDL2.a(SDL_windowskeyboard.o):SDL_windowskeyboard.c:(.text+0x1e9a): undefined reference to `ImmReleaseContext@8' D:/MSYS/local/lib/libSDL2.a(hid.o):hid.c:(.text+0x5e4): undefined reference to `_imp__SetupDiGetClassDevsA@16' D:/MSYS/local/lib/libSDL2.a(hid.o):hid.c:(.text+0x628): undefined reference to `_imp__SetupDiEnumDeviceInterfaces@20' D:/MSYS/local/lib/libSDL2.a(hid.o):hid.c:(.text+0x641): undefined reference to `_imp__SetupDiDestroyDeviceInfoList@4' D:/MSYS/local/lib/libSDL2.a(hid.o):hid.c:(.text+0x685): undefined reference to `_imp__SetupDiGetDeviceInterfaceDetailA@24' D:/MSYS/local/lib/libSDL2.a(hid.o):hid.c:(.text+0x6dd): undefined reference to `_imp__SetupDiGetDeviceInterfaceDetailA@24' D:/MSYS/local/lib/libSDL2.a(hid.o):hid.c:(.text+0x70f): undefined reference to `_imp__SetupDiEnumDeviceInfo@12' D:/MSYS/local/lib/libSDL2.a(hid.o):hid.c:(.text+0x75d): undefined reference to `_imp__SetupDiGetDeviceRegistryPropertyA@28' D:/MSYS/local/lib/libSDL2.a(hid.o):hid.c:(.text+0x7c5): undefined reference to `_imp__SetupDiGetDeviceRegistryPropertyA@28' D:/MSYS/local/lib/libSDL2.a(SDL_systimer.o):SDL_systimer.c:(.text+0x22): undefined reference to `_imp__timeEndPeriod@4' D:/MSYS/local/lib/libSDL2.a(SDL_systimer.o):SDL_systimer.c:(.text+0x45): undefined reference to `_imp__timeBeginPeriod@4' D:/MSYS/local/lib/libSDL2.a(SDL_systimer.o):SDL_systimer.c:(.text+0x10d): undefined reference to `_imp__timeGetTime@0' D:/MSYS/local/lib/libSDL2.a(SDL_systimer.o):SDL_systimer.c:(.text+0x211): undefined reference to `_imp__timeGetTime@0' D:/MSYS/local/lib/libSDL2.a(SDL_winmm.o):SDL_winmm.c:(.text+0x11): undefined reference to `_imp__waveOutGetNumDevs@0' D:/MSYS/local/lib/libSDL2.a(SDL_winmm.o):SDL_winmm.c:(.text+0x3c): undefined reference to `_imp__waveOutGetDevCapsW@12' D:/MSYS/local/lib/libSDL2.a(SDL_winmm.o):SDL_winmm.c:(.text+0xbd): undefined reference to `_imp__waveInGetNumDevs@0' D:/MSYS/local/lib/libSDL2.a(SDL_winmm.o):SDL_winmm.c:(.text+0xe8): undefined reference to `_imp__waveInGetDevCapsW@12' D:/MSYS/local/lib/libSDL2.a(SDL_winmm.o):SDL_winmm.c:(.text+0x248): undefined reference to `_imp__waveOutGetErrorTextW@12' D:/MSYS/local/lib/libSDL2.a(SDL_winmm.o):SDL_winmm.c:(.text+0x339): undefined reference to `_imp__waveOutWrite@12' D:/MSYS/local/lib/libSDL2.a(SDL_winmm.o):SDL_winmm.c:(.text+0x43b): undefined reference to `_imp__waveInAddBuffer@12' D:/MSYS/local/lib/libSDL2.a(SDL_winmm.o):SDL_winmm.c:(.text+0x4da): undefined reference to `_imp__waveInAddBuffer@12' D:/MSYS/local/lib/libSDL2.a(SDL_winmm.o):SDL_winmm.c:(.text+0x528): undefined reference to `_imp__waveOutReset@4' D:/MSYS/local/lib/libSDL2.a(SDL_winmm.o):SDL_winmm.c:(.text+0x57d): undefined reference to `_imp__waveOutUnprepareHeader@12' D:/MSYS/local/lib/libSDL2.a(SDL_winmm.o):SDL_winmm.c:(.text+0x59c): undefined reference to `_imp__waveOutClose@4' D:/MSYS/local/lib/libSDL2.a(SDL_winmm.o):SDL_winmm.c:(.text+0x5c3): undefined reference to `_imp__waveInReset@4' D:/MSYS/local/lib/libSDL2.a(SDL_winmm.o):SDL_winmm.c:(.text+0x619): undefined reference to `_imp__waveInUnprepareHeader@12' D:/MSYS/local/lib/libSDL2.a(SDL_winmm.o):SDL_winmm.c:(.text+0x639): undefined reference to `_imp__waveInClose@4' D:/MSYS/local/lib/libSDL2.a(SDL_winmm.o):SDL_winmm.c:(.text+0x766): undefined reference to `_imp__waveInOpen@24' D:/MSYS/local/lib/libSDL2.a(SDL_winmm.o):SDL_winmm.c:(.text+0x7a7): undefined reference to `_imp__waveOutOpen@24' D:/MSYS/local/lib/libSDL2.a(SDL_winmm.o):SDL_winmm.c:(.text+0x968): undefined reference to `_imp__waveInOpen@24' D:/MSYS/local/lib/libSDL2.a(SDL_winmm.o):SDL_winmm.c:(.text+0x9c2): undefined reference to `_imp__waveOutOpen@24' D:/MSYS/local/lib/libSDL2.a(SDL_winmm.o):SDL_winmm.c:(.text+0xb35): undefined reference to `_imp__waveInPrepareHeader@12' D:/MSYS/local/lib/libSDL2.a(SDL_winmm.o):SDL_winmm.c:(.text+0xb89): undefined reference to `_imp__waveInAddBuffer@12' D:/MSYS/local/lib/libSDL2.a(SDL_winmm.o):SDL_winmm.c:(.text+0xbdc): undefined reference to `_imp__waveOutPrepareHeader@12' 就修改 D:MSYSuildlibsdav1d-0.4.0uilduild.ninja LINK_ARGS 加上 "-limm32" "-lsetupapi" "-lwinmm" "-lversion" LINK_ARGS = "-ID:/MSYS/local/include" "-LD:/MSYS/local/lib" "-Wl,-O1" "-Wl,--start-group" "src\libdav1d.a" "D:/MSYS/local/lib/libSDL2main.a" "D:/MSYS/local/lib/libSDL2.a" "-mwindows" "-LD:/MSYS/local/lib" "-lmingw32" "-mconsole" "-lkernel32" "-luser32" "-lgdi32" "-lwinspool" "-lshell32" "-lole32" "-loleaut32" "-luuid" "-lcomdlg32" "-ladvapi32" "-limm32" "-lsetupapi" "-lwinmm" "-lversion" "-Wl,--end-group"
  • 相关阅读:
    8086汇编--1--通用寄存器和简单汇编指令
    写在前面的吐槽!
    汇编/Debug学习计划
    开篇-引文
    看懂别人的代码,和自己能写代码是两回事
    内存管理
    Flink基本原理及应用场景
    IDEA Maven Dependencies标红报错
    Spark Streaming流式处理
    Kafka
  • 原文地址:https://www.cnblogs.com/nlsoft/p/11357577.html
Copyright © 2011-2022 走看看