swig -c++ -I../../mlt++ -I../.. -csharp -dllimport libmltsharp -outdir src_swig -namespace Mlt mlt.i || exit $?
# Compile the wrapper
- g++ -D_GNU_SOURCE -c -rdynamic -pthread -I../.. mlt_wrap.cxx -fPIC || exit $?
+ g++ -fPIC -D_GNU_SOURCE -c -rdynamic -pthread -I../.. mlt_wrap.cxx || exit $?
# Create the module
- gcc -shared mlt_wrap.o -L../../mlt++ -lmlt++ -o libmltsharp.so || exit $?
+ g++ -shared mlt_wrap.o -L../../mlt++ -lmlt++ -o libmltsharp.so || exit $?
# Compile the library assembly
mcs -out:mlt-sharp.dll -target:library src_swig/*.cs
swig -c++ -I../../mlt++ -I../.. -java -outdir src_swig/org/mltframework -package org.mltframework mlt.i || exit $?
# Compile the wrapper
- g++ -D_GNU_SOURCE -c -rdynamic -pthread -I../.. mlt_wrap.cxx $JAVA_INCLUDE || exit $?
+ g++ -fPIC -D_GNU_SOURCE -c -rdynamic -pthread -I../.. mlt_wrap.cxx $JAVA_INCLUDE || exit $?
# Create the module
- gcc -shared mlt_wrap.o -L../../mlt++ -lmlt++ -o libmlt_java.so || exit $?
+ g++ -shared mlt_wrap.o -L../../mlt++ -lmlt++ -o libmlt_java.so || exit $?
# Compile the test
javac `find src_swig -name '*.java'` || exit $?
g++ -fPIC -DPIC -D_GNU_SOURCE -c -rdynamic -pthread -I../.. mlt_wrap.cxx || exit $?
# Create the module
- gcc -shared mlt_wrap.o -L../../mlt++ -lmlt++ -o mlt.so || exit $?
+ g++ -shared mlt_wrap.o -L../../mlt++ -lmlt++ -o mlt.so || exit $?
else
echo Lua not installed.
exit 1
system( "swig -c++ -I../../mlt++ -I../.. -perl5 mlt.i" );
WriteMakefile(
'NAME' => 'mlt',
- 'CC' => '${CXX} -I../..',
+ 'CC' => '${CXX} -fPIC -I../..',
'OPTIMIZE' => '-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386',
'LIBS' => ['-L../../mlt++ -lmlt++'],
'OBJECT' => 'mlt_wrap.o',
fi
perl Makefile.PL || exit 1
+make
ln -sf ../mlt.i
swig -c++ -I../../mlt++ -I../.. -php5 -noproxy mlt.i
g++ -fPIC -DPIC -D_GNU_SOURCE -c -rdynamic -pthread -I../.. `php-config --includes` mlt_wrap.cpp
-gcc -shared mlt_wrap.o -L../../mlt++ -lmlt++ -o mlt.so || exit $?
+g++ -shared mlt_wrap.o -L../../mlt++ -lmlt++ -o mlt.so || exit $?
g++ -fPIC -D_GNU_SOURCE -c -rdynamic -pthread -I../.. -I$PYTHON_INCLUDE mlt_wrap.cxx || exit $?
# Create the module
- gcc -shared mlt_wrap.o -L../../mlt++ -lmlt++ -o _mlt.so || exit $?
+ g++ -shared mlt_wrap.o -L../../mlt++ -lmlt++ -o _mlt.so || exit $?
else
echo Python not installed.
exit 1
$CFLAGS += " -I../.."
$LDFLAGS += " -L../../mlt++ -lmlt++"
create_makefile('mlt')
+system( "make" )
swig -c++ -I../../mlt++ -I../.. -tcl mlt.i || exit 1
# Compile the wrapper
- g++ -D_GNU_SOURCE -c -rdynamic -pthread -I../.. mlt_wrap.cxx || exit 1
+ g++ -fPIC -D_GNU_SOURCE -c -rdynamic -pthread -I../.. mlt_wrap.cxx || exit 1
# Create the module
- gcc -shared mlt_wrap.o -L../../mlt++ -lmlt++ -o mlt.so || exit 1
+ g++ -shared mlt_wrap.o -L../../mlt++ -lmlt++ -o mlt.so || exit 1
else
echo "Unable to locate tclsh."
exit 1
fi
-