m-ab-s / media-autobuild_suite

This Windows Batchscript helps setup a Mingw-w64 compiler environment for building ffmpeg and other media tools under Windows.
GNU General Public License v3.0
1.54k stars 267 forks source link

ffms2: undefined reference to `WinMain' #2428

Closed hydra3333 closed 1 year ago

hydra3333 commented 1 year ago

Hello, not sure if this belongs here. Here it is anyway :) Cheers

┌ ffms2 git  .......................................... [Recently updated]
0001-ffmsindex-fix-linking-issues.patch
        Patch could not be applied with `git am`. Continuing without patching.
├ Running autoreconf...
├ Running configure...
├ Running make...
Likely error (tail of the failed operation logfile):
  CXXLD    src/index/ffmsindex.exe
C:/MABS/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/MABS/msys64/mingw64/lib/../lib/libmingw32.a(lib64_libmingw32_a-crtexewin.o): in function `main':
C:/M/B/src/mingw-w64/mingw-w64-crt/crt/crtexewin.c:70: undefined reference to `WinMain'
collect2.exe: error: ld returned 1 exit status
make: *** [Makefile:665: src/index/ffmsindex.exe] Error 1
  CXXLD    src/index/ffmsindex.exe
C:/MABS/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/MABS/msys64/mingw64/lib/../lib/libmingw32.a(lib64_libmingw32_a-crtexewin.o): in function `main':
C:/M/B/src/mingw-w64/mingw-w64-crt/crt/crtexewin.c:70: undefined reference to `WinMain'
collect2.exe: error: ld returned 1 exit status
make: *** [Makefile:665: src/index/ffmsindex.exe] Error 1
make failed. Check C:/MABS/build/ffms2-git/build-64bit/ab-suite.make.log
This is required for other packages, so this script will exit.
  Creating diagnostics file...

Attach C:\MABS\build\logs.zip to the GitHub issue.
Make sure the suite is up-to-date before reporting an issue. It might've been fixed already.

logs.zip

Biswa96 commented 1 year ago

Please try to rebuild the project. It should pull the latest patch file. The ffms2 patch file was rebased in this commit https://github.com/m-ab-s/mabs-patches/commit/9b38a14f1d2b65677db796653ef1ed65d78820fe

Selur commented 1 year ago

seems to work now

hydra3333 commented 1 year ago

Thanks, yes.

Biswa96 commented 1 year ago

I guess, the issue can be closed now.