Skip to main content

problem building MLT on Karmic [SOLVED]

3 posts / 0 new
Last post
DavePhillips
Offline
Joined: 10/02/2009
Posts:
problem building MLT on Karmic [SOLVED]

I'm using the latest FFmpeg SVN sources and the latest git for MLT. Everything rolls along nicely until I hit this snag:

make[2]: Entering directory `/home/dlphilp/src/mlt/src/modules/avformat'
gcc -I../.. -Wall -fPIC -DPIC -O2 -pipe -fomit-frame-pointer -ffast-math -DUSE_MMX -DUSE_SSE -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -pthread -I/usr/include/libavformat -I/usr/include/libavcodec -I/usr/include/libswscale -DFILTERS -DCODECS -DSWSCALE -c -o factory.o factory.c
In file included from factory.c:35:
/usr/include/libavformat/avformat.h:136: error: expected declaration specifiers or ‘...’ before ‘AVPacket’
/usr/include/libavformat/avformat.h:215: error: expected declaration specifiers or ‘...’ before ‘AVPacket’
/usr/include/libavformat/avformat.h:221: error: expected declaration specifiers or ‘...’ before ‘AVPacket’
/usr/include/libavformat/avformat.h:222: error: expected declaration specifiers or ‘...’ before ‘AVPacket’
/usr/include/libavformat/avformat.h:266: error: expected declaration specifiers or ‘...’ before ‘AVPacket’
/usr/include/libavformat/avformat.h:445: error: expected specifier-qualifier-list before ‘AVPacket’
/usr/include/libavformat/avformat.h:564: error: expected specifier-qualifier-list before ‘AVPacket’
/usr/include/libavformat/avformat.h:667: error: expected specifier-qualifier-list before ‘AVPacket’
/usr/include/libavformat/avformat.h:744: error: expected declaration specifiers or ‘...’ before ‘AVPacket’
/usr/include/libavformat/avformat.h:756: error: expected declaration specifiers or ‘...’ before ‘AVPacket’
/usr/include/libavformat/avformat.h:852: error: expected declaration specifiers or ‘...’ before ‘AVPacket’
/usr/include/libavformat/avformat.h:873: error: expected declaration specifiers or ‘...’ before ‘AVPacket’
/usr/include/libavformat/avformat.h:1078: error: expected declaration specifiers or ‘...’ before ‘AVPacket’
/usr/include/libavformat/avformat.h:1095: error: expected declaration specifiers or ‘...’ before ‘AVPacket’
/usr/include/libavformat/avformat.h:1112: error: expected declaration specifiers or ‘...’ before ‘AVPacket’
/usr/include/libavformat/avformat.h:1113: error: expected declaration specifiers or ‘...’ before ‘AVPacket’
make[2]: *** [factory.o] Error 1
make[2]: Leaving directory `/home/dlphilp/src/mlt/src/modules/avformat'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/dlphilp/src/mlt/src/modules'
make: *** [all] Error 1

Any advice/suggestions for a fix ?

Best,

dp

0
Your rating: None
tidris769
Offline
Joined: 10/28/2009
Posts:
Re: problem building MLT on Karmic

My guess would be that the wrong version of header files are being used. Maybe you didn't install svn ffmpeg where the mlt make file expects it to be?

EDIT: Or maybe you have old headers still installed somewhere, and those are the ones the mlt make file is finding?

But, be aware that when I tried git mlt not long ago I had problems using it. Rendering to some formats I need would result in a crashed renderer, so I went back to mlt 0.4.6.

DavePhillips
Offline
Joined: 10/02/2009
Posts:
Re: problem building MLT on Karmic

Tidris, you were right, I have double installations of some of the libav* stuff, probably due to building/installing every NLE available for Linux. I added --avformat-svn to the MLT compile-time directives, it seems to be compiling fine now. I'll post a report if I run into further problems. Thanks !

Added: The build completed without troubles, so I installed it and opened Kdenlive, LiVES, Kino, OpenShot, and PiTiVi (in succession). Everything appears to be running fine, I'm a happy guy again.

Best,

dp