Discussion:
MinGW link error with mlt_slices_*_normal
(too old to reply)
Vincent Pinon
2017-03-27 13:18:23 UTC
Permalink
Raw Message
Hello again,

I solved my problem adding -Wl,--out-implib,libmlt.dll.a to the link
line in src/framework/Makefile
... but I still don't understand why I needed this :\

BR,

Vincent
Vincent Pinon
2017-03-27 07:07:49 UTC
Permalink
Raw Message
Hello,

I'm building Kdenlive for Windows (from Linux using MXE);
MLT 6.4.1 builds but using latest git code I get:

x86_64-w64-mingw32.shared.posix-gcc -shared -o ../libmltfrei0r.dll factory.o producer_frei0r.o filter_frei0r.o transition_frei0r.o frei0r_helper.o -L/home/loul/devel/mxe/usr/x86_6
4-w64-mingw32.shared.posix/lib -Wl,--no-undefined -Wl,--as-needed -Wl,--no-undefined -Wl,--as-needed -L../../framework -lmlt -Wl,--no-undefined -Wl,--as-needed -lm -ldl
frei0r_helper.o: In function `process_frei0r_item':
/home/loul/devel/mlt/src/modules/frei0r/frei0r_helper.c:106: undefined reference to `mlt_slices_count_normal'
/home/loul/devel/mlt/src/modules/frei0r/frei0r_helper.c:241: undefined reference to `mlt_slices_run_normal'
/home/loul/devel/mlt/src/modules/frei0r/frei0r_helper.c:226: undefined reference to `mlt_slices_run_normal'
/home/loul/devel/mlt/src/modules/frei0r/frei0r_helper.c:211: undefined reference to `mlt_slices_run_normal'
collect2: error: ld returned 1 exit status

Surprising as "x86_64-w64-mingw32.shared.posix-nm libmlt.dll" shows these functions, and they are listed in libmlt.def...

I've searched quite some time & tried various link options but without success

Any idea of what's going wrong?

Thanks for your help!

Vincent
Vincent Pinon
2017-03-28 04:39:19 UTC
Permalink
Raw Message
Sorry for the stupid noise:
I had a LDFLAGS pointing to an old libmlt.dll (so without the recent functions) picked before the built one.
I'll try to open my eyes before disturbing the world next time!

Have a nice day :)

Vincent

Loading...