Estoy tratando de hacer una aplicación para el iphone en xcode que use pjsip. El problema es que no sé cómo vincular las bibliotecas. Esta es la primera vez que uso otras bibliotecas, así que probablemente estoy haciendo algo mal, simplemente no sé qué. :(Agregar bibliotecas a un proyecto en xcode - símbolos no encontrados
Tengo la versión ARM de las bibliotecas en esta carpeta en Mac OS X /Usuarios/kudorgyozo/pjsip_iphone
En Xcode:. he especificado la biblioteca y las rutas de búsqueda de cabecera como esta:
para incluye:
/Usuarios/kudorgyozo/pjsip_iphone/pjlib/include/Usuarios/kudorgyozo/pjsip_iphone/pjlib-util/include/Usuarios/kudorgyozo/pjsip_iphone/pjmedia/include/Usuarios/kudorgyozo/pjsip_iphone/pjnath/include/Users/kudorgyozo/pjsip_iphone/pjsip/include
para las bibliotecas:
/Usuarios/kudorgyozo/pjsip_iphone/pjlib/lib/Usuarios/kudorgyozo/pjsip_iphone/pjlib-util/lib/Usuarios/kudorgyozo/pjsip_iphone/pjmedia/lib/Usuarios/kudorgyozo/pjsip_iphone/pjnath/lib/Usuarios/kudorgyozo/pjsip_iphone/PJSIP/lib
y luego usando los "Otros": banderas enlazador
-lpj-brazo-manzana-darwin9 -lpjlib-util-brazo-manzana-darwin9 - lpjmedia-brazo-manzana-darwin9 -lpjmedia-audiodev-brazo-manzana-darwin9 -lpjmedia-codec-brazo-manzana-darwin9 -lpjsdp-brazo-manzana-darwin9 -lpjnath-brazo-manzana-darwin9 -lpjsip-brazo-manzana- darwin9 -lpjsip-simple-arm-apple-darwin9 -l pjsip-ua-brazo-manzana-darwin9 -lpjsua-brazo-manzana-darwin9
¿Esto está bien así? Porque me da error (s) de símbolos que no se encuentran. Creo que no se encuentra ningún símbolo de las bibliotecas "incluidas". No sé lo que está mal. Estoy empezando a entender cómo funciona la construcción de una aplicación bajo sistemas basados en Linux. Solo he hecho programación en C# antes.
EDIT: Aquí está una lista de símbolos que faltan:
"_AudioSessionSetProperty", referenced from: _create_audio_unit in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) _ca_stream_set_cap in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) _ca_stream_set_cap in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) "_srtp_deinit", referenced from: _pjmedia_srtp_deinit_lib in libpjmedia-arm-apple-darwin9.a(transport_srtp.o) "_gsm_encode", referenced from: _gsm_codec_encode in libpjmedia-codec-arm-apple-darwin9.a(gsm.o) "_AudioComponentInstanceNew", referenced from: _create_audio_unit in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) "_AudioSessionAddPropertyListener", referenced from: _ca_stream_start in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) "_speex_decoder_init", referenced from: _spx_codec_open in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) "_res_Resample", referenced from: _pjmedia_resample_run in libpjmedia-arm-apple-darwin9.a(resample_resample.o) _pjmedia_resample_run in libpjmedia-arm-apple-darwin9.a(resample_resample.o) "_speex_bits_write", referenced from: _spx_codec_encode in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) "_gsm_destroy", referenced from: _gsm_codec_close in libpjmedia-codec-arm-apple-darwin9.a(gsm.o) _gsm_codec_close in libpjmedia-codec-arm-apple-darwin9.a(gsm.o) "_AudioComponentInstanceDispose", referenced from: _propListener in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) _ca_stream_destroy in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) "_AudioSessionGetProperty", referenced from: _ca_stream_get_cap in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) _ca_stream_get_cap in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) _ca_stream_get_cap in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) _ca_stream_get_cap in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) _ca_stream_get_cap in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) _ca_stream_get_cap in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) _ca_stream_get_cap in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) "_AudioComponentFindNext", referenced from: _ca_stream_set_cap in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) _ca_factory_init in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) "_speex_encoder_ctl", referenced from: _get_speex_info in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _get_speex_info in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _get_speex_info in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _get_speex_info in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _get_speex_info in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _get_speex_info in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _get_speex_info in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _get_speex_info in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _spx_codec_modify in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _spx_codec_modify in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _spx_codec_open in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _spx_codec_open in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _spx_codec_open in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _spx_codec_open in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _spx_codec_open in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) "_speex_encoder_init", referenced from: _get_speex_info in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _spx_codec_open in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) "_AudioSessionSetActive", referenced from: _ca_stream_stop in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) _ca_stream_start in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) "_AudioUnitRender", referenced from: _input_callback in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) "_srtp_dealloc", referenced from: _pjmedia_transport_srtp_stop in libpjmedia-arm-apple-darwin9.a(transport_srtp.o) _pjmedia_transport_srtp_stop in libpjmedia-arm-apple-darwin9.a(transport_srtp.o) _pjmedia_transport_srtp_start in libpjmedia-arm-apple-darwin9.a(transport_srtp.o) "_speex_lib_get_mode", referenced from: _pjmedia_codec_speex_init in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _pjmedia_codec_speex_init in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) "_res_SrcLinear", referenced from: _pjmedia_resample_run in libpjmedia-arm-apple-darwin9.a(resample_resample.o) _pjmedia_resample_run in libpjmedia-arm-apple-darwin9.a(resample_resample.o) "_srtp_init", referenced from: _pjmedia_srtp_init_lib in libpjmedia-arm-apple-darwin9.a(transport_srtp.o) "_speex_bits_init", referenced from: _spx_codec_open in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _spx_codec_open in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) "_AudioUnitSetProperty", referenced from: _create_audio_unit in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) _create_audio_unit in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) _create_audio_unit in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) _create_audio_unit in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) _create_audio_unit in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) _create_audio_unit in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) _create_audio_unit in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) "_AudioUnitUninitialize", referenced from: _propListener in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) _ca_stream_destroy in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) "_speex_decoder_destroy", referenced from: _spx_codec_close in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) "_AudioUnitInitialize", referenced from: _create_audio_unit in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) "_speex_bits_reset", referenced from: _spx_codec_encode in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) "_AudioOutputUnitStop", referenced from: _ca_stream_stop in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) _ca_stream_stop in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) _ca_stream_start in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) _interruptionListener in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) "_srtp_protect_rtcp", referenced from: _transport_send_rtcp2 in libpjmedia-arm-apple-darwin9.a(transport_srtp.o) "_speex_decode_int", referenced from: _spx_codec_recover in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _spx_codec_decode in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) "_speex_encoder_destroy", referenced from: _get_speex_info in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _spx_codec_close in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) "_gsm_create", referenced from: _gsm_codec_open in libpjmedia-codec-arm-apple-darwin9.a(gsm.o) _gsm_codec_open in libpjmedia-codec-arm-apple-darwin9.a(gsm.o) "_crypto_get_random", referenced from: _generate_crypto_attr_value in libpjmedia-arm-apple-darwin9.a(transport_srtp.o) "_speex_bits_unpack_unsigned", referenced from: _speex_get_next_frame in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _speex_get_next_frame in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _speex_get_next_frame in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _speex_get_next_frame in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _speex_get_next_frame in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) "_speex_encode_int", referenced from: _spx_codec_encode in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) "_octet_string_hex_string", referenced from: _pjmedia_transport_srtp_start in libpjmedia-arm-apple-darwin9.a(transport_srtp.o) _pjmedia_transport_srtp_start in libpjmedia-arm-apple-darwin9.a(transport_srtp.o) "_AudioSessionInitialize", referenced from: _ca_factory_init in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) "_speex_bits_read_from", referenced from: _spx_codec_parse in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _spx_codec_decode in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) "_speex_nb_mode", referenced from: _speex_nb_mode$non_lazy_ptr in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) "_res_GetXOFF", referenced from: _pjmedia_resample_create in libpjmedia-arm-apple-darwin9.a(resample_resample.o) "_gsm_decode", referenced from: _gsm_codec_decode in libpjmedia-codec-arm-apple-darwin9.a(gsm.o) "_speex_mode_query", referenced from: _speex_get_next_frame in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) "_speex_bits_advance", referenced from: _speex_get_next_frame in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _speex_get_next_frame in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _speex_get_next_frame in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _speex_get_next_frame in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _spx_codec_decode in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) "_AudioComponentGetDescription", referenced from: _ca_stream_get_cap in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) "_srtp_create", referenced from: _pjmedia_transport_srtp_start in libpjmedia-arm-apple-darwin9.a(transport_srtp.o) _pjmedia_transport_srtp_start in libpjmedia-arm-apple-darwin9.a(transport_srtp.o) "_speex_bits_remaining", referenced from: _speex_get_next_frame in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _speex_get_next_frame in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _speex_get_next_frame in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _speex_get_next_frame in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) "_srtp_unprotect_rtcp", referenced from: _srtp_rtcp_cb in libpjmedia-arm-apple-darwin9.a(transport_srtp.o) "_AudioOutputUnitStart", referenced from: _ca_stream_start in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) "_AudioSessionRemovePropertyListenerWithUserData", referenced from: _ca_stream_destroy in libpjmedia-audiodev-arm-apple-darwin9.a(coreaudio_dev.o) "_speex_decoder_ctl", referenced from: _spx_codec_modify in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _spx_codec_open in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _spx_codec_open in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) "_speex_bits_nbytes", referenced from: _spx_codec_encode in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) "_srtp_protect", referenced from: _transport_send_rtp in libpjmedia-arm-apple-darwin9.a(transport_srtp.o) "_speex_bits_destroy", referenced from: _spx_codec_close in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) _spx_codec_close in libpjmedia-codec-arm-apple-darwin9.a(speex_codec.o) "_srtp_unprotect", referenced from: _srtp_rtp_cb in libpjmedia-arm-apple-darwin9.a(transport_srtp.o) _srtp_rtp_cb in libpjmedia-arm-apple-darwin9.a(transport_srtp.o)
¿Alguien construir PJSIP para iPhone y crearon un nuevo proyecto de usarlo?
¿Qué símbolos faltan? ¿De qué biblioteca provienen esos símbolos? ¿Estás vinculando la biblioteca que proporciona esos símbolos? –
Estoy vinculando las bibliotecas del proyecto pjsip. Todos los símbolos que faltan son de estas bibliotecas. –