Skip to main content

mlt SoX 14.1.0 support broken (FIXED)

8 posts / 0 new
Last post
jmpoure
Offline
Joined: 10/20/2008
Posts:
mlt SoX 14.1.0 support broken (FIXED)

Just a short note that SoX 14.1.0 support is broken in MLT.
Configuration script cannot find sox libraries.

I tried to modify ./configure script without real success so far.

Quote:
Index: src/modules/sox/configure
===================================================================
--- src/modules/sox/configure (révision 1178)
+++ src/modules/sox/configure (copie de travail)
@@ -31,11 +31,22 @@
echo "CFLAGS += $(libst-config --cflags) -I../../" > config.mak
echo "LDFLAGS += -lst $(libst-config --libs) $libsndfile $libsamplerate" >> config.mak
else
- pkg-config sox
- if [ $? -eq 0 ]
- then
+ pkg-config sox > /dev/null
+ if [ $? -eq 0 ]
+ then
+ # determine if we need libsndfile
+ $LDD $(which sox) | grep libsndfile > /dev/null
+ [ $? -eq 0 ] && libsndfile="-lsndfile"
+
+ # determine if we need libsamplerate
+ sox=$(which sox)
+ $LDD "$sox" | grep libsamplerate > /dev/null
+ [ $? -eq 0 ] && libsamplerate="-lsamplerate"
+
+
echo "CFLAGS += $(pkg-config --cflags sox)" > config.mak
- echo "LDFLAGS += $(pkg-config --libs sox)" > config.mak
+ echo "LDFLAGS += $(pkg-config --libs sox) $libsamplerate $libsamplerate" > config.mak
+ disable_sox=0
else
sox --version 2> /dev/null | grep 'v14.' > /dev/null
disable_sox=$?

0
Your rating: None
jmpoure
Offline
Joined: 10/20/2008
Posts:
Re: mlt SoX 14.1.0 support broken (looking for patch)

Now MLT compilation beaks with this error:

Quote:
make[1]: quittant le répertoire « /home/jmpoure/logiciels/mlt/mlt/trunk/mlt/src/albino »
filter_sox.c:261:43: erreur: opérateur binaire manquant avant l'élément lexical « ( »
filter_sox.c:268:43: erreur: opérateur binaire manquant avant l'élément lexical « ( »
filter_sox.c:374:43: erreur: opérateur binaire manquant avant l'élément lexical « ( »
make[2]: *** [depend] Erreur 1
make[1]: *** [depend] Erreur 1
make: *** [all] Erreur 1

Looking at the code there seems to be too many IFDEF on sox. There should only be support for latest version.
Without sox, kdenlive does not start.

ddennedy
ddennedy's picture
Offline
Joined: 06/26/2007
Posts:
Re: mlt SoX 14.1.0 support broken (looking for patch)

Bug is already being tracked:

http://sourceforge.net/tracker/index.ph ... tid=613414

jmpoure
Offline
Joined: 10/20/2008
Posts:
Re: mlt SoX 14.1.0 support broken (looking for patch)

Thanks a lot. Fixed!

bearing
Offline
Joined: 11/13/2008
Posts:
Re: mlt SoX 14.1.0 support broken (FIXED)

EDIT:
I installed libsox-dev which solved the problem

I'm new to this. How do I apply the patch?

Will the patch solve this error?

filter_sox.c:42:43: error: missing binary operator before token "("
filter_sox.c:78:43: error: missing binary operator before token "("
filter_sox.c:104:43: error: missing binary operator before token "("
filter_sox.c:132:43: error: missing binary operator before token "("
filter_sox.c:249:43: error: missing binary operator before token "("
filter_sox.c:299:43: error: missing binary operator before token "("
filter_sox.c:306:43: error: missing binary operator before token "("
filter_sox.c:412:43: error: missing binary operator before token "("
cinephiliac
cinephiliac's picture
Offline
Joined: 10/05/2008
Posts:
Re: mlt SoX 14.1.0 support broken (FIXED)

Are you on *buntu? There were some known issues with them and SOX. No doubt our team of hard working team of code monkeys (having finished writing the complete works of Shakespeare) will be unleashed upon it soon. :D

bearing
Offline
Joined: 11/13/2008
Posts:
Re: mlt SoX 14.1.0 support broken (FIXED)

=)

Yes, I'm on kubuntu. This error was my fault, mostly. The compile-instructions said that you have to install sox and sox-dev. There was no package called sox-dev so I skipped it. Later found out that it's called libsox-dev.

cinephiliac
cinephiliac's picture
Offline
Joined: 10/05/2008
Posts:
Re: mlt SoX 14.1.0 support broken (FIXED)

Ah, good to know...

Thanks for updating us!