[pjsip] py_pjsua windows compiling

Daniel Mikusa dan at mikusa.com
Tue Sep 18 13:49:27 EDT 2007


Usually 'unresolved external symbol' errors mean the linker can't find a 
library that it needs.  Check to make sure the project is looking for 
the libraries in the correct places and including the libraries it needs.

Right click on the project name, go to properties.  Can't remember the 
exact name, but look around for the library build path option.

Sorry I can't be more specific, haven't used VS in a while.

Dan

S G wrote:
> Hi folks,
>
> I would like to know how can I compile the py_pjsua module easily in 
> Windows XP.
>
> I had no problem compiling the pjsua module using mingw (the visual 
> studio vave tons of errors) and it is up and running but I am really 
> interested in the python version.
>
> I tried to follow the instructions using visual studio but I get 
> several errors that you can find below.
>
> Thank you very much.
>
> Best regards,
> Sergio
>
> 1>------ Build started: Project: py_pjsua, Configuration: Release 
> Win32 ------
> 1>Linking...
> 1>   Creating library 
> .\output\py_pjsua-i386-win32-vc6-release/py_pjsua.lib and object 
> .\output\py_pjsua-i386-win32-vc6-release/py_pjsua.exp
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pj_list_insert_before referenced in function _pj_list_push_back
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol _memset 
> referenced in function _pj_bzero
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pj_thread_local_get referenced in function _cb_log_cb
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsip_generic_string_hdr_create referenced in function _translate_hdr
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pj_list_size referenced in function _translate_hdr_rev
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pj_thread_local_set referenced in function _py_pjsua_thread_register
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pj_thread_register referenced in function _py_pjsua_thread_register
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol _malloc 
> referenced in function _py_pjsua_thread_register
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_reconfigure_logging referenced in function 
> _py_pjsua_reconfigure_logging
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_pool_create referenced in function _py_pjsua_pool_create
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_get_pjsip_endpt referenced in function _py_pjsua_get_pjsip_endpt
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_get_pjmedia_endpt referenced in function 
> _py_pjsua_get_pjmedia_endpt
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_get_pool_factory referenced in function _py_pjsua_get_pool_factory
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_perror referenced in function _py_pjsua_perror
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pj_thread_local_alloc referenced in function _py_pjsua_create
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_create referenced in function _py_pjsua_create
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol _pjsua_init 
> referenced in function _py_pjsua_init
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_start referenced in function _py_pjsua_start
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_destroy referenced in function _py_pjsua_destroy
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_handle_events referenced in function _py_pjsua_handle_events
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_verify_sip_url referenced in function _py_pjsua_verify_sip_url
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_transport_create referenced in function _py_pjsua_transport_create
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_transport_register referenced in function 
> _py_pjsua_transport_register
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_enum_transports referenced in function _py_pjsua_enum_transports
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_transport_get_info referenced in function 
> _py_pjsua_transport_get_info
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> ___security_cookie referenced in function _py_pjsua_transport_get_info
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> @__security_check_cookie at 4 referenced in function 
> _py_pjsua_transport_get_info
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_transport_set_enable referenced in function 
> _py_pjsua_transport_set_enable
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_transport_close referenced in function _py_pjsua_transport_close
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_acc_get_count referenced in function _py_pjsua_acc_get_count
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_acc_is_valid referenced in function _py_pjsua_acc_is_valid
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_acc_set_default referenced in function _py_pjsua_acc_set_default
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_acc_get_default referenced in function _py_pjsua_acc_get_default
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_acc_add referenced in function _py_pjsua_acc_add
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_acc_add_local referenced in function _py_pjsua_acc_add_local
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_acc_del referenced in function _py_pjsua_acc_del
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_acc_modify referenced in function _py_pjsua_acc_modify
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_acc_set_online_status referenced in function 
> _py_pjsua_acc_set_online_status
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_acc_set_registration referenced in function 
> _py_pjsua_acc_set_registration
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_acc_get_info referenced in function _py_pjsua_acc_get_info
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_enum_accs referenced in function _py_pjsua_enum_accs
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_acc_enum_info referenced in function _py_pjsua_acc_enum_info
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_acc_find_for_outgoing referenced in function 
> _py_pjsua_acc_find_for_outgoing
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_acc_find_for_incoming referenced in function 
> _py_pjsua_acc_find_for_incoming
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_acc_create_uac_contact referenced in function 
> _py_pjsua_acc_create_uac_contact
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_acc_create_uas_contact referenced in function 
> _py_pjsua_acc_create_uas_contact
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_get_buddy_count referenced in function _py_pjsua_get_buddy_count
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_buddy_is_valid referenced in function _py_pjsua_buddy_is_valid
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_enum_buddies referenced in function _py_pjsua_enum_buddies
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_buddy_get_info referenced in function _py_pjsua_buddy_get_info
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_buddy_add referenced in function _py_pjsua_buddy_add
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_buddy_del referenced in function _py_pjsua_buddy_del
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_buddy_subscribe_pres referenced in function 
> _py_pjsua_buddy_subscribe_pres
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_pres_dump referenced in function _py_pjsua_pres_dump
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pj_pool_release referenced in function _py_pjsua_im_send
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_im_send referenced in function _py_pjsua_im_send
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_im_typing referenced in function _py_pjsua_im_typing
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_conf_get_max_ports referenced in function 
> _py_pjsua_conf_get_max_ports
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_conf_get_active_ports referenced in function 
> _py_pjsua_conf_get_active_ports
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_enum_conf_ports referenced in function _py_pjsua_enum_conf_ports
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_conf_get_port_info referenced in function 
> _py_pjsua_conf_get_port_info
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_conf_add_port referenced in function _py_pjsua_conf_add_port
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_conf_remove_port referenced in function _py_pjsua_conf_remove_port
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_conf_connect referenced in function _py_pjsua_conf_connect
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_conf_disconnect referenced in function _py_pjsua_conf_disconnect
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_player_create referenced in function _py_pjsua_player_create
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_player_get_conf_port referenced in function 
> _py_pjsua_player_get_conf_port
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_player_set_pos referenced in function _py_pjsua_player_set_pos
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_player_destroy referenced in function _py_pjsua_player_destroy
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_recorder_create referenced in function _py_pjsua_recorder_create
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_recorder_get_conf_port referenced in function 
> _py_pjsua_recorder_get_conf_port
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_recorder_destroy referenced in function _py_pjsua_recorder_destroy
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol _free 
> referenced in function _py_pjsua_enum_snd_devs
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_enum_snd_devs referenced in function _py_pjsua_enum_snd_devs
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol __chkstk 
> referenced in function _py_pjsua_enum_snd_devs
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_get_snd_dev referenced in function _py_pjsua_get_snd_dev
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_set_snd_dev referenced in function _py_pjsua_set_snd_dev
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_set_null_snd_dev referenced in function _py_pjsua_set_null_snd_dev
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_set_no_snd_dev referenced in function _py_pjsua_set_no_snd_dev
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_set_ec referenced in function _py_pjsua_set_ec
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_get_ec_tail referenced in function _py_pjsua_get_ec_tail
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_enum_codecs referenced in function _py_pjsua_enum_codecs
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_codec_set_priority referenced in function 
> _py_pjsua_codec_set_priority
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_codec_get_param referenced in function _py_pjsua_codec_get_param
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_codec_set_param referenced in function _py_pjsua_codec_set_param
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_call_get_max_count referenced in function 
> _py_pjsua_call_get_max_count
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_call_get_count referenced in function _py_pjsua_call_get_count
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_enum_calls referenced in function _py_pjsua_enum_calls
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_call_make_call referenced in function _py_pjsua_call_make_call
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_call_is_active referenced in function _py_pjsua_call_is_active
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_call_has_media referenced in function _py_pjsua_call_has_media
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_call_get_conf_port referenced in function 
> _py_pjsua_call_get_conf_port
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol __snprintf 
> referenced in function _py_pjsua_call_get_info
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_call_get_info referenced in function _py_pjsua_call_get_info
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_call_set_user_data referenced in function 
> _py_pjsua_call_set_user_data
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_call_get_user_data referenced in function 
> _py_pjsua_call_get_user_data
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_call_answer referenced in function _py_pjsua_call_answer
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_call_hangup referenced in function _py_pjsua_call_hangup
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_call_set_hold referenced in function _py_pjsua_call_set_hold
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_call_reinvite referenced in function _py_pjsua_call_reinvite
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_call_xfer referenced in function _py_pjsua_call_xfer
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_call_xfer_replaces referenced in function 
> _py_pjsua_call_xfer_replaces
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_call_dial_dtmf referenced in function _py_pjsua_call_dial_dtmf
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_call_send_im referenced in function _py_pjsua_call_send_im
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_call_send_typing_ind referenced in function 
> _py_pjsua_call_send_typing_ind
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_call_hangup_all referenced in function _py_pjsua_call_hangup_all
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsua_call_dump referenced in function _py_pjsua_call_dump
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsip_ua_dump referenced in function _py_pjsua_dump
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsip_tsx_layer_dump referenced in function _py_pjsua_dump
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjmedia_endpt_dump referenced in function _py_pjsua_dump
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pjsip_endpt_dump referenced in function _py_pjsua_dump
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pj_dump_config referenced in function _py_pjsua_dump
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pj_log_set_decor referenced in function _py_pjsua_dump
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol 
> _pj_log_get_decor referenced in function _py_pjsua_dump
> 1>py_pjsua.obj : error LNK2019: unresolved external symbol _pj_log_3 
> referenced in function _py_pjsua_dump
> 1>LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup at 12
> 1>..\lib\py_pjsua.pyd : fatal error LNK1120: 116 unresolved externals
> 1>Build log was saved at 
> "file://c:\home\pjproject-0.5.10.4\pjsip-apps\build\output\py_pjsua-i386-win32-vc6-release\BuildLog.htm"
> 1>py_pjsua - 117 error(s), 0 warning(s)
> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped 
> ==========
>
> ------------------------------------------------------------------------
>
> Sé un Mejor Amante del Cine
> ¿Quieres saber cómo? ¡Deja que otras personas te ayuden! 
> <http://us.rd.yahoo.com/mail/es/tagline/beabetter/*http://advision.webevents.yahoo.com/reto/entretenimiento.html>.
>
> -- 
> This message has been scanned for viruses and
> dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
> believed to be clean.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>   

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.





More information about the pjsip mailing list