Familiar Linux 0.8.14, cross compiling, playsine-arm-unknown-linux-gnu: src/../../../portaudio/src/common/pa_front.c:352: Pa_Initialize. Aborted

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi:

Reading over the mailinglist I found this:

Hi,

I had similar problem with pjsip 0.7.0.  Seems like  portaudio  cannot
auto detect the correct endianess.
U can try manually changing  pa_endianness.h (in
pjsip\pjproject-0.7.0\third_party\portaudio\src\common\) to be little
endian.

Or optionally, u can also disable the endianess checking in
pa_front.c( in pjsip\pjproject-0.7.0\third_party\portaudio\src\common\)
by commenting out PA_VALIDATE_ENDIANNESS in Pa_Initialize(). It'll run
but this might be dangerous though.

hope it helps,
Nigel

So I choose second option, just commenting that line.

Now I can use playsine properly (thats what I think):

root at h3900:/home/roy# ./playsine-arm-unknown-linux-gnu
 01:09:06.066 os_core_unix.c pjlib 0.8.0-trunk for POSIX initialized
 01:09:06.089      pasound.c PortAudio sound library initialized, status=0
 01:09:06.090      pasound.c PortAudio host api count=1
 01:09:06.090      pasound.c Sound device count=1
 01:09:06.097          pjlib select() I/O Queue created (0x44d2c)
 01:09:06.147      pasound.c Opened device 0: /dev/dsp(OSS) for playing,
sample rate=11025, ch=s
 01:09:06.148      pasound.c Starting /dev/dsp stream..
 01:09:06.166      pasound.c Player thread started
 01:09:06.179      pasound.c Done, status=0
Playing sine wave..

Press <ENTER> to stop playing and quit

 01:09:09.070      pasound.c Stopping stream..
 01:09:09.071      pasound.c Done, status=0
 01:09:11.070      pasound.c Closing /dev/dsp: 0 underflow, 0 overflow
 01:09:11.191      pasound.c PortAudio sound library shutting down..

Now I tried to execute 'pjsua-arm-unknown-linux-gnu'

root at h3900:/home/roy# ./pjsua-arm-unknown-linux-gnu
...
01:29:13.621  pjsua_media.c pjsua_set_snd_dev(): attempting to open devices
@16000 Hz
pjsua-arm-unknown-linux-gnu:
src/../../../portaudio/src/hostapi/oss/pa_unix_oss.c:1124: PaOssSt.
Aborted

Something with the frecuency I think but not for sure.
I tried with --cock-range= 22050 | 44100 | 48000 and even 11025 | 8000

It's perhaps because there is not mixing/speaker and mic(record) at the same
time? something with the channels used?
and I can see that OSS it's being using, how to use ALSA?

any help would be soo apreciated... I feel it, I'm too close.

On Jan 29, 2008 2:59 PM, Rodrigo Vega <vegaroy13 at gmail.com> wrote:

> Hello:
>
> Thanks Benny for you previous advices.
>
> I've already gotten success compiling PJSUA project for Familiar Linux,
> well partially at least.
>
> I'm testing over an ipaq h5500 with linux familiar 0.8.14, the toolchain
> used is one for that platform (I was using other toolchains but with not
> success).
>
> when running:
>
> ./configure --host=arm-linux --build=i686-linux
> --with-lib-path=/home/cross/familiar-build/build-h3900-gpe/tmp/cross/arm-linux/lib
> LDFLAGS=-Wl,-elf2flt CFLAGS=-O
> make dep && make
>
> Everything seems to be normal.
>
> Running some of the generated programs got success:
>
> root at h3900:/home/roy# ./pjlib-test-arm-unknown-linux-gnu
> ...
>  00:28:48.609 Stack max usage: 0, deepest: :0
>  00:28:48.609 Looks like everything is okay!..
>
> root at h3900:/home/roy# ./pjlib-util-test-arm-unknown-linux-gnu
> ...
>  00:33:46.932 ..success(0)
>
> but when I run 'playsine-arm-unknown-linux-gnu' just says:
>
> root at h3900:/home/roy# ./playsine-arm-unknown-linux-gnu
>  00:35:04.256 os_core_unix.c pjlib 0.8.0-trunk for POSIX initialized
> playsine-arm-unknown-linux-gnu:
> src/../../../portaudio/src/common/pa_front.c:352: Pa_Initialize.
> Aborted
>
> doing a 'file' to that exe says:
>
> shirl13% file playsine-arm-unknown-linux-gnu
> playsine-arm-unknown-linux-gnu: ELF 32-bit LSB executable, ARM, version 1,
> for GNU/Linux 2.4.0, dynamically linked (uses shared libs), not stripped
>
> so... any one can help me giving me some paths to follow in order to get
> this running. My goal is to have 'pjsua-arm-unknown-linux-gnu' running.
>
> I thing that the problem is with the third_party-portaudio, isn't it?
>
>
> thanks in advance.
>
>
> PD: I really like working over Linux.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080129/b66096f6/attachment.html 


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux