[SOLVED] Make error with MLT


I am trying to compile MLT in order to install KDENLIVE.
I have installed everything according to http://kdenlive.org/compile.
I have a error during make with MLT...

make[2]: entrant dans le répertoire « /home/juolive/Vidéos/mlt-0.3.2/src/modules/avformat »
cc -Wall -fPIC -DPIC   -O3 -pipe -fomit-frame-pointer -ffast-math -DUSE_MMX -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -pthread -I/usr/include/ffmpeg    -I../.. -DSWSCALE   -c -o factory.o factory.c
cc -Wall -fPIC -DPIC   -O3 -pipe -fomit-frame-pointer -ffast-math -DUSE_MMX -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -pthread -I/usr/include/ffmpeg    -I../.. -DSWSCALE   -c -o producer_avformat.o producer_avformat.c
cc -Wall -fPIC -DPIC   -O3 -pipe -fomit-frame-pointer -ffast-math -DUSE_MMX -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -pthread -I/usr/include/ffmpeg    -I../.. -DSWSCALE   -c -o consumer_avformat.o consumer_avformat.c
cc -Wall -fPIC -DPIC   -O3 -pipe -fomit-frame-pointer -ffast-math -DUSE_MMX -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -pthread -I/usr/include/ffmpeg    -I../.. -DSWSCALE   -c -o filter_avcolour_space.o filter_avcolour_space.c
cc -Wall -fPIC -DPIC   -O3 -pipe -fomit-frame-pointer -ffast-math -DUSE_MMX -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -pthread -I/usr/include/ffmpeg    -I../.. -DSWSCALE   -c -o filter_avresample.o filter_avresample.c
cc -Wall -fPIC -DPIC   -O3 -pipe -fomit-frame-pointer -ffast-math -DUSE_MMX -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -pthread -I/usr/include/ffmpeg    -I../.. -DSWSCALE   -c -o filter_avdeinterlace.o filter_avdeinterlace.c
cc -shared -o ../libmltavformat.so factory.o producer_avformat.o consumer_avformat.o filter_avcolour_space.o filter_avresample.o filter_avdeinterlace.o -lavformat -lavcodec -lraw1394 -ltheora -lvorbisenc -lavutil -lvorbis -lm -logg   -L../../framework -lavformat -lavcodec -lavutil -lavdevice  -lmlt -lswscale
/usr/bin/ld: cannot find -lavdevice
collect2: ld a retourné 1 code d'état d'exécution
make[2]: *** [../libmltavformat.so] Erreur 1
make[2]: quittant le répertoire « /home/juolive/Vidéos/mlt-0.3.2/src/modules/avformat »
make[1]: *** [all] Erreur 1
make[1]: quittant le répertoire « /home/juolive/Vidéos/mlt-0.3.2/src/modules »
make: *** [all] Erreur 1

another information : I do have libavdevice installed :

dpkg -l | grep libavdevice
ii  libavdevice52                              3:0.svn20080206-12ubuntu3                   ffmpeg device handling library

any idea ?

[Edit] : forgot to mention I am running Kubuntu 8.10 [/Edit]


Your not alone, the same happens to me! Hope somebody can help! :?

Hi again,

I managed to correct it. I noticed that for other libs (libavformat, libavcodec, etc.....) in /usr/lib, there were 2 links : e.g. : libavformat.so and libavformat.so.52, but for libavdevice, only one link was ther (libavdevice.so.52), so I created the other one...

We need to open a terminal and

cd /usr/lib
sudo ln -s libavdevice.so.52.0.0 libavdevice.so
sudo ldconfig

I don't have the error anymore.