jokerYellow / siphon

Automatically exported from code.google.com/p/siphon
0 stars 0 forks source link

Compile error portaudio #363

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi all,

Previously, I used pjsip 1.0.3 when make a call siphon error which I have post 
it.

Now, I try to compile pjsip 1.4 on mac osx 10.6 then while compiling portaudio  
I get following error 

make -f /Users/aof/Desktop/PJSIP/pjproject-1.4/build/rules.mak 
APP=PJMEDIA_AUDIODEV app=pjmedia-audiodev 
../lib/libpjmedia-audiodev-arm-apple-darwin9.a
mkdir -p output/pjmedia-audiodev-arm-apple-darwin9 
arm-apple-darwin9-gcc -c -Wall  -DPJ_AUTOCONF=1 -O2 -arch armv6 -isysroot 
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk   -O2 
-arch armv6 
-isysroot 
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk  
-I/Users/aof/Desktop/PJSIP/pjproject-1.4/third_party/build/speex -
I/Users/aof/Desktop/PJSIP/pjproject-1.4/third_party/speex/include 
-DPJMEDIA_AUDIO_DEV_HAS_WMME=0 -DPJMEDIA_AUDIO_LEG_HAS_AUDIOQUEUE=1  
-I../include -
I../../pjlib/include -I../../pjlib-util/include -I../../pjnath/include -I../.. 
-I/Users/aof/Desktop/PJSIP/pjproject-1.4/third_party/build/srtp 
-I/Users/aof/Desktop/PJSIP/pjproject-
1.4/third_party/srtp/crypto/include 
-I/Users/aof/Desktop/PJSIP/pjproject-1.4/third_party/srtp/include  \
        -o output/pjmedia-audiodev-arm-apple-darwin9/audiodev.o \
        ../src/pjmedia-audiodev/audiodev.c 
arm-apple-darwin9-gcc -c -Wall  -DPJ_AUTOCONF=1 -O2 -arch armv6 -isysroot 
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk   -O2 
-arch armv6 
-isysroot 
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk  
-I/Users/aof/Desktop/PJSIP/pjproject-1.4/third_party/build/speex -
I/Users/aof/Desktop/PJSIP/pjproject-1.4/third_party/speex/include 
-DPJMEDIA_AUDIO_DEV_HAS_WMME=0 -DPJMEDIA_AUDIO_LEG_HAS_AUDIOQUEUE=1  
-I../include -
I../../pjlib/include -I../../pjlib-util/include -I../../pjnath/include -I../.. 
-I/Users/aof/Desktop/PJSIP/pjproject-1.4/third_party/build/srtp 
-I/Users/aof/Desktop/PJSIP/pjproject-
1.4/third_party/srtp/crypto/include 
-I/Users/aof/Desktop/PJSIP/pjproject-1.4/third_party/srtp/include  \
        -o output/pjmedia-audiodev-arm-apple-darwin9/audiotest.o \
        ../src/pjmedia-audiodev/audiotest.c 
arm-apple-darwin9-gcc -c -Wall  -DPJ_AUTOCONF=1 -O2 -arch armv6 -isysroot 
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk   -O2 
-arch armv6 
-isysroot 
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk  
-I/Users/aof/Desktop/PJSIP/pjproject-1.4/third_party/build/speex -
I/Users/aof/Desktop/PJSIP/pjproject-1.4/third_party/speex/include 
-DPJMEDIA_AUDIO_DEV_HAS_WMME=0 -DPJMEDIA_AUDIO_LEG_HAS_AUDIOQUEUE=1  
-I../include -
I../../pjlib/include -I../../pjlib-util/include -I../../pjnath/include -I../.. 
-I/Users/aof/Desktop/PJSIP/pjproject-1.4/third_party/build/srtp 
-I/Users/aof/Desktop/PJSIP/pjproject-
1.4/third_party/srtp/crypto/include 
-I/Users/aof/Desktop/PJSIP/pjproject-1.4/third_party/srtp/include  \
        -o output/pjmedia-audiodev-arm-apple-darwin9/errno.o \
        ../src/pjmedia-audiodev/errno.c 
../src/pjmedia-audiodev/errno.c:23:26: error: portaudio.h: No such file or 
directory
../src/pjmedia-audiodev/errno.c: In function ‘pjmedia_audiodev_strerror’:
../src/pjmedia-audiodev/errno.c:88: warning: implicit declaration of function 
‘Pa_GetErrorText’
make[2]: *** [output/pjmedia-audiodev-arm-apple-darwin9/errno.o] Error 1
make[1]: *** [pjmedia-audiodev] Error 2
make: *** [all] Error 1

I know that because no path to portaudio.h include then I define 

CFLAGS += -I/Users/aof/Desktop/PJSIP/pjproject-1.4/third_party/portaudio/include

in user.mak in root folder and then produce following error

         output/pjmedia-test-arm-apple-darwin9/codec_vectors.o  output/pjmedia-test-arm-apple-darwin9/jbuf_test.o  output/pjmedia-test-arm-apple-darwin9/main.o  
output/pjmedia-test-arm-apple-darwin9/mips_test.o  
output/pjmedia-test-arm-apple-darwin9/rtp_test.o  
output/pjmedia-test-arm-apple-darwin9/test.o  output/pjmedia-
test-arm-apple-darwin9/sdp_neg_test.o ../lib/libpjmedia-arm-apple-darwin9.a 
../lib/libpjmedia-audiodev-arm-apple-darwin9.a 
../lib/libpjmedia-codec-arm-apple-darwin9.a 
/Users/aof/Desktop/PJSIP/pjproject-1.4/pjlib/lib/libpj-arm-apple-darwin9.a 
/Users/aof/Desktop/PJSIP/pjproject-1.4/pjlib-util/lib/libpjlib-util-arm-apple-da
rwin9.a 
/Users/aof/Desktop/PJSIP/pjproject-1.4/pjnath/lib/libpjnath-arm-apple-darwin9.a 
-L/Users/aof/Desktop/PJSIP/pjproject-1.4/third_party/lib 
-lresample-arm-apple-darwin9 -
lmilenage-arm-apple-darwin9 -lsrtp-arm-apple-darwin9 
-lgsmcodec-arm-apple-darwin9 -lspeex-arm-apple-darwin9 
-lilbccodec-arm-apple-darwin9 -lg7221codec-arm-
apple-darwin9  -O2 -arch armv6 -isysroot 
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk -lm 
-lpthread  -framework CoreAudio -framework 
CoreFoundation -framework AudioToolbox   -O2 -arch armv6 -isysroot 
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk -
I/Users/aof/Desktop/PJSIP/pjproject-1.4/third_party/portaudio/include 
ld: warning: -force_cpusubtype_ALL will become unsupported for ARM architectures
Undefined symbols:
  "_Pa_StartStream", referenced from:
      _strm_start in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _strm_start in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
  "_Pa_Initialize", referenced from:
      _pa_init in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
  "_Pa_GetStreamInfo", referenced from:
      _strm_get_param in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _strm_get_param in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _strm_get_cap in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _strm_get_cap in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _pa_create_stream in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _pa_create_stream in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _pa_create_stream in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _pa_create_stream in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
  "_Pa_GetHostApiInfo", referenced from:
      _pa_get_default_input_dev in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _pa_get_default_output_dev in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _pa_create_stream in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _pa_create_stream in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _pa_create_stream in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _pa_create_stream in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
  "_Pa_StopStream", referenced from:
      _strm_start in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _strm_stop in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _strm_stop in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
  "_Pa_GetDeviceInfo", referenced from:
      _pa_get_default_input_dev in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _pa_get_default_input_dev in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _pa_get_default_output_dev in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _pa_get_default_output_dev in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _pa_get_dev_info in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _pa_create_stream in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _pa_create_stream in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _pa_create_stream in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _pa_create_stream in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
  "_Pa_GetErrorText", referenced from:
      _pjmedia_audiodev_strerror in libpjmedia-audiodev-arm-apple-darwin9.a(errno.o)
  "_Pa_Terminate", referenced from:
      _pa_destroy in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
  "_Pa_OpenStream", referenced from:
      _pa_create_stream in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _pa_create_stream in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _pa_create_stream in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _pa_create_stream in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _pa_create_stream in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
  "_Pa_CloseStream", referenced from:
      _strm_destroy in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _strm_destroy in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _pa_create_stream in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
  "_Pa_GetHostApiCount", referenced from:
      _pa_init in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _pa_get_default_input_dev in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _pa_get_default_output_dev in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
  "_PaUtil_SetDebugPrintFunction", referenced from:
      _pa_init in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
  "_Pa_GetDeviceCount", referenced from:
      _pa_get_dev_count in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _pa_get_default_input_dev in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
      _pa_get_default_output_dev in libpjmedia-audiodev-arm-apple-darwin9.a(pa_dev.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [../bin/pjmedia-test-arm-apple-darwin9] Error 1
make[1]: *** [pjmedia-test] Error 2
make: *** [all] Error 1

I think compiler is not cplusplus  from macro __cplusplus portaudio.h  

anyone  can fix it ?  Please help me.

Thanks in advance

Parada

Original issue reported on code.google.com by pd_...@hotmail.com on 19 Jan 2010 at 4:38

GoogleCodeExporter commented 8 years ago

Original comment by samuelv0...@gmail.com on 21 Feb 2010 at 11:33