Re: [Ekiga-list] G729 codec
- From: PawelCarqowski <paulino90 tenbit pl>
- To: Ekiga mailing list <ekiga-list gnome org>
- Subject: Re: [Ekiga-list] G729 codec
- Date: Sat, 27 Oct 2007 18:43:29 +0200
Jure Petrovic writes:
>
> opalplugin.h header file comes with opal package. I used opal from svn.
>
> You can edit build.sh script accordingly so that the paths inside will
> suit your needs. It's very basic script actually.
>
> Jure
>
>
> On Sat, 2007-10-27 at 17:36 +0200, PawelCarqowski wrote:
> > Jure Petrovic writes:
>
> > I orgot to mention that I am compiling it against ipp/5.2.
>
> _______________________________________________
> ekiga-list mailing list
> ekiga-list gnome org
> http://mail.gnome.org/mailman/listinfo/ekiga-list
Jure,
I compiled plugin with ipp 5.2 and installed it to ekiga, but unfortunatelly ekiga does not see the plugin:
prompt$ ekiga -d 4
2007/10/27 18:34:41.867 0:00.429 ekiga Detected audio plugins: ALSA
2007/10/27 18:34:41.868 0:00.429 ekiga Detected video plugins: Picture,V4L,V4L2,1394AVC
2007/10/27 18:34:41.868 0:00.429 ekiga Detected audio plugins: ALSA
2007/10/27 18:34:41.868 0:00.429 ekiga Detected video plugins: Picture,V4L,V4L2,1394AVC
2007/10/27 18:34:41.891 0:00.452 ekiga Detected the following audio input devices: Default,Intel 82801BA-ICH2 with plugin ALSA
2007/10/27 18:34:41.891 0:00.452 ekiga Detected the following audio output devices: Default,Intel 82801BA-ICH2 with plugin ALSA
2007/10/27 18:34:41.891 0:00.452 ekiga Detected the following video input devices: No device found with plugin V4L
2007/10/27 18:34:41.891 0:00.452 ekiga Detected the following audio input devices: Default,Intel 82801BA-ICH2 with plugin ALSA
2007/10/27 18:34:41.892 0:00.453 ekiga Detected the following audio output devices: Default,Intel 82801BA-ICH2 with plugin ALSA
2007/10/27 18:34:41.892 0:00.453 ekiga Detected the following video input devices: No device found with plugin V4L
prompt$ ldd /usr/lib/pwlib/codecs/audio/g729_audio_pwplugin.so
linux-gate.so.1 => (0xb7f49000)
libguide.so => /opt/intel/ipp/5.2/ia32/sharedlib/libguide.so (0xb7edf000)
libippsc.so.5.2 => /opt/intel/ipp/5.2/ia32/sharedlib/libippsc.so.5.2 (0xb7ed2000)
libippsr.so.5.2 => /opt/intel/ipp/5.2/ia32/sharedlib/libippsr.so.5.2 (0xb7ebc000)
libipps.so.5.2 => /opt/intel/ipp/5.2/ia32/sharedlib/libipps.so.5.2 (0xb7e84000)
libippcore.so.5.2 => /opt/intel/ipp/5.2/ia32/sharedlib/libippcore.so.5.2 (0xb7e7d000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7e65000)
libm.so.6 => /lib/libm.so.6 (0xb7e3e000)
libc.so.6 => /lib/libc.so.6 (0xb7d01000)
libdl.so.2 => /lib/libdl.so.2 (0xb7cfd000)
/lib/ld-linux.so.2 (0x80000000)
prompt $ strace ekiga
lstat64("/usr/lib/pwlib/codecs/audio/g729_audio_pwplugin.so", {st_mode=S_IFREG|0775, st_size=100459, ...}) = 0
open("/usr/lib/pwlib/codecs/audio/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 24
fstat64(24, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fcntl64(24, F_SETFD, FD_CLOEXEC) = 0
gettimeofday({1193502947, 203367}, NULL) = 0
gettimeofday({1193502947, 203432}, NULL) = 0
gettimeofday({1193502947, 203496}, NULL) = 0
getdents(24, /* 3 entries */, 4096) = 68
lstat64("/usr/lib/pwlib/codecs/audio/g729_audio_pwplugin.so", {st_mode=S_IFREG|0775, st_size=100459, ...}) = 0
open("/usr/lib/pwlib/codecs/audio/g729_audio_pwplugin.so/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOTDIR (Not a directory)
open("/usr/lib/pwlib/codecs/audio/g729_audio_pwplugin.so", O_RDONLY) = 25
read(25, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 @\0\000"..., 512) = 512
fstat64(25, {st_mode=S_IFREG|0775, st_size=100459, ...}) = 0
mmap2(NULL, 93684, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 25, 0) = 0xb7c4b000
mmap2(0xb7c61000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 25, 0x15) = 0xb7c61000
close(25) = 0
prompt$ cat build.sh
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/local/include/opal -I./include -I./vm/include -I${IPP_DIR}/include ${IPP_PX_H} -include /usr/src/openh323_v1_19_0_1/include/opalplugin.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}/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}/sharedlib -lguide -lippsc -lippsr -lipps -lippcore -lpthread -lm
echo "Done."
Have You got any ideas, what might be the reason?
Regards,
Pawel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]