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

MLT build error

Tags: None
(comma "," separated)
wck
Registered Member
Posts
5
Karma
0

MLT build error

Sat Feb 04, 2012 9:27 pm
Hello,

I'm building MLT following the directions here: http://kdenlive.org/user-manual/downloading-and-installing-kdenlive/installing-source/installing-mlt-rendering-engine

When I get to the step where I execute "make -j3" I get the following error.

cc -shared -o ../libmltavformat.so factory.o filter_avcolour_space.o filter_avresample.o filter_avdeinterlace.o filter_swscale.o producer_avformat.o consumer_avformat.o -L../../framework -lmlt -lpthread -Wl,--no-undefined -Wl,--as-needed -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -lavformat -lavcodec -lavutil -lswscale -lavdevice
/usr/bin/ld: /usr/local/lib/libavformat.a(allformats.o): relocation R_X86_64_32 against `ff_a64_muxer' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libavformat.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [../libmltavformat.so] Error 1
make[2]: Leaving directory `/home/homology/mlt/src/modules/avformat'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/homology/mlt/src/modules'
make: *** [all] Error 1

Similar problems when I do "sudo make install"

I'm running Ubuntu 10.04 LTS on a Lenovo laptop with an Intel core i7.

Any ideas on what to do?

FishB8
Registered Member
Posts
53
Karma
0

Re: MLT build error

Sun Feb 05, 2012 6:47 am
Add "-fPIC" to your CFLAGS/CXXFLAGS
wck
Registered Member
Posts
5
Karma
0

Re: MLT build error

Sun Feb 05, 2012 6:26 pm
OK. So how do I do that?
FishB8
Registered Member
Posts
53
Karma
0

Re: MLT build error

Sun Feb 05, 2012 9:25 pm
Either export the environmental variable, or specify it at the command line when running configure.

example:

./configure --prefix=/usr --enable-gpl CFLAGS="-fPIC" CXXFLAGS="-fPIC"
wck
Registered Member
Posts
5
Karma
0

Re: MLT build error

Tue Feb 07, 2012 3:28 am
I tried doing this:

export CFLAGS="-fPIC"
export CXXFLAGS="fPIC"
./configure --prefix=/usr --enable-gpl
make clean
make -j3

and I get the same error I listed above:
/usr/bin/ld: /usr/local/lib/libavformat.a(allformats.o): relocation R_X86_64_32 against `ff_a64_muxer' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libavformat.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [../libmltavformat.so] Error 1
make[2]: Leaving directory `/home/homology/mlt/src/modules/avformat'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/homology/mlt/src/modules'
make: *** [all] Error 1


The same thing happens if I do this instead:
./configure --prefix=/usr --enable-gpl CFLAGS="-fPIC" CXXFLAGS="-fPIC"
make clean
make -j3

Is there another way to recompile with the -fPIC option?
FishB8
Registered Member
Posts
53
Karma
0

Re: MLT build error

Tue Feb 07, 2012 4:43 am

Sorry, I didn't read the output very closely. I think the suggestion to add fPIC to the build flags is in reference to building ffmpeg (libavformat) rather than mlt.
wck
Registered Member
Posts
5
Karma
0

Re: MLT build error

Fri Feb 17, 2012 2:59 am
Sorry for the long pause in posting.

I uninstalled everything, then set the CFLAGS as above for the entire install process, including building ffmpeg, and I still have the same results.

Any ideas on what to try now?
j-b-m
Registered Member
Posts
804
Karma
1

Re: MLT build error

Fri Feb 17, 2012 8:26 am
Did you use the recommended configure options to compile ffmpeg:

http://kdenlive.org/user-manual/downloading-and-installing-kdenlive/installing-source/installing-ffmpeg
wck
Registered Member
Posts
5
Karma
0

Re: MLT build error

Sat Feb 18, 2012 10:10 pm
I think I did. I will try everything again and make sure and post the results.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], rockscient