Menu

#1236 SDL2 UI fails to build

v3.6
closed-fixed
nobody
None
SDL2x
Buildsystem
2021-12-30
2020-06-21
Retroplay
No

SDL2 UI fails to build on win64 (GTK3 is fine and compiles just fine with same options enabled).
./configure --disable-arch --enable-sdlui2 --enable-static-lame --enable-static-ffmpeg --enable-realdevice --enable-cpuhistory --enable-native-tools --enable-new8580filter

MSYS2/MinGW info:

$ gcc -v
Using built-in specs.
COLLECT_GCC=F:\msys64\mingw64\bin\gcc.exe
COLLECT_LTO_WRAPPER=F:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../gcc-10.1.0/configure --prefix=/mingw64 --with-local-prefix=/mingw64/local --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-native-system-header-dir=/mingw64/x86_64-w64-mingw32/include --libexecdir=/mingw64/lib --enable-bootstrap --with-arch=x86-64 --with-tune=generic --enable-languages=c,lto,c++,fortran,ada,objc,obj-c++ --enable-shared --enable-static --enable-libatomic --enable-threads=posix --enable-graphite --enable-fully-dynamic-string --enable-libstdcxx-filesystem-ts=yes --enable-libstdcxx-time=yes --disable-libstdcxx-pch --disable-libstdcxx-debug --disable-isl-version-check --enable-lto --enable-libgomp --disable-multilib --enable-checking=release --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --disable-plugin --with-libiconv --with-system-zlib --with-gmp=/mingw64 --with-mpfr=/mingw64 --with-mpc=/mingw64 --with-isl=/mingw64 --with-pkgversion='Rev3, Built by MSYS2 project' --with-bugurl=https://sourceforge.net/projects/msys2 --with-gnu-as --with-gnu-ld
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.1.0 (Rev3, Built by MSYS2 project)

It stops with these errors:

F:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: main.o: in function `shutdown_com':
F:\msys64\src\vice\src/main.c:363: undefined reference to `__imp_CoUninitialize'
F:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: main.o: in function `main_program':
F:\msys64\src\vice\src/main.c:120: undefined reference to `__imp_CoInitializeEx'
collect2.exe: error: ld returned 1 exit status
make[3]: *** [Makefile:1895: vsid.exe] Error 1
make[3]: *** Waiting for unfinished jobs....
F:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: main.o: in function `shutdown_com':
F:\msys64\src\vice\src/main.c:363: undefined reference to `__imp_CoUninitialize'
F:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: main.o: in function `main_program':
F:\msys64\src\vice\src/main.c:120: undefined reference to `__imp_CoInitializeEx'
F:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: main.o: in function `shutdown_com':
F:\msys64\src\vice\src/main.c:363: undefined reference to `__imp_CoUninitialize'
F:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: main.o: in function `main_program':
F:\msys64\src\vice\src/main.c:120: undefined reference to `__imp_CoInitializeEx'
F:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: main.o: in function `shutdown_com':
F:\msys64\src\vice\src/main.c:363: undefined reference to `__imp_CoUninitialize'
F:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: main.o: in function `main_program':
F:\msys64\src\vice\src/main.c:120: undefined reference to `__imp_CoInitializeEx'
F:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: main.o: in function `shutdown_com':
F:\msys64\src\vice\src/main.c:363: undefined reference to `__imp_CoUninitialize'
F:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: main.o: in function `main_program':
F:\msys64\src\vice\src/main.c:120: undefined reference to `__imp_CoInitializeEx'
collect2.exe: error: ld returned 1 exit status
make[3]: *** [Makefile:1907: x64dtv.exe] Error 1
collect2.exe: error: ld returned 1 exit status
make[3]: *** [Makefile:1899: x128.exe] Error 1
collect2.exe: error: ld returned 1 exit status
make[3]: *** [Makefile:1931: xscpu64.exe] Error 1
collect2.exe: error: ld returned 1 exit status
make[3]: *** [Makefile:1911: x64sc.exe] Error 1
make[2]: *** [Makefile:2028: all-recursive] Error 1
make[1]: *** [Makefile:1784: all] Error 2
make: *** [Makefile:512: all-recursive] Error 1
Error: executable files not found; do a "make" first.
make: *** [Makefile:1016: bindistzip] Error 1

MSYS2 is up-to-date as of June 22nd 2020.

Discussion

  • compyx

    compyx - 2020-06-22

    For some reason the linker needed an extra flag: -lole32, which we didn't need before.

    So: svn up, run ./autogen.sh, ./configure, make clean and finally make.
    Hopefully it's fixed now, at least with a fully updated msys2 on a WIn7 VM I managed to build an SDL2 bindist.

     
    • Greg King

      Greg King - 2020-06-23

      svn up, run ./autogen.sh, ./configure, make clean and finally make.

      Only

      svn up
      make
      

      is needed -- the Makefile will do the other things.

       
  • Retroplay

    Retroplay - 2020-06-22

    Yup, it compiles fine again.
    Thanks for the fix.

     
  • Querino

    Querino - 2020-06-22

    it might compile, but i get -2^31 FPS in the statusbar. ;)

     
  • gpz

    gpz - 2020-06-22

    isnt it great? :) its a known bug, dqh will fix it tonite, i guess =)

    closing this one

     
  • gpz

    gpz - 2020-06-22
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB