This forum has been archived. All content is frozen. Please use KDE Discuss instead.

mlt SoX 14.1.0 support broken (FIXED)

Tags: None
(comma "," separated)
jmpoure_drupal
Registered Member
Posts
735
Karma
0

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=$?

jmpoure_drupal
Registered Member
Posts
735
Karma
0

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
Registered Member
Posts
1315
Karma
1
jmpoure_drupal
Registered Member
Posts
735
Karma
0

Thanks a lot. Fixed!

Bugsbane
Registered Member
Posts
107
Karma
0

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

Bugsbane
Registered Member
Posts
107
Karma
0

Ah, good to know...



Thanks for updating us!



Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft