Hi,
using mingw-w64 to build on windows.
I'm using latest version of mfx_dispatch. I launch a mingw32_shell, then I do:
autoreconf -i
configure --prefix=/usr/local
make -j4
make install
This will create a libmfx.a file and will correctly install the libmfx.pc file in /usr/local/lib/pkgconfig.
One anomaly I noted during the autoreconf -i step is the "libtoolize: error: Files" message:
autoreconf -i -v
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy
libtoolize: error: Files
autoreconf: running: /usr/bin/autoconf
autoreconf: configure.ac: not using Autoheader
autoreconf: running: automake --add-missing --copy --no-force
autoreconf: Leaving directory `.'
Now I try to build libav and the configure fails:
echo $PKG_CONFIG_PATH
/usr/local/lib/pkgconfig:/mingw64/lib/pkgconfig:/mingw64/share/pkgconfig
./configure --enable-libmfx
This is the relevant part of config.log:
check_pkg_config libmfx mfx/mfxvideo.h MFXInit
pkg-config --exists --print-errors libmfx
check_func_headers mfx/mfxvideo.h MFXInit -I/usr/local/include -L/usr/local/lib -lmfx -lstdc++
check_ld -I/usr/local/include -L/usr/local/lib -lmfx -lstdc++
check_cc -I/usr/local/include -L/usr/local/lib
BEGIN /tmp/ffconf.3jlH2t3w.c
1 #include <mfx/mfxvideo.h>
2 long check_MFXInit(void) { return (long) MFXInit; }
3 int main(void) { return 0; }
END /tmp/ffconf.3jlH2t3w.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -U__STRICT_ANSI__ -DPIC -std=c99 -
fomit-frame-pointer -pthread -I/us
r/local/include -L/usr/local/lib -c -o /tmp/ffconf.QLThWFhP.o /tmp/ffconf.3jlH2t3w.c
gcc -Wl,--nxcompat -Wl,--dynamicbase -Wl,--as-needed -I/usr/local/include -L/usr/local/lib -o
/tmp/ffconf.GhxQxLrE.exe /tmp/ffconf.Q
LThWFhP.o -lmfx -lstdc++ -lm -pthread -lpsapi -ladvapi32 -lshell32
/usr/local/lib/libmfx.a(libmfx_la-main.o): In function `MFXAutomaticCriticalSection':
/home/foo/mfx_dispatch/src/mfx_critical_section.h:55: undefined reference to
`MFX::mfxEnterCriticalSection(int volatile*)'
/home/foo/mfx_dispatch/src/mfx_critical_section.h:55:(.text+0x86): relocation truncated to fit:
R_X86_64_PC32 against undefined sym
bol `MFX::mfxEnterCriticalSection(int volatile*)'
/usr/local/lib/libmfx.a(libmfx_la-main.o): In function `MFXInitEx':
/home/foo/mfx_dispatch/src/main.cpp:196: undefined reference to
`MFX::MFXLibraryIterator::MFXLibraryIterator()'
/home/foo/mfx_dispatch/src/main.cpp:196:(.text+0xb2): relocation truncated to fit: R_X86_64_PC32
against undefined symbol `MFX::MFXLibraryIterator::MFXLibraryIterator()'
/home/foo/mfx_dispatch/src/main.cpp:196: undefined reference to
`MFX::MFXLibraryIterator::~MFXLibraryIterator()'
/home/foo/mfx_dispatch/src/main.cpp:196:(.text+0xf6): relocation truncated to fit: R_X86_64_PC32
against undefined symbol `MFX::MFXLibraryIterator::~MFXLibraryIterator()'
/usr/local/lib/libmfx.a(libmfx_la-main.o): In function `~MFXAutomaticCriticalSection':
/home/foo/mfx_dispatch/src/mfx_critical_section.h:61: undefined reference to
`MFX::mfxLeaveCriticalSection(int volatile*)'
/home/foo/mfx_dispatch/src/mfx_critical_section.h:61:(.text+0x141): relocation truncated to fit:
R_X86_64_PC32 against undefined symbol `MFX::mfxLeaveCriticalSection(int volatile*)'
/usr/local/lib/libmfx.a(libmfx_la-main.o): In function `MFXInitEx':
/home/foo/mfx_dispatch/src/main.cpp:252: undefined reference to `MFX::MFXLibraryIterator::Init
(eMfxImplType, int, unsigned int, int)'
/home/foo/mfx_dispatch/src/main.cpp:252:(.text+0x21d): relocation truncated to fit: R_X86_64_PC32
against undefined symbol `MFX::MFXLibraryIterator::Init(eMfxImplType, int, unsigned int, int)'
/home/foo/mfx_dispatch/src/main.cpp:275: undefined reference to
`MFX::MFXLibraryIterator::SelectDLLVersion(char*, unsigned long, eMfxImplType*, mfxVersion)'
/home/foo/mfx_dispatch/src/main.cpp:275:(.text+0x25f): relocation truncated to fit: R_X86_64_PC32
against undefined symbol `MFX::MFXLibraryIterator::SelectDLLVersion(char*, unsigned long,
eMfxImplType*, mfxVersion)'
/home/foo/mfx_dispatch/src/main.cpp:293: undefined reference to
`MFX::MFXLibraryIterator::GetSubKeyName(char*, unsigned long) const'
/home/foo/mfx_dispatch/src/main.cpp:293:(.text+0x2b5): relocation truncated to fit: R_X86_64_PC32
against undefined symbol `MFX::MFXLibraryIterator::GetSubKeyName(char*, unsigned long) const'
/home/foo/mfx_dispatch/src/main.cpp:321: undefined reference to `MFX::MFXLibraryIterator::Init
(eMfxImplType, int, unsigned int, int)'
/home/foo/mfx_dispatch/src/main.cpp:321:(.text+0x352): relocation truncated to fit: R_X86_64_PC32
against undefined symbol `MFX::MFXLibraryIterator::Init(eMfxImplType, int, unsigned int, int)'
/home/foo/mfx_dispatch/src/main.cpp:342: undefined reference to
`MFX::MFXLibraryIterator::SelectDLLVersion(char*, unsigned long, eMfxImplType*, mfxVersion)'
/home/foo/mfx_dispatch/src/main.cpp:342:(.text+0x39a): relocation truncated to fit: R_X86_64_PC32
against undefined symbol `MFX::MFXLibraryIterator::SelectDLLVersion(char*, unsigned long,
eMfxImplType*, mfxVersion)'
/home/foo/mfx_dispatch/src/main.cpp:390: undefined reference to
`MFX::mfx_get_default_audio_dll_name(char*, unsigned long, eMfxImplType)'
/home/foo/mfx_dispatch/src/main.cpp:390:(.text+0x4f2): relocation truncated to fit: R_X86_64_PC32
against undefined symbol `MFX::mfx_get_default_audio_dll_name(char*, unsigned long, eMfxImplType)'
/home/foo/mfx_dispatch/src/main.cpp:476: undefined reference to
`MFX::MFXDefaultPlugins::MFXDefaultPlugins(mfxVersion, MFX_DISP_HANDLE*, int)'
/home/foo/mfx_dispatch/src/main.cpp:476:(.text+0x62b): additional relocation overflows omitted from
the output
/home/foo/mfx_dispatch/src/main.cpp:482: undefined reference to
`MFX::MFXPluginsInHive::MFXPluginsInHive(int, char const*, mfxVersion)'
/home/foo/mfx_dispatch/src/main.cpp:490: undefined reference to
`MFX::MFXPluginsInHive::MFXPluginsInHive(int, char const*, mfxVersion)'
/home/foo/mfx_dispatch/src/main.cpp:396: undefined reference to `MFX::mfx_get_default_dll_name
(char*, unsigned long, eMfxImplType)'
/home/foo/mfx_dispatch/src/main.cpp:410: undefined reference to `MFX::SelectImplementationType
(unsigned int, int*, unsigned int*, unsigned int*)'
/home/foo/mfx_dispatch/src/main.cpp:264: undefined reference to
`MFX::MFXLibraryIterator::GetImplementationType()'
/home/foo/mfx_dispatch/src/main.cpp:331: undefined reference to
`MFX::MFXLibraryIterator::GetImplementationType()'
/usr/local/lib/libmfx.a(libmfx_la-main.o): In function `~MFXAutomaticCriticalSection':
/home/foo/mfx_dispatch/src/mfx_critical_section.h:61: undefined reference to
`MFX::mfxLeaveCriticalSection(int volatile*)'
/usr/local/lib/libmfx.a(libmfx_la-main.o): In function `MFXInitEx':
/home/foo/mfx_dispatch/src/main.cpp:196: undefined reference to
`MFX::MFXLibraryIterator::~MFXLibraryIterator()'
/home/foo/mfx_dispatch/src/main.cpp:494: undefined reference to
`MFX::MFXPluginsInFS::MFXPluginsInFS(mfxVersion)'
/usr/local/lib/libmfx.a(libmfx_la-main.o): In function `MFXAutomaticCriticalSection':
/home/foo/mfx_dispatch/src/mfx_critical_section.h:55: undefined reference to
`MFX::mfxEnterCriticalSection(int volatile*)'
/usr/local/lib/libmfx.a(libmfx_la-main.o): In function `~MFXAutomaticCriticalSection':
/home/foo/mfx_dispatch/src/mfx_critical_section.h:61: undefined reference to
`MFX::mfxLeaveCriticalSection(int volatile*)'
/home/foo/mfx_dispatch/src/mfx_critical_section.h:61: undefined reference to
`MFX::mfxLeaveCriticalSection(int volatile*)'
/usr/local/lib/libmfx.a(libmfx_la-mfx_dispatcher.o): In function
`MFX_DISP_HANDLE::UnLoadSelectedDLL()':
/home/foo/mfx_dispatch/src/mfx_dispatcher.cpp:354: undefined reference to `MFX::mfx_dll_free
(void*)'
/usr/local/lib/libmfx.a(libmfx_la-mfx_dispatcher.o): In function `MFX_DISP_HANDLE::LoadSelectedDLL
(char const*, eMfxImplType, int, int, mfxInitParam&)':
/home/foo/mfx_dispatch/src/mfx_dispatcher.cpp:154: undefined reference to `MFX::mfx_dll_load(char
const*)'
/home/foo/mfx_dispatch/src/mfx_dispatcher.cpp:173: undefined reference to `MFX::mfx_dll_get_addr
(void*, char const*)'
/home/foo/mfx_dispatch/src/mfx_dispatcher.cpp:202: undefined reference to `MFX::mfx_dll_get_addr
(void*, char const*)'
/usr/local/lib/libmfx.a(libmfx_la-mfx_load_plugin.o): In function `MFX::PluginModule::PluginModule
(MFX::PluginModule const&)':
/home/foo/mfx_dispatch/src/mfx_load_plugin.cpp:48: undefined reference to `MFX::mfx_dll_load(char
const*)'
/usr/local/lib/libmfx.a(libmfx_la-mfx_load_plugin.o): In function `MFX::PluginModule::Tidy()':
/home/foo/mfx_dispatch/src/mfx_load_plugin.cpp:103: undefined reference to `MFX::mfx_dll_free
(void*)'
/usr/local/lib/libmfx.a(libmfx_la-mfx_load_plugin.o): In function `MFX::PluginModule::operator=
(MFX::PluginModule const&)':
/home/foo/mfx_dispatch/src/mfx_load_plugin.cpp:59: undefined reference to `MFX::mfx_dll_load(char
const*)'
/usr/local/lib/libmfx.a(libmfx_la-mfx_load_plugin.o): In function `MFX::PluginModule::PluginModule
(char const*)':
/home/foo/mfx_dispatch/src/mfx_load_plugin.cpp:69: undefined reference to `MFX::mfx_dll_load(char
const*)'
/home/foo/mfx_dispatch/src/mfx_load_plugin.cpp:76: undefined reference to `MFX::mfx_dll_get_addr
(void*, char const*)'
/usr/local/lib/libmfx.a(libmfx_la-mfx_load_plugin.o): In function `MFX::PluginModule::Tidy()':
/home/foo/mfx_dispatch/src/mfx_load_plugin.cpp:103: undefined reference to `MFX::mfx_dll_free
(void*)'
/home/foo/mfx_dispatch/src/mfx_load_plugin.cpp:103: undefined reference to `MFX::mfx_dll_free
(void*)'
/home/foo/mfx_dispatch/src/mfx_load_plugin.cpp:103: undefined reference to `MFX::mfx_dll_free
(void*)'
/home/foo/mfx_dispatch/src/mfx_load_plugin.cpp:103: undefined reference to `MFX::mfx_dll_free
(void*)'
/home/foo/mfx_dispatch/src/mfx_load_plugin.cpp:103: undefined reference to `MFX::mfx_dll_free
(void*)'
/usr/local/lib/libmfx.a(libmfx_la-
mfx_load_plugin.o):/home/foo/mfx_dispatch/src/mfx_load_plugin.cpp:103: more undefined references to
`MFX::mfx_dll_free(void*)' follow
collect2: error: ld returned 1 exit status
ERROR: libmfx not found
Similar problem happens when configuring ffmpeg.
If I configure mfx_dispatch with --enable-shared I got some similar linking problems during compilation:
libtool: link: g++ -shared -nostdlib /usr/lib/gcc/x86_64-pc-msys/4.9.2/crtbeginS.o src/.libs/libmfx_la-main.o src/.libs/libmfx_la-mfx_critical_section.o src/.libs/libmfx_la-mfx_dispatcher.o src/.libs/libmfx_la-mfx_dispatcher_log.o src/.libs/libmfx_la-mfx_load_plugin.o src/.libs/libmfx_la-mfx_plugin_cfg_parser.o src/.libs/libmfx_la-mfx_function_table.o src/.libs/libmfx_la-mfx_dxva2_device.o src/.libs/libmfx_la-mfx_library_iterator.o src/.libs/libmfx_la-mfx_load_dll.o src/.libs/libmfx_la-mfx_win_reg_key.o src/.libs/libmfx_la-mfx_plugin_hive.o -L/usr/lib/gcc/x86_64-pc-msys/4.9.2 -L/usr/lib/gcc/x86_64-pc-msys/4.9.2/../../../../x86_64-pc-msys/lib/../lib -L/usr/lib/gcc/x86_64-pc-msys/4.9.2/../../../../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-pc-msys/4.9.2/../../../../x86_64-pc-msys/lib -L/usr/lib/gcc/x86_64-pc-msys/4.9.2/../../.. -lstdc++ -lgcc_s -lgcc -lmsys-2.0 -ladvapi32 -lshell32 -luser32 -lkernel32 -lgcc_s -lgcc /usr/lib/gcc/x86_64-pc-msys/4.9.2/crtend.o -g -O2 -o .libs/libmfx-0.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libmfx.dll.a
src/.libs/libmfx_la-main.o: In function `MFXAutomaticCriticalSection':
/home/foo/mfx_dispatch/src/mfx_critical_section.h:55: undefined reference to `MFX::mfxEnterCriticalSection(int volatile*)'
/home/foo/mfx_dispatch/src/mfx_critical_section.h:55:(.text+0x86): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `MFX::mfxEnterCriticalSection(int volatile*)'
src/.libs/libmfx_la-main.o: In function `MFXInitEx':
/home/foo/mfx_dispatch/src/main.cpp:196: undefined reference to `MFX::MFXLibraryIterator::MFXLibraryIterator()'
/home/foo/mfx_dispatch/src/main.cpp:196:(.text+0xb2): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `MFX::MFXLibraryIterator::MFXLibraryIterator()'
/home/foo/mfx_dispatch/src/main.cpp:196: undefined reference to `MFX::MFXLibraryIterator::~MFXLibraryIterator()'
/home/foo/mfx_dispatch/src/main.cpp:196:(.text+0xf6): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `MFX::MFXLibraryIterator::~MFXLibraryIterator()'
src/.libs/libmfx_la-main.o: In function `~MFXAutomaticCriticalSection':
/home/foo/mfx_dispatch/src/mfx_critical_section.h:61: undefined reference to `MFX::mfxLeaveCriticalSection(int volatile*)'
/home/foo/mfx_dispatch/src/mfx_critical_section.h:61:(.text+0x141): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `MFX::mfxLeaveCriticalSection(int volatile*)'
src/.libs/libmfx_la-main.o: In function `MFXInitEx':
/home/foo/mfx_dispatch/src/main.cpp:252: undefined reference to `MFX::MFXLibraryIterator::Init(eMfxImplType, int, unsigned int, int)'
/home/foo/mfx_dispatch/src/main.cpp:252:(.text+0x21d): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `MFX::MFXLibraryIterator::Init(eMfxImplType, int, unsigned int, int)'
/home/foo/mfx_dispatch/src/main.cpp:275: undefined reference to `MFX::MFXLibraryIterator::SelectDLLVersion(char*, unsigned long, eMfxImplType*, mfxVersion)'
/home/foo/mfx_dispatch/src/main.cpp:275:(.text+0x25f): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `MFX::MFXLibraryIterator::SelectDLLVersion(char*, unsigned long, eMfxImplType*, mfxVersion)'
/home/foo/mfx_dispatch/src/main.cpp:293: undefined reference to `MFX::MFXLibraryIterator::GetSubKeyName(char*, unsigned long) const'
/home/foo/mfx_dispatch/src/main.cpp:293:(.text+0x2b5): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `MFX::MFXLibraryIterator::GetSubKeyName(char*, unsigned long) const'
/home/foo/mfx_dispatch/src/main.cpp:321: undefined reference to `MFX::MFXLibraryIterator::Init(eMfxImplType, int, unsigned int, int)'
/home/foo/mfx_dispatch/src/main.cpp:321:(.text+0x352): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `MFX::MFXLibraryIterator::Init(eMfxImplType, int, unsigned int, int)'
/home/foo/mfx_dispatch/src/main.cpp:342: undefined reference to `MFX::MFXLibraryIterator::SelectDLLVersion(char*, unsigned long, eMfxImplType*, mfxVersion)'
/home/foo/mfx_dispatch/src/main.cpp:342:(.text+0x39a): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `MFX::MFXLibraryIterator::SelectDLLVersion(char*, unsigned long, eMfxImplType*, mfxVersion)'
/home/foo/mfx_dispatch/src/main.cpp:390: undefined reference to `MFX::mfx_get_default_audio_dll_name(char*, unsigned long, eMfxImplType)'
/home/foo/mfx_dispatch/src/main.cpp:390:(.text+0x4f2): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `MFX::mfx_get_default_audio_dll_name(char*, unsigned long, eMfxImplType)'
/home/foo/mfx_dispatch/src/main.cpp:476: undefined reference to `MFX::MFXDefaultPlugins::MFXDefaultPlugins(mfxVersion, MFX_DISP_HANDLE*, int)'
/home/foo/mfx_dispatch/src/main.cpp:476:(.text+0x62b): additional relocation overflows omitted from the output
/home/foo/mfx_dispatch/src/main.cpp:482: undefined reference to `MFX::MFXPluginsInHive::MFXPluginsInHive(int, char const*, mfxVersion)'
/home/foo/mfx_dispatch/src/main.cpp:490: undefined reference to `MFX::MFXPluginsInHive::MFXPluginsInHive(int, char const*, mfxVersion)'
/home/foo/mfx_dispatch/src/main.cpp:396: undefined reference to `MFX::mfx_get_default_dll_name(char*, unsigned long, eMfxImplType)'
/home/foo/mfx_dispatch/src/main.cpp:410: undefined reference to `MFX::SelectImplementationType(unsigned int, int*, unsigned int*, unsigned int*)'
/home/foo/mfx_dispatch/src/main.cpp:264: undefined reference to `MFX::MFXLibraryIterator::GetImplementationType()'
/home/foo/mfx_dispatch/src/main.cpp:331: undefined reference to `MFX::MFXLibraryIterator::GetImplementationType()'
src/.libs/libmfx_la-main.o: In function `~MFXAutomaticCriticalSection':
/home/foo/mfx_dispatch/src/mfx_critical_section.h:61: undefined reference to `MFX::mfxLeaveCriticalSection(int volatile*)'
src/.libs/libmfx_la-main.o: In function `MFXInitEx':
/home/foo/mfx_dispatch/src/main.cpp:196: undefined reference to `MFX::MFXLibraryIterator::~MFXLibraryIterator()'
/home/foo/mfx_dispatch/src/main.cpp:494: undefined reference to `MFX::MFXPluginsInFS::MFXPluginsInFS(mfxVersion)'
src/.libs/libmfx_la-main.o: In function `MFXAutomaticCriticalSection':
/home/foo/mfx_dispatch/src/mfx_critical_section.h:55: undefined reference to `MFX::mfxEnterCriticalSection(int volatile*)'
src/.libs/libmfx_la-main.o: In function `~MFXAutomaticCriticalSection':
/home/foo/mfx_dispatch/src/mfx_critical_section.h:61: undefined reference to `MFX::mfxLeaveCriticalSection(int volatile*)'
/home/foo/mfx_dispatch/src/mfx_critical_section.h:61: undefined reference to `MFX::mfxLeaveCriticalSection(int volatile*)'
src/.libs/libmfx_la-mfx_dispatcher.o: In function `MFX_DISP_HANDLE::UnLoadSelectedDLL()':
/home/foo/mfx_dispatch/src/mfx_dispatcher.cpp:354: undefined reference to `MFX::mfx_dll_free(void*)'
src/.libs/libmfx_la-mfx_dispatcher.o: In function `MFX_DISP_HANDLE::LoadSelectedDLL(char const*, eMfxImplType, int, int, mfxInitParam&)':
/home/foo/mfx_dispatch/src/mfx_dispatcher.cpp:154: undefined reference to `MFX::mfx_dll_load(char const*)'
/home/foo/mfx_dispatch/src/mfx_dispatcher.cpp:173: undefined reference to `MFX::mfx_dll_get_addr(void*, char const*)'
/home/foo/mfx_dispatch/src/mfx_dispatcher.cpp:202: undefined reference to `MFX::mfx_dll_get_addr(void*, char const*)'
src/.libs/libmfx_la-mfx_load_plugin.o: In function `MFX::PluginModule::PluginModule(MFX::PluginModule const&)':
/home/foo/mfx_dispatch/src/mfx_load_plugin.cpp:48: undefined reference to `MFX::mfx_dll_load(char const*)'
src/.libs/libmfx_la-mfx_load_plugin.o: In function `MFX::PluginModule::Tidy()':
/home/foo/mfx_dispatch/src/mfx_load_plugin.cpp:103: undefined reference to `MFX::mfx_dll_free(void*)'
src/.libs/libmfx_la-mfx_load_plugin.o: In function `MFX::PluginModule::operator=(MFX::PluginModule const&)':
/home/foo/mfx_dispatch/src/mfx_load_plugin.cpp:59: undefined reference to `MFX::mfx_dll_load(char const*)'
src/.libs/libmfx_la-mfx_load_plugin.o: In function `MFX::PluginModule::PluginModule(char const*)':
/home/foo/mfx_dispatch/src/mfx_load_plugin.cpp:69: undefined reference to `MFX::mfx_dll_load(char const*)'
/home/foo/mfx_dispatch/src/mfx_load_plugin.cpp:76: undefined reference to `MFX::mfx_dll_get_addr(void*, char const*)'
src/.libs/libmfx_la-mfx_load_plugin.o: In function `MFX::PluginModule::Tidy()':
/home/foo/mfx_dispatch/src/mfx_load_plugin.cpp:103: undefined reference to `MFX::mfx_dll_free(void*)'
/home/foo/mfx_dispatch/src/mfx_load_plugin.cpp:103: undefined reference to `MFX::mfx_dll_free(void*)'
/home/foo/mfx_dispatch/src/mfx_load_plugin.cpp:103: undefined reference to `MFX::mfx_dll_free(void*)'
/home/foo/mfx_dispatch/src/mfx_load_plugin.cpp:103: undefined reference to `MFX::mfx_dll_free(void*)'
/home/foo/mfx_dispatch/src/mfx_load_plugin.cpp:103: undefined reference to `MFX::mfx_dll_free(void*)'
src/.libs/libmfx_la-mfx_load_plugin.o:/home/foo/mfx_dispatch/src/mfx_load_plugin.cpp:103: more undefined references to `MFX::mfx_dll_free(void*)' follow
collect2: error: ld returned 1 exit status
Makefile:582: recipe for target 'libmfx.la' failed
make: *** [libmfx.la] Error 1
My guess is that either the build system is somehow broken, or I'm doing some wrong assumptions about the compilation flags and/or the build environment (for example I'm using the mingw-w64 mingw32 shell because otherwise the libav configure will fail with "Unknown OS 'mingw64_nt-6.3'"). I tried several other combinations with no success so far.
In the latter case, the build/environment assumptions should be specified better.
Thanks for your time.