Hi,

When building current git version of MLT I get this build error:

g++ -I../../  -Wno-deprecated    -c -o kino_wrapper.o kino_wrapper.cc
g++ -I../../  -Wno-deprecated    -c -o avi.o avi.cc
g++ -I../../  -Wno-deprecated    -c -o error.o error.cc
g++ -I../../  -Wno-deprecated    -c -o filehandler.o filehandler.cc
g++ -I../../  -Wno-deprecated    -c -o riff.o riff.cc
g++ -shared -o ../libmltkino.so factory.o producer_kino.o
kino_wrapper.o avi.o error.o filehandler.o riff.o -L../../framework
-lmlt -lpthread -Wl,--no-undefined -Wl,--as-needed -lstdc++
/usr/bin/ld: kino_wrapper.o: relocation R_X86_64_32 against `.rodata'
can not be used when making a shared object; recompile with -fPIC
kino_wrapper.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [../libmltkino.so] Error 1
make[2]: Leaving directory `/home/janne/codes/github/mlt/src/modules/kino'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/janne/codes/github/mlt/src/modules'
make: *** [all] Error 1


Adding -fPIC to CFLAGS in .../modules/kino/Makefile fixed the problem.

Janne

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to