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.49k stars 257 forks source link

Looking for MediaInfo.dll #2632

Closed hydra3333 closed 2 months ago

hydra3333 commented 2 months ago

Hi, I see MediaInfo.exe is built, and libMediaInfo is referred to in the compile .sh.

I cannot seem to locate MediaInfo.DLL (or libMediaInfo.DLL if that is what it is called) ... advice would be welcomed.

(I wish to make use of code derived from the examples, eg "build\libmediainfo-git\Source\Example\HowToUse_Dll3.py")

Cheers

1480c1 commented 2 months ago

I don't think we ever compile it shared, only static.

If you need a dll, you can run

. /build/media-suite_deps.sh
. /build/media-suite_helper.sh
do_vcs "$SOURCE_REPO_LIBMEDIAINFO" libmediainfo
CFLAGS+=" $($PKG_CONFIG --cflags libzen)" \
    LDFLAGS+=" $($PKG_CONFIG --cflags --libs libzen)"
    do_cmake Project/CMake -DBUILD_ZLIB=off -DBUILD_ZENLIB=off -DBUILD_SHARED_LIBS=ON 
do_ninja

I do not know where it will generate the .dll since I haven't run the commands, but you can try to find it using find . -name "*.dll

1480c1 commented 2 months ago

Closing as an off-topic issue, but you can still use it.