Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
15th August 2019, 01:54 | #21 | Link |
Registered User
Join Date: Jul 2018
Posts: 450
|
Yes, Win32threads.
About ffms2 issue linking EXE file I'm using this patch (line #1348 + #1349) About ffms2 integration in x264 this works fine --extra-ldflags="$(PKG_CONFIG_PATH=/usr/i686-w64-mingw32/lib/pkgconfig pkg-config --libs --static ffms2)". Just tested with 8.3.1 x86 from that gcc-mcf link. |
15th August 2019, 20:22 | #22 | Link |
Registered User
Join Date: Oct 2002
Location: France
Posts: 2,316
|
My building script for ffms2 is (setting part of _cf, etc... skipped) :
Code:
PKG_CONFIG_PATH="${_dir}/lib/pkgconfig" \ CFLAGS="${_cf}" \ CXXFLAGS="${_cxx}" \ LDFLAGS="${_ld}" \ ../configure --prefix=${_dir} --build="i686-w64-mingw32" --host=${_host} \ --enable-static --disable-shared make -j1 make install EDIT : I think i just can patch ffms2.pc.in... I'll test. EDIT 2 : Thanks to StvG and Wolfberry, i've been able to fix the exe error link and the integration, but still needed a little patch for this.
__________________
My github. Last edited by jpsdr; 15th August 2019 at 20:55. |
16th August 2019, 23:34 | #23 | Link |
Registered User
Join Date: Oct 2002
Location: France
Posts: 2,316
|
@StvG
What do i have to add in the compile (or linker) command line to avoid the message telling me that mcfgthreads-12.dll is missing ? I build everything in static, but clearly it's not enough...
__________________
My github. |
16th August 2019, 23:44 | #24 | Link | |
Helenium(Easter)
Join Date: Aug 2017
Location: Hsinchu, Taiwan
Posts: 99
|
Did you read https://github.com/lhmouse/mcfgthrea...ribution-notes ?
Quote:
__________________
Monochrome Anomaly |
|
17th August 2019, 01:40 | #26 | Link |
Registered User
Join Date: Oct 2002
Location: France
Posts: 2,316
|
Thanks, these GCC work, but it seems that with win32 thread model GCC, ffms2 needs Komisar's not so trivial patch (at least for me), including putting back numthreads files.
__________________
My github. |
17th August 2019, 03:00 | #27 | Link |
Registered User
Join Date: Jul 2018
Posts: 450
|
You can use this C++11 implementation https://github.com/Cwc-Test/mingw-std-threads instead that Komisar's patch.
Copy all mingw.*.h files to /mingw32/include/c++/**/ ** - GCC version Then from ffms2 root folder: sed -i 's/#include <mutex>/#include "mingw.mutex.h"/g' src/core/ffms.cpp sed -i 's/#include <thread>/#include "mingw.thread.h"/g' src/core/videosource.cpp Last edited by StvG; 17th August 2019 at 09:35. |
17th August 2019, 11:25 | #28 | Link |
Registered User
Join Date: Oct 2002
Location: France
Posts: 2,316
|
Thanks, i'll test, it's seem "cleaner" than Komisar's patch.
EDIT Thanks, this works fine. I prefer this where there is no need to tweak the ffms2 code, just the headers.
__________________
My github. Last edited by jpsdr; 17th August 2019 at 12:32. |
|
|