Error building MLT framework on Windows

末鹿安然 提交于 2019-12-06 06:21:54

Make sure you have pkg-config installed:

http://www.mltframework.org/pub/Shotcut/SetupWindowsDev/pkg-config.exe

You should be able to run pkg-config from the command line and get a good response. e.g:

# pkg-config --modversion libxml-2.0
2.9.1
# pkg-config --modversion QtGui
4.8.6

If you don't get a good response from pkg-config, you may need to set PKG_CONFIG_PATH to point at the .pc files for each of the dependencies.

Also, have a good look at the pkg-config documentation. There are some special considerations you may need to make for Windows:

http://linux.die.net/man/1/pkg-config

You also need to install dlfcn-win32. From the MLT Windows instructions:

  • Download dlfcn-win32
  • cd ~/src/dlfcn-win32-r19
  • ./configure --enable-shared make all install
  • To make this redistributable, copy /mingw/bin/libdl.dll to your build directory.

If you did follow those instructions, perhaps you need to find a place to put libdl.dll so that the linker finds it.

For the "-lbz2" error, it looks like you need to download, compile and install the bzip2 library to match the one that ffmpeg was compiled against: bzip2 1.0.6

Have a look at the README.txt file that came with the ffmpeg-shared package you downloaded. There is a long list of external libraries that ffmpeg was compiled against. bzip2 is the first one. You might need to download/compile/install more of those.

EDIT 3:

You should not specify both --avformat-shared and --avformat-static - they are mutually exclusive. You could try specifying neither of them. Or, try setting --avformat-shared=$HOME/build/

EDIT 4:

I think the reason that you are having trouble linking is because the Zeranoe builds no longer include pkg-config files (.pc).

http://ffmpeg.zeranoe.com/forum/viewtopic.php?f=7&t=532&hilit=pkg+config

The MLT configure script relies on pkg-config to set the correct linker flags. The MLT configure script could be extended to allow the user to specify the correct linker flags. Until that happens, I think that hacking config.mak (like you did) will be the only way to make it work on Windows.

I'm glad you got it to work. Cheers!

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!