[Ekiga-list] G729 codec

PawelCarqowski paulino90 at tenbit.pl
Tue Nov 6 20:18:20 UTC 2007


Jure Petrovic writes:
 > I know that encoding worked for me with IPP 5.1...
 > If they changed the interface in 5.2, I will rewrite this
 > eventually...:)
 > 

Hmmm, so maybe this is my build.sh script.
Did You use anything similar while compiling myg729 against IPP 5.1?:

## Sunday, October 28 2007: modified to use ipp 5.2 version.
echo "Cleaning up..."
rm -rf ./bin/*

echo "Starting g729 build process..."

IPP_DIR=/opt/intel/ipp/5.2/ia32
##${IPP_PX_H}="-include ${IPP_DIR}/tools/staticlib/ipp_px.h"
IPP_PX_H=""

echo "Compiling util_d.c..."
gcc -I./include -I./vm/include -I${IPP_DIR}/include ${IPP_PX_H}  -D__unix__ -Dlinux -Dlinux32 -DNDEBUG -DLINUX32 -DNO_SCRATCH_MEMORY_USED -c -O6 -march=pentium2 -ffast-math -fomit-frame-pointer -DIPPCORE_NO_SSE  -obin/util_d.o api/util_d.c

echo "Compiling util_e.c..."
gcc -I./include -I./vm/include -I${IPP_DIR}/include ${IPP_PX_H}  -D__unix__ -Dlinux -Dlinux32 -DNDEBUG -DLINUX32 -DNO_SCRATCH_MEMORY_USED -c -O6 -march=pentium2 -ffast-math -fomit-frame-pointer -DIPPCORE_NO_SSE  -obin/util_e.o api/util_e.c

echo "Compiling encg729.c..."
gcc -I./include -I./vm/include -I${IPP_DIR}/include ${IPP_PX_H}  -D__unix__ -Dlinux -Dlinux32 -DNDEBUG -DLINUX32 -DNO_SCRATCH_MEMORY_USED -c -O6 -march=pentium2 -ffast-math -fomit-frame-pointer -DIPPCORE_NO_SSE  -obin/encg729fp.o api/encg729fp.c

echo "Compiling owng729fp.c..."
gcc -I./include -I./vm/include -I${IPP_DIR}/include ${IPP_PX_H}  -D__unix__ -Dlinux -Dlinux32 -DNDEBUG -DLINUX32 -DNO_SCRATCH_MEMORY_USED -c -O6 -march=pentium2 -ffast-math -fomit-frame-pointer -DIPPCORE_NO_SSE  -obin/owng729fp.o api/owng729fp.c

echo "Compiling usc729fp.c..."
gcc -I./include -I./vm/include -I${IPP_DIR}/include ${IPP_PX_H}  -D__unix__ -Dlinux -Dlinux32 -DNDEBUG -DLINUX32 -DNO_SCRATCH_MEMORY_USED -c -O6 -march=pentium2 -ffast-math -fomit-frame-pointer -DIPPCORE_NO_SSE  -obin/usc729fp.o api/usc729fp.c

echo "Compiling vm_thread_linux_32.c..."
gcc -I./include -I./vm/include -I${IPP_DIR}/include ${IPP_PX_H}  -D__unix__ -Dlinux -Dlinux32 -DNDEBUG -DLINUX32 -DNO_SCRATCH_MEMORY_USED -c -O6 -march=pentium2 -ffast-math -fomit-frame-pointer -DIPPCORE_NO_SSE  -obin/vm_thread_linux32.o vm/src/vm_thread_linux32.c

echo "Compiling decg729fp.c..."
gcc -I./include -I./vm/include -I${IPP_DIR}/include ${IPP_PX_H}  -D__unix__ -Dlinux -Dlinux32 -DNDEBUG -DLINUX32 -DNO_SCRATCH_MEMORY_USED -c -O6 -march=pentium2 -ffast-math -fomit-frame-pointer -DIPPCORE_NO_SSE  -obin/decg729fp.o api/decg729fp.c

echo "Compiling myg729.c..."
gcc -I./include -I./vm/include -I${IPP_DIR}/include ${IPP_PX_H}  -D__unix__ -Dlinux -Dlinux32 -DNDEBUG -DLINUX32 -DNO_SCRATCH_MEMORY_USED -c -O6 -march=pentium2 -ffast-math -fomit-frame-pointer -DIPPCORE_NO_SSE  -o bin/myg729.o src/myg729.c

echo "Compiling main.c..."
gcc -I./include -I./vm/include -I${IPP_DIR}/include ${IPP_PX_H} -fPIC -D__unix__ -Dlinux -Dlinux32 -DNDEBUG -DLINUX32 -DNO_SCRATCH_MEMORY_USED -c -O2 -march=pentium2 -ffast-math -fomit-frame-pointer -DIPPCORE_NO_SSE  -o bin/main.o src/main.c

echo "Compiling g729codec.c..."
gcc -I /usr/include/opal -I./include -I./vm/include -I${IPP_DIR}/include ${IPP_PX_H} -fPIC -D__unix__ -Dlinux -Dlinux32 -DNDEBUG -DLINUX32 -DNO_SCRATCH_MEMORY_USED -c -O6 -march=pentium2  -ffast-math -fomit-frame-pointer -DIPPCORE_NO_SSE  -obin/g729codec.o src/g729codec.c

echo "Linking main..."

## gcc -o bin/main bin/main.o bin/util_e.o bin/util_d.o bin/myg729.o bin/decg729fp.o bin/encg729fp.o bin/owng729fp.o bin/usc729fp.o bin/vm_thread_linux32.o -L${IPP_DIR}/lib -lippscmerged -lippsrmerged -lippsmerged -lippcore -lpthread -lm
gcc -o bin/main bin/main.o bin/util_e.o bin/util_d.o bin/myg729.o bin/decg729fp.o bin/encg729fp.o bin/owng729fp.o bin/usc729fp.o bin/vm_thread_linux32.o -L${IPP_DIR}/sharedlib -lguide -lippsc -lippsr -lipps -lippcore -lpthread -lm

echo "Linking g729 audio plugin in shared library..."

#gcc -shared -Wl,-soname,g729 -o bin/g729_audio_pwplugin.so bin/g729codec.o bin/myg729.o bin/util_e.o bin/util_d.o bin/decg729fp.o bin/encg729fp.o bin/owng729fp.o bin/usc729fp.o bin/vm_thread_linux32.o -L${IPP_DIR}/lib -lippscmerged -lippsrmerged -lippsmerged -lippcore -lpthread -lm
gcc -shared -Wl,-soname,g729 -o bin/g729_audio_pwplugin.so bin/g729codec.o bin/myg729.o bin/util_e.o bin/util_d.o bin/decg729fp.o bin/encg729fp.o bin/owng729fp.o bin/usc729fp.o bin/vm_thread_linux32.o -L${IPP_DIR}/sharedlib -lguide -lippsc -lippsr -lipps -lippcore -lpthread -lm

echo "Done."


Regards,
Pawel



More information about the ekiga-list mailing list