So I am following a tutorial on creating a quiz app in flutter and I keep getting this error below when I run it. Here is my full code so far: https://github.com/NathanDevelops1/quizappmaker.
This is the error:
at Object.app$ [as app] (http://localhost:57087/packages/firebase/src/top_level.dart.lib.js:83:56)
at new cloud_firestore_web.FirestoreWeb.new (http://localhost:57087/packages/cloud_firestore_web/src/write_batch_web.dart.lib.js:806:57)
at Function.registerWith (http://localhost:57087/packages/cloud_firestore_web/src/write_batch_web.dart.lib.js:751:71)
at Object.registerPlugins (http://localhost:57087/packages/quizappmaker/generated_plugin_registrant.dart.lib.js:18:38)
at main (http://localhost:57087/web_entrypoint.dart.lib.js:31:35)
at main.next (<anonymous>)
at runBody (http://localhost:57087/dart_sdk.js:39250:34)
at Object._async [as async] (http://localhost:57087/dart_sdk.js:39281:7)
at main$ (http://localhost:57087/web_entrypoint.dart.lib.js:30:18)
at http://localhost:57087/main_module.bootstrap.js:19:10
at Array.forEach (<anonymous>)
at window.$dartRunMain (http://localhost:57087/main_module.bootstrap.js:18:32)
at <anonymous>:1:8
at Object.runMain (http://localhost:57087/dwds/src/injected/client.js:8825:21)
at http://localhost:57087/dwds/src/injected/client.js:22713:19
at _wrapJsFunctionForAsync_closure.$protected (http://localhost:57087/dwds/src/injected/client.js:3851:15)
at _wrapJsFunctionForAsync_closure.call$2 (http://localhost:57087/dwds/src/injected/client.js:11063:12)
at Object._asyncStartSync (http://localhost:57087/dwds/src/injected/client.js:3815:20)
at main__closure1.$call$body$main__closure (http://localhost:57087/dwds/src/injected/client.js:22725:16)
at main__closure1.call$1 (http://localhost:57087/dwds/src/injected/client.js:22652:19)
at StaticClosure._rootRunUnary [as call$2$5] (http://localhost:57087/dwds/src/injected/client.js:4185:16)
at _CustomZone.runUnary$2$2 (http://localhost:57087/dwds/src/injected/client.js:12436:39)
at _CustomZone.runUnaryGuarded$1$2 (http://localhost:57087/dwds/src/injected/client.js:12383:14)
at _ControllerSubscription._sendData$1 (http://localhost:57087/dwds/src/injected/client.js:11959:19)
at _DelayedData.perform$1 (http://localhost:57087/dwds/src/injected/client.js:12148:59)
at _PendingEvents_schedule_closure.call$0 (http://localhost:57087/dwds/src/injected/client.js:12197:14)
at Object._microtaskLoop (http://localhost:57087/dwds/src/injected/client.js:4023:24)
at StaticClosure._startMicrotaskLoop (http://localhost:57087/dwds/src/injected/client.js:4029:11)
at _AsyncRun__initializeScheduleImmediate_internalCallback.call$1 (http://localhost:57087/dwds/src/injected/client.js:10932:9)
at invokeClosure (http://localhost:57087/dwds/src/injected/client.js:1259:26)
at MutationObserver.<anonymous> (http://localhost:57087/dwds/src/injected/client.js:1278:18)
Please import firebase dependencies in your index.html:
<script src="https://www.gstatic.com/firebasejs/8.6.1/firebase-app.js" />
Refer here.
An Observatory debugger and profiler on Chrome is available at: http://127.0.0.1:64319/lujnI6UYeBo=
TypeError: Cannot read properties of undefined (reading 'app')
at Object.app$ [as app] (http://localhost:49682/packages/firebase_core_web/src/interop/core.dart.lib.js:37:101)
at initializeApp (http://localhost:49682/packages/firebase_core_web/firebase_core_web.dart.lib.js:87:25)
at initializeApp.next (<anonymous>)
at runBody (http://localhost:49682/dart_sdk.js:40666:34)
at Object._async [as async] (http://localhost:49682/dart_sdk.js:40697:7)
at firebase_core_web.FirebaseCoreWeb.new.initializeApp (http://localhost:49682/packages/firebase_core_web/firebase_core_web.dart.lib.js:80:20)
at initializeApp (http://localhost:49682/packages/firebase_core/firebase_core.dart.lib.js:106:59)
at initializeApp.next (<anonymous>)
at runBody (http://localhost:49682/dart_sdk.js:40666:34)
at Object._async [as async] (http://localhost:49682/dart_sdk.js:40697:7)
at Function.initializeApp (http://localhost:49682/packages/firebase_core/firebase_core.dart.lib.js:105:20)
at new main.MyApp.new (http://localhost:49682/packages/fupro/main.dart.lib.js:152:52)
at main$ (http://localhost:49682/packages/fupro/main.dart.lib.js:169:20)
at main (http://localhost:49682/web_entrypoint.dart.lib.js:39:29)
at main.next (<anonymous>)
at http://localhost:49682/dart_sdk.js:40646:33
at _RootZone.runUnary (http://localhost:49682/dart_sdk.js:40503:58)
at _FutureListener.thenAwait.handleValue (http://localhost:49682/dart_sdk.js:35432:29)
at handleValueCallback (http://localhost:49682/dart_sdk.js:36017:49)
at Function._propagateToListeners (http://localhost:49682/dart_sdk.js:36055:17)
at _Future.new.[_completeWithValue] (http://localhost:49682/dart_sdk.js:35897:23)
at http://localhost:49682/dart_sdk.js:35083:46
at _RootZone.runUnary (http://localhost:49682/dart_sdk.js:40503:58)
at _FutureListener.then.handleValue (http://localhost:49682/dart_sdk.js:35432:29)
at handleValueCallback (http://localhost:49682/dart_sdk.js:36017:49)
at Function._propagateToListeners (http://localhost:49682/dart_sdk.js:36055:17)
at _Future.new.[_completeWithValue] (http://localhost:49682/dart_sdk.js:35897:23)
at async._AsyncCallbackEntry.new.callback (http://localhost:49682/dart_sdk.js:35920:35)
at Object._microtaskLoop (http://localhost:49682/dart_sdk.js:40808:13)
at _startMicrotaskLoop (http://localhost:49682/dart_sdk.js:40814:13)
at http://localhost:49682/dart_sdk.js:36279:9
The Flutter DevTools debugger and profiler on Chrome is available at: http://127.0.0.1:9104?uri=http://127.0.0.1:64319/lujnI6UYeBo=
Try changing firebase script line in index.html to
<script src="https://www.gstatic.com/firebasejs/8.6.1/firebase-app.js"></script>. Reference
Hello I am trying to compile pjsua for android video calling. After following steps on pjusa I am getting following errors.
../src/pjsua/pjsua_app_cli.c:1253: error: undefined reference to 'pjsua_conf_disconnect'
../src/pjsua/pjsua_app_cli.c:1277: error: undefined reference to 'pj_strncpy_with_null'
../src/pjsua/pjsua_app_cli.c:1279: error: undefined reference to 'pjsua_conf_adjust_rx_level'
../src/pjsua/pjsua_app_cli.c:1291: error: undefined reference to 'pjsua_conf_adjust_tx_level'
../src/pjsua/pjsua_app_cli.c:1314: error: undefined reference to 'pjsua_codec_set_priority'
../src/pjsua/pjsua_app_cli.c:1318: error: undefined reference to 'pjsua_vid_codec_set_priority'
../src/pjsua/pjsua_app_cli.c:1333: error: undefined reference to 'pjsua_get_state'
../src/pjsua/pjsua_app_cli.c:1335: error: undefined reference to 'pj_cli_get_cmd_id'
../src/pjsua/pjsua_app_cli.c:1353: error: undefined reference to 'pjsua_snd_get_setting'
../src/pjsua/pjsua_app_cli.c:1356: error: undefined reference to 'pj_perror_2'
../src/pjsua/pjsua_app_cli.c:1370: error: undefined reference to 'pjsua_snd_set_setting'
../src/pjsua/pjsua_app_cli.c:1372: error: undefined reference to 'pj_perror_4'
../src/pjsua/pjsua_app_cli.c:1383: error: undefined reference to 'pjsua_dump'
../src/pjsua/pjsua_app_cli.c:1394: error: undefined reference to 'pj_log_1'
../src/pjsua/pjsua_app_cli.c:1414: error: undefined reference to 'pj_log_1'
../src/pjsua/pjsua_app_cli.c:1419: error: undefined reference to 'pj_file_open'
../src/pjsua/pjsua_app_cli.c:1425: error: undefined reference to 'pj_file_write'
../src/pjsua/pjsua_app_cli.c:1426: error: undefined reference to 'pj_file_close'
../src/pjsua/pjsua_app_cli.c:1443: error: undefined reference to 'pjsua_get_state'
../src/pjsua/pjsua_app_cli.c:1473: error: undefined reference to 'pjsua_call_get_count'
../src/pjsua/pjsua_app_cli.c:1491: error: undefined reference to 'pj_strncpy'
../src/pjsua/pjsua_app_cli.c:1498: error: undefined reference to 'pjsua_msg_data_init'
../src/pjsua/pjsua_app_cli.c:1500: error: undefined reference to 'pjsua_call_make_call'
../src/pjsua/pjsua_app_cli.c:1514: error: undefined reference to 'pjsua_call_get_count'
../src/pjsua/pjsua_app_cli.c:1536: error: undefined reference to 'pj_strncpy'
../src/pjsua/pjsua_app_cli.c:1544: error: undefined reference to 'pjsua_call_make_call'
../src/pjsua/pjsua_app_cli.c:1583: error: undefined reference to 'pjsua_msg_data_init'
../src/pjsua/pjsua_app_cli.c:1594: error: undefined reference to 'pjsip_generic_string_hdr_init2'
../src/pjsua/pjsua_app_cli.c:1610: error: undefined reference to 'pjsua_call_answer2'
../src/pjsua/pjsua_app_cli.c:1623: error: undefined reference to 'pjsua_call_hangup_all'
../src/pjsua/pjsua_app_cli.c:1625: error: undefined reference to 'pjsua_call_hangup'
../src/pjsua/pjsua_app_cli.c:1634: error: undefined reference to 'pjsua_call_set_hold'
../src/pjsua/pjsua_app_cli.c:1650: error: undefined reference to 'pjsua_call_reinvite2'
../src/pjsua/pjsua_app_cli.c:1662: error: undefined reference to 'pjsua_call_update2'
../src/pjsua/pjsua_app_cli.c:1732: error: undefined reference to 'pjsua_msg_data_init'
../src/pjsua/pjsua_app_cli.c:1735: error: undefined reference to 'pjsip_generic_string_hdr_init2'
../src/pjsua/pjsua_app_cli.c:1748: error: undefined reference to 'pjsua_call_xfer'
../src/pjsua/pjsua_app_cli.c:1753: error: undefined reference to 'pjsua_call_xfer'
../src/pjsua/pjsua_app_cli.c:1778: error: undefined reference to 'pjsua_enum_calls'
../src/pjsua/pjsua_app_cli.c:1819: error: undefined reference to 'pjsua_call_is_active'
../src/pjsua/pjsua_app_cli.c:1828: error: undefined reference to 'pjsip_generic_string_hdr_init2'
../src/pjsua/pjsua_app_cli.c:1833: error: undefined reference to 'pjsua_call_xfer_replaces'
../src/pjsua/pjsua_app_cli.c:1846: error: undefined reference to 'pjsua_call_is_active'
../src/pjsua/pjsua_app_cli.c:1856: error: undefined reference to 'pjsua_call_process_redirect'
../src/pjsua/pjsua_app_cli.c:1860: error: undefined reference to 'pjsua_call_process_redirect'
../src/pjsua/pjsua_app_cli.c:1863: error: undefined reference to 'pjsua_call_process_redirect'
../src/pjsua/pjsua_app_cli.c:1866: error: undefined reference to 'pjsua_call_process_redirect'
../src/pjsua/pjsua_app_cli.c:1880: error: undefined reference to 'pjsua_call_has_media'
../src/pjsua/pjsua_app_cli.c:1895: error: undefined reference to 'pjsua_call_dial_dtmf'
../src/pjsua/pjsua_app_cli.c:1941: error: undefined reference to 'pjsua_call_send_request'
../src/pjsua/pjsua_app_cli.c:1965: error: undefined reference to 'pjsua_acc_get_count'
../src/pjsua/pjsua_app_cli.c:2023: error: undefined reference to 'pjsua_call_send_request'
../src/pjsua/pjsua_app_cli.c:2032: error: undefined reference to 'pjsua_call_get_count'
../src/pjsua/pjsua_app_cli.c:2141: error: undefined reference to 'pjsua_pool_create'
../src/pjsua/pjsua_app_cli.c:2153: error: undefined reference to 'pjsua_pool_create'
../src/pjsua/pjsua_app_cli.c:2190: error: undefined reference to 'pjsua_call_set_vid_strm'
../src/pjsua/pjsua_app_cli.c:2201: error: undefined reference to 'pjsua_call_vid_strm_op_param_default'
../src/pjsua/pjsua_app_cli.c:2204: error: undefined reference to 'pjsua_call_get_stream_info'
../src/pjsua/pjsua_app_cli.c:2214: error: undefined reference to 'pjsua_call_set_vid_strm'
../src/pjsua/pjsua_app_cli.c:2229: error: undefined reference to 'pjsua_call_vid_strm_op_param_default'
../src/pjsua/pjsua_app_cli.c:2233: error: undefined reference to 'pjsua_call_set_vid_strm'
../src/pjsua/pjsua_app_cli.c:2244: error: undefined reference to 'pjsua_call_vid_strm_op_param_default'
../src/pjsua/pjsua_app_cli.c:2248: error: undefined reference to 'pjsua_call_set_vid_strm'
../src/pjsua/pjsua_app_cli.c:2255: error: undefined reference to 'pjsua_call_vid_strm_op_param_default'
../src/pjsua/pjsua_app_cli.c:2273: error: undefined reference to 'pjmedia_vid_dev_refresh'
../src/pjsua/pjsua_app_cli.c:2285: error: undefined reference to 'pjsua_vid_preview_param_default'
../src/pjsua/pjsua_app_cli.c:2288: error: undefined reference to 'pjsua_vid_preview_start'
../src/pjsua/pjsua_app_cli.c:2289: error: undefined reference to 'pjsua_vid_preview_get_win'
../src/pjsua/pjsua_app_cli.c:2292: error: undefined reference to 'pjsua_vid_preview_get_win'
../src/pjsua/pjsua_app_cli.c:2296: error: undefined reference to 'pjsua_vid_win_set_show'
../src/pjsua/pjsua_app_cli.c:2297: error: undefined reference to 'pjsua_vid_preview_stop'
../src/pjsua/pjsua_app_cli.c:2307: error: undefined reference to 'pjsua_vid_enum_codecs'
../src/pjsua/pjsua_app_cli.c:2319: error: undefined reference to 'pjsua_vid_codec_get_param'
../src/pjsua/pjsua_app_cli.c:2323: error: undefined reference to 'pjmedia_format_get_video_format_detail'
../src/pjsua/pjsua_app_cli.c:2342: error: undefined reference to 'pjsua_vid_codec_set_priority'
../src/pjsua/pjsua_app_cli.c:2357: error: undefined reference to 'pjsua_vid_codec_get_param'
../src/pjsua/pjsua_app_cli.c:2361: error: undefined reference to 'pjsua_vid_codec_set_param'
../src/pjsua/pjsua_app_cli.c:2377: error: undefined reference to 'pjsua_vid_codec_get_param'
../src/pjsua/pjsua_app_cli.c:2381: error: undefined reference to 'pjsua_vid_codec_set_param'
../src/pjsua/pjsua_app_cli.c:2401: error: undefined reference to 'pjsua_vid_codec_set_param'
../src/pjsua/pjsua_app_cli.c:2414: error: undefined reference to 'pjsua_vid_enum_wins'
../src/pjsua/pjsua_app_cli.c:2421: error: undefined reference to 'pjsua_vid_win_get_info'
../src/pjsua/pjsua_app_cli.c:2438: error: undefined reference to 'pjsua_vid_win_set_show'
../src/pjsua/pjsua_app_cli.c:2448: error: undefined reference to 'pjsua_vid_win_set_pos'
../src/pjsua/pjsua_app_cli.c:2458: error: undefined reference to 'pjsua_vid_win_set_size'
../src/pjsua/pjsua_app_cli.c:2552: error: undefined reference to 'pj_strtoul'
../src/pjsua/pjsua_app_cli.c:2554: error: undefined reference to 'pj_thread_sleep'
../src/pjsua/pjsua_app_cli.c:2566: error: undefined reference to 'pjsua_detect_nat_type'
../src/pjsua/pjsua_app_cli.c:2576: error: undefined reference to 'pj_cli_quit'
../src/pjsua/pjsua_app_cli.c:2590: error: undefined reference to 'pj_throw_exception_'
../src/pjsua/pjsua_app_cli.c:2610: error: undefined reference to 'pj_scan_init'
../src/pjsua/pjsua_app_cli.c:2612: error: undefined reference to 'pj_push_exception_handler_'
../src/pjsua/pjsua_app_cli.c:2617: error: undefined reference to 'pj_scan_get_until_chr'
../src/pjsua/pjsua_app_cli.c:2623: error: undefined reference to 'pj_scan_fini'
../src/pjsua/pjsua_app_cli.c:2626: error: undefined reference to 'pj_pop_exception_handler_'
../src/pjsua/pjsua_app_cli.c:2640: error: undefined reference to 'pj_cli_quit'
../src/pjsua/pjsua_app_cli.c:2736: error: undefined reference to 'pj_cli_add_cmd_from_xml'
../src/pjsua/pjsua_app_cli.c:2792: error: undefined reference to 'pj_cli_add_cmd_from_xml'
../src/pjsua/pjsua_app_cli.c:2837: error: undefined reference to 'pj_cli_add_cmd_from_xml'
../src/pjsua/pjsua_app_cli.c:2872: error: undefined reference to 'pj_cli_add_cmd_from_xml'
../src/pjsua/pjsua_app_common.c:52: error: undefined reference to 'pj_strtoul'
../src/pjsua/pjsua_app_common.c:55: error: undefined reference to 'pj_strtoul'
../src/pjsua/pjsua_app_common.c:57: error: undefined reference to 'pj_strtoul'
../src/pjsua/pjsua_app_common.c:69: error: undefined reference to 'pjsua_call_get_max_count'
../src/pjsua/pjsua_app_common.c:71: error: undefined reference to 'pjsua_call_is_active'
../src/pjsua/pjsua_app_common.c:78: error: undefined reference to 'pjsua_call_is_active'
../src/pjsua/pjsua_app_common.c:92: error: undefined reference to 'pjsua_call_get_max_count'
../src/pjsua/pjsua_app_common.c:125: error: undefined reference to 'pjsip_method_init_np'
../src/pjsua/pjsua_app_common.c:127: error: undefined reference to 'pjsua_acc_create_request'
../src/pjsua/pjsua_app_common.c:129: error: undefined reference to 'pjsip_endpt_send_request'
../src/pjsua/pjsua_app_common.c:148: error: undefined reference to 'pjsua_call_dump'
../src/pjsua/pjsua_app_common.c:151: error: undefined reference to 'pj_log_get_decor'
../src/pjsua/pjsua_app_common.c:152: error: undefined reference to 'pj_log_set_decor'
../src/pjsua/pjsua_app_common.c:154: error: undefined reference to 'pj_log_set_decor'
../src/pjsua/pjsua_app_common.c:170: error: undefined reference to 'pj_log_set_decor'
../src/pjsua/pjsua_app_common.c:245: error: undefined reference to 'pjsua_vid_win_get_info'
../src/pjsua/pjsua_app_common.c:250: error: undefined reference to 'pjsua_vid_win_set_pos'
../src/pjsua/pjsua_app_common.c:257: error: undefined reference to 'pjsua_vid_win_set_pos'
../src/pjsua/pjsua_app_common.c:289: error: undefined reference to 'pjmedia_vid_dev_cap_name'
../src/pjsua/pjsua_app_common.c:301: error: undefined reference to 'pjmedia_get_video_format_info'
../src/pjsua/pjsua_app_common.c:323: error: undefined reference to 'pjsua_vid_dev_count'
../src/pjsua/pjsua_app_common.c:331: error: undefined reference to 'pjsua_vid_dev_get_info'
../src/pjsua/pjsua_app_common.c:336: error: undefined reference to 'pjsua_vid_dev_get_info'
../src/pjsua/pjsua_app_common.c:342: error: undefined reference to 'pjsua_vid_dev_get_info'
../src/pjsua/pjsua_app_config.c:219: error: undefined reference to 'pj_log_write'
../src/pjsua/pjsua_app_config.c:237: error: undefined reference to 'pj_pool_calloc'
../src/pjsua/pjsua_app_config.c:300: error: undefined reference to 'pj_pool_alloc'
../src/pjsua/pjsua_app_config.c:513: error: undefined reference to 'pj_getopt_long'
../src/pjsua/pjsua_app_config.c:562: error: undefined reference to 'pj_log_set_level'
../src/pjsua/pjsua_app_config.c:588: error: undefined reference to 'pj_log_set_color'
../src/pjsua/pjsua_app_config.c:589: error: undefined reference to 'pj_log_set_color'
../src/pjsua/pjsua_app_config.c:590: error: undefined reference to 'pj_log_set_color'
../src/pjsua/pjsua_app_config.c:591: error: undefined reference to 'pj_log_set_color'
../src/pjsua/pjsua_app_config.c:607: error: undefined reference to 'pj_dump_config'
../src/pjsua/pjsua_app_config.c:682: error: undefined reference to 'pjsua_verify_sip_url'
../src/pjsua/pjsua_app_config.c:692: error: undefined reference to 'pjsua_verify_sip_url'
../src/pjsua/pjsua_app_config.c:702: error: undefined reference to 'pjsua_verify_sip_url'
../src/pjsua/pjsua_app_config.c:776: error: undefined reference to 'pjsua_verify_url'
../src/pjsua/pjsua_app_config.c:786: error: undefined reference to 'pjsua_verify_sip_url'
../src/pjsua/pjsua_app_config.c:790: error: undefined reference to 'pj_optind'
../src/pjsua/pjsua_app_config.c:790: error: undefined reference to 'pj_optarg'
../src/pjsua/pjsua_app_config.c:790: error: undefined reference to 'pjsip_use_compact_form'
../src/pjsua/pjsua_app_config.c:790: error: undefined reference to 'pjsip_include_allow_hdr_in_dlg'
../src/pjsua/pjsua_app_config.c:790: error: undefined reference to 'pjmedia_add_rtpmap_for_static_pt'
../src/pjsua/pjsua_app_config.c:790: error: undefined reference to 'pj_optarg'
../src/pjsua/pjsua_app_config.c:899: error: undefined reference to 'pjsua_verify_url'
../src/pjsua/pjsua_app_config.c:1047: error: undefined reference to 'pj_rand'
../src/pjsua/pjsua_app_config.c:539: error: undefined reference to 'pj_getopt_long'
../src/pjsua/pjsua_app_config.c:1366: error: undefined reference to 'pj_stricmp'
../src/pjsua/pjsua_app_config.c:1425: error: undefined reference to 'pj_optarg'
../src/pjsua/pjsua_app_config.c:1425: error: undefined reference to 'pj_optind'
../src/pjsua/pjsua_app_config.c:1434: error: undefined reference to 'pjsua_config_default'
../src/pjsua/pjsua_app_config.c:1435: error: undefined reference to 'pj_get_version'
../src/pjsua/pjsua_app_config.c:1436: error: undefined reference to 'pj_get_sys_info'
../src/pjsua/pjsua_app_config.c:1437: error: undefined reference to 'pj_strdup2_with_null'
../src/pjsua/pjsua_app_config.c:1439: error: undefined reference to 'pjsua_logging_config_default'
../src/pjsua/pjsua_app_config.c:1440: error: undefined reference to 'pjsua_media_config_default'
../src/pjsua/pjsua_app_config.c:1441: error: undefined reference to 'pjsua_transport_config_default'
../src/pjsua/pjsua_app_config.c:1443: error: undefined reference to 'pjsua_transport_config_default'
../src/pjsua/pjsua_app_config.c:1460: error: undefined reference to 'pjsua_acc_config_default'
../src/pjsua/pjsua_app_config.c:1463: error: undefined reference to 'pjsua_buddy_config_default'
../src/pjsua/pjsua_app_config.c:1528: error: undefined reference to 'pj_strcat2'
../src/pjsua/pjsua_app_config.c:1536: error: undefined reference to 'pj_strcat2'
../src/pjsua/pjsua_app_config.c:1544: error: undefined reference to 'pj_strcat2'
../src/pjsua/pjsua_app_config.c:1548: error: undefined reference to 'pj_strcat2'
../src/pjsua/pjsua_app_config.c:2070: error: undefined reference to 'pjsip_use_compact_form'
/home/neosoft/PJSUA/pjproject-2.4.5/pjlib/include/pj/list.h:128: error: undefined reference to 'pj_list_insert_before'
../src/pjsua/pjsua_app_legacy.c:53: error: undefined reference to 'pjsua_enum_buddies'
../src/pjsua/pjsua_app_legacy.c:86: error: undefined reference to 'pjsua_get_buddy_count'
../src/pjsua/pjsua_app_legacy.c:86: error: undefined reference to 'pjsua_get_buddy_count'
../src/pjsua/pjsua_app_legacy.c:183: error: undefined reference to 'pjsua_acc_get_info'
../src/pjsua/pjsua_app_legacy.c:218: error: undefined reference to 'pjsua_enum_accs'
../src/pjsua/pjsua_app_legacy.c:375: error: undefined reference to 'pjsua_call_get_stream_info'
../src/pjsua/pjsua_app_legacy.c:430: error: undefined reference to 'pjmedia_vid_dev_refresh'
../src/pjsua/pjsua_app_legacy.c:440: error: undefined reference to 'pjsua_vid_preview_param_default'
../src/pjsua/pjsua_app_legacy.c:443: error: undefined reference to 'pjsua_vid_preview_start'
../src/pjsua/pjsua_app_legacy.c:444: error: undefined reference to 'pjsua_vid_preview_get_win'
../src/pjsua/pjsua_app_legacy.c:447: error: undefined reference to 'pjsua_vid_preview_get_win'
../src/pjsua/pjsua_app_legacy.c:451: error: undefined reference to 'pjsua_vid_win_set_show'
../src/pjsua/pjsua_app_legacy.c:452: error: undefined reference to 'pjsua_vid_preview_stop'
../src/pjsua/pjsua_app_legacy.c:465: error: undefined reference to 'pjsua_vid_enum_wins'
../src/pjsua/pjsua_app_legacy.c:482: error: undefined reference to 'pjsua_vid_win_set_show'
../src/pjsua/pjsua_app_legacy.c:489: error: undefined reference to 'pjsua_vid_win_set_pos'
../src/pjsua/pjsua_app_legacy.c:496: error: undefined reference to 'pjsua_vid_win_set_size'
../src/pjsua/pjsua_app_legacy.c:512: error: undefined reference to 'pjsua_vid_enum_codecs'
../src/pjsua/pjsua_app_legacy.c:528: error: undefined reference to 'pjmedia_format_get_video_format_detail'
../src/pjsua/pjsua_app_legacy.c:558: error: undefined reference to 'pjsua_vid_codec_set_param'
../src/pjsua/pjsua_app_legacy.c:625: error: undefined reference to 'pj_strncpy'
../src/pjsua/pjsua_app_legacy.c:636: error: undefined reference to 'pjsua_call_make_call'
../src/pjsua/pjsua_app_legacy.c:667: error: undefined reference to 'pj_strncpy'
../src/pjsua/pjsua_app_legacy.c:684: error: undefined reference to 'pjsua_detect_nat_type'
../src/pjsua/pjsua_app_legacy.c:724: error: undefined reference to 'pjsua_call_send_typing_ind'
../src/pjsua/pjsua_app_legacy.c:727: error: undefined reference to 'pjsua_im_typing'
../src/pjsua/pjsua_app_legacy.c:737: error: undefined reference to 'pjsua_call_send_typing_ind'
../src/pjsua/pjsua_app_legacy.c:740: error: undefined reference to 'pjsua_im_typing'
../src/pjsua/pjsua_app_legacy.c:749: error: undefined reference to 'pjsua_call_send_im'
../src/pjsua/pjsua_app_legacy.c:752: error: undefined reference to 'pjsua_im_send'
../src/pjsua/pjsua_app_legacy.c:815: error: undefined reference to 'pjsua_call_answer2'
../src/pjsua/pjsua_app_legacy.c:828: error: undefined reference to 'pjsua_call_hangup_all'
../src/pjsua/pjsua_app_legacy.c:866: error: undefined reference to 'pjsua_acc_is_valid'
../src/pjsua/pjsua_app_legacy.c:867: error: undefined reference to 'pjsua_acc_set_default'
../src/pjsua/pjsua_app_legacy.c:894: error: undefined reference to 'pjsua_buddy_add'
../src/pjsua/pjsua_app_legacy.c:918: error: undefined reference to 'pjsua_acc_config_default'
../src/pjsua/pjsua_app_legacy.c:931: error: undefined reference to 'pjsua_acc_add'
../src/pjsua/pjsua_app_legacy.c:947: error: undefined reference to 'pjsua_buddy_is_valid'
../src/pjsua/pjsua_app_legacy.c:950: error: undefined reference to 'pjsua_buddy_del'
../src/pjsua/pjsua_app_legacy.c:965: error: undefined reference to 'pjsua_acc_is_valid'
../src/pjsua/pjsua_app_legacy.c:968: error: undefined reference to 'pjsua_acc_del'
../src/pjsua/pjsua_app_legacy.c:976: error: undefined reference to 'pjsua_call_set_hold'
../src/pjsua/pjsua_app_legacy.c:985: error: undefined reference to 'pjsua_call_reinvite2'
../src/pjsua/pjsua_app_legacy.c:991: error: undefined reference to 'pjsua_call_update2'
../src/pjsua/pjsua_app_legacy.c:1011: error: undefined reference to 'pjsua_enum_codecs'
../src/pjsua/pjsua_app_legacy.c:1020: error: undefined reference to 'pjsua_vid_enum_codecs'
../src/pjsua/pjsua_app_legacy.c:1058: error: undefined reference to 'pjsua_codec_set_priority'
../src/pjsua/pjsua_app_legacy.c:1110: error: undefined reference to 'pjsua_call_xfer'
../src/pjsua/pjsua_app_legacy.c:1116: error: undefined reference to 'pjsua_call_xfer'
../src/pjsua/pjsua_app_legacy.c:1138: error: undefined reference to 'pjsua_enum_calls'
../src/pjsua/pjsua_app_legacy.c:1200: error: undefined reference to 'pjsua_call_xfer_replaces'
../src/pjsua/pjsua_app_legacy.c:1210: error: undefined reference to 'pjsua_call_has_media'
../src/pjsua/pjsua_app_legacy.c:1230: error: undefined reference to 'pjsua_call_dial_dtmf'
../src/pjsua/pjsua_app_legacy.c:1276: error: undefined reference to 'pjsua_call_send_request'
../src/pjsua/pjsua_app_legacy.c:1293: error: undefined reference to 'pjsua_acc_get_count'
../src/pjsua/pjsua_app_legacy.c:1342: error: undefined reference to 'pjsua_call_send_request'
../src/pjsua/pjsua_app_legacy.c:1378: error: undefined reference to 'pj_thread_sleep'
../src/pjsua/pjsua_app_legacy.c:1393: error: undefined reference to 'pjsua_buddy_subscribe_pres'
../src/pjsua/pjsua_app_legacy.c:1398: error: undefined reference to 'pjsua_buddy_subscribe_pres'
../src/pjsua/pjsua_app_legacy.c:1414: error: undefined reference to 'pjsua_acc_set_registration'
../src/pjsua/pjsua_app_legacy.c:1420: error: undefined reference to 'pjsua_acc_set_registration'
../src/pjsua/pjsua_app_legacy.c:1513: error: undefined reference to 'pjsua_acc_set_online_status2'
../src/pjsua/pjsua_app_legacy.c:1527: error: undefined reference to 'pjsua_enum_conf_ports'
../src/pjsua/pjsua_app_legacy.c:1534: error: undefined reference to 'pjsua_conf_get_port_info'
../src/pjsua/pjsua_app_legacy.c:1581: error: undefined reference to 'pjsua_conf_disconnect'
../src/pjsua/pjsua_app_legacy.c:1598: error: undefined reference to 'pjsua_conf_adjust_rx_level'
../src/pjsua/pjsua_app_legacy.c:1604: error: undefined reference to 'pjsua_conf_adjust_tx_level'
../src/pjsua/pjsua_app_legacy.c:1642: error: undefined reference to 'pj_file_open'
../src/pjsua/pjsua_app_legacy.c:1647: error: undefined reference to 'pj_file_write'
../src/pjsua/pjsua_app_legacy.c:1648: error: undefined reference to 'pj_file_close'
../src/pjsua/pjsua_app_legacy.c:1660: error: undefined reference to 'pjsua_dump'
../src/pjsua/pjsua_app_legacy.c:1730: error: undefined reference to 'pjsua_call_setting_default'
collect2: error: ld returned 1 exit status
make[1]: *** [../bin/pjsua-arm-unknown-linux-androideabi] Error 1
make[1]: Leaving directory `/home/neosoft/PJSUA/pjproject-2.4.5/pjsip-apps/build'
make: *** [pjsua-arm-unknown-linux-androideabi] Error 2
Stuck for a while on this issue. Any suggestions on this?
Android ndk-path should be available in the ANDROID_NDK_ROOT environment variable.
Configure and compile pjsip with the desired TARGET_ANDROID_API, arch and buildtype:
$ NDK_TOOLCHAIN_VERSION=clang APP_PLATFORM=android-${TARGET_ANDROID_API} TARGET_ABI=$arch BUILD_TYPE=${buildtype} ./configure-android --use-ndk-cflags
$ make dep
$ make
Compile pjsua:
$ cd pjsip-apps/src/swig
$ make
libpjsua2.so will be created in pjsip-apps/src/swig/java/android/libs/armeabi directory.
We have random System.ArgumentException with Xamarin on android. It is completely random - it can occur anytime and anywhere, on any platform. We registered it on 5.1, 5.0, 4.4.4.
It has no adequate stacktrace, it has no place where it thrown, I can't catch it with anything. I think it might be somehow related to async void, we use MVVMCross in the project and there are many async void Init and async void DoMvxCommand methods. But all of them enclosed in try-catch blocks.
I crucially need any advice how to fix or at least find the reason of this crash. Here is the latest crash log
undefined INFO: ActivityManager : Displayed com.website.app/md599d9a15f782f9118e8e70c354562b227.SuccessPaymentView: +220ms
undefined WARN: ContextImpl : Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1629 com.android.server.InputMethodManagerService$6.run:2728 java.lang.Thread.run:818 <bottom of call stack> <bottom of call stack>
undefined WARN: ActivityManager : mDVFSHelper.release()
undefined INFO: Timeline : Timeline: Activity_windows_visible id: ActivityRecord{1aca0d50 u0 com.website.app/md599d9a15f782f9118e8e70c354562b227.SuccessPaymentView t5672} time:169720248
undefined INFO: MonoDroid : UNHANDLED EXCEPTION:
undefined INFO: MonoDroid : System.ArgumentException: 'jobject' must not be IntPtr.Zero.
undefined INFO: MonoDroid : Parameter name: jobject
undefined INFO: MonoDroid : at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x00028>
undefined INFO: MonoDroid : at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>m__0 (object) <0x0003f>
undefined INFO: MonoDroid : at Android.App.SyncContext/<Post>c__AnonStorey0.<>m__0 () <0x00027>
undefined INFO: MonoDroid : at Java.Lang.Thread/RunnableImplementor.Run () <0x0003f>
undefined INFO: MonoDroid : at Java.Lang.IRunnableInvoker.n_Run (intptr,intptr) <0x0003b>
undefined INFO: MonoDroid : at (wrapper dynamic-method) object.81971695-c4eb-4dd7-9e27-0dec45822877 (intptr,intptr) <0x0003b>
undefined DEBUG: LockPatternUtilsCache : getCarrierLockPlusMode()
undefined DEBUG: LockPatternUtilsCache : value : false
undefined WARN: Xamarin.Insights : Warning: Unhandled exception: System.ArgumentException: 'jobject' must not be IntPtr.Zero.
undefined WARN: Xamarin.Insights : Parameter name: jobject
undefined WARN: Xamarin.Insights : at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x00028>
undefined WARN: Xamarin.Insights : at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>m__0 (object) <0x0003f>
undefined WARN: Xamarin.Insights : at Android.App.SyncContext/<Post>c__AnonStorey0.<>m__0 () <0x00027>
undefined WARN: Xamarin.Insights : at Java.Lang.Thread/RunnableImplementor.Run () <0x0003f>
undefined WARN: Xamarin.Insights : at Java.Lang.IRunnableInvoker.n_Run (intptr,intptr) <0x0003b>
undefined WARN: Xamarin.Insights : at (wrapper dynamic-method) object.81971695-c4eb-4dd7-9e27-0dec45822877 (intptr,intptr) <0x0003b>
undefined WARN: art : JNI RegisterNativeMethods: attempt to register 0 native methods for md52ce486a14f4bcd95899665e9d932190b.JavaProxyThrowable
undefined DEBUG: AndroidRuntime : Shutting down VM
undefined WARN: System.err : java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
undefined WARN: System.err : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
undefined WARN: System.err : Caused by: java.lang.reflect.InvocationTargetException
undefined WARN: System.err : at java.lang.reflect.Method.invoke(Native Method)
undefined WARN: System.err : at java.lang.reflect.Method.invoke(Method.java:372)
undefined WARN: System.err : at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
undefined WARN: System.err : ... 1 more
undefined WARN: System.err : Caused by: md52ce486a14f4bcd95899665e9d932190b.JavaProxyThrowable: System.ArgumentException: 'jobject' must not be IntPtr.Zero.
undefined WARN: System.err : Parameter name: jobject
undefined WARN: System.err : at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x00028>
undefined WARN: System.err : at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>m__0 (object) <0x0003f>
undefined WARN: System.err : at Android.App.SyncContext/<Post>c__AnonStorey0.<>m__0 () <0x00027>
undefined WARN: System.err : at Java.Lang.Thread/RunnableImplementor.Run () <0x0003f>
undefined WARN: System.err : at Java.Lang.IRunnableInvoker.n_Run (intptr,intptr) <0x0003b>
undefined WARN: System.err : at (wrapper dynamic-method) object.81971695-c4eb-4dd7-9e27-0dec45822877 (intptr,intptr) <0x0003b>
undefined WARN: System.err : at mono.java.lang.RunnableImplementor.n_run(Native Method)
undefined WARN: System.err : at mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:29)
undefined WARN: System.err : at android.os.Handler.handleCallback(Handler.java:739)
undefined WARN: System.err : at android.os.Handler.dispatchMessage(Handler.java:95)
undefined WARN: System.err : at android.os.Looper.loop(Looper.java:145)
undefined WARN: System.err : at android.app.ActivityThread.main(ActivityThread.java:5832)
undefined WARN: System.err : ... 4 more
undefined WARN: FlurryAgent : Error logged: uncaught
undefined WARN: FlurryAgent : Flurry session ended
undefined ERROR: AndroidRuntime : FATAL EXCEPTION: main
undefined ERROR: AndroidRuntime : Process: com.website.app, PID: 27622
undefined ERROR: AndroidRuntime : java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
undefined ERROR: AndroidRuntime : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
undefined ERROR: AndroidRuntime : Caused by: java.lang.reflect.InvocationTargetException
undefined ERROR: AndroidRuntime : at java.lang.reflect.Method.invoke(Native Method)
undefined ERROR: AndroidRuntime : at java.lang.reflect.Method.invoke(Method.java:372)
undefined ERROR: AndroidRuntime : at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
undefined ERROR: AndroidRuntime : ... 1 more
undefined ERROR: AndroidRuntime : Caused by: md52ce486a14f4bcd95899665e9d932190b.JavaProxyThrowable: System.ArgumentException: 'jobject' must not be IntPtr.Zero.
undefined ERROR: AndroidRuntime : Parameter name: jobject
undefined ERROR: AndroidRuntime : at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x00028>
undefined ERROR: AndroidRuntime : at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>m__0 (object) <0x0003f>
undefined ERROR: AndroidRuntime : at Android.App.SyncContext/<Post>c__AnonStorey0.<>m__0 () <0x00027>
undefined ERROR: AndroidRuntime : at Java.Lang.Thread/RunnableImplementor.Run () <0x0003f>
undefined ERROR: AndroidRuntime : at Java.Lang.IRunnableInvoker.n_Run (intptr,intptr) <0x0003b>
undefined ERROR: AndroidRuntime : at (wrapper dynamic-method) object.81971695-c4eb-4dd7-9e27-0dec45822877 (intptr,intptr) <0x0003b>
undefined ERROR: AndroidRuntime : at mono.java.lang.RunnableImplementor.n_run(Native Method)
undefined ERROR: AndroidRuntime : at mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:29)
undefined ERROR: AndroidRuntime : at android.os.Handler.handleCallback(Handler.java:739)
undefined ERROR: AndroidRuntime : at android.os.Handler.dispatchMessage(Handler.java:95)
undefined ERROR: AndroidRuntime : at android.os.Looper.loop(Looper.java:145)
undefined ERROR: AndroidRuntime : at android.app.ActivityThread.main(ActivityThread.java:5832)
undefined ERROR: AndroidRuntime : ... 4 more
undefined WARN: ActivityManager : Force finishing activity com.website.app/md599d9a15f782f9118e8e70c354562b227.SuccessPaymentView
undefined DEBUG: PowerManagerService : [input device light] setInputDeviceLightOn is called : 1
undefined WARN: ActivityManager : Force finishing activity com.website.app/md599d9a15f782f9118e8e70c354562b227.PaymentFormView
undefined INFO: SQLiteSecureOpenHelper : getWritableDatabase(pwd)
undefined INFO: SQLiteSecureOpenHelper : getDatabaseLocked(b,b,pwd)...
undefined INFO: dumpstate : begin
undefined DEBUG: StatusBarManagerService : manageDisableList userId=0 what=0x0 pkg=WindowManager.LayoutParams
undefined INFO: SurfaceFlinger : id=3018 createSurf (49x49),1 flag=4, Application Error: com.website.app
undefined DEBUG: CrashAnrDetector : processName: com.website.app
undefined DEBUG: CrashAnrDetector : broadcastEvent : com.website.app data_app_crash
undefined INFO: SQLiteSecureOpenHelper : getWritableDatabase(pwd)
undefined INFO: SQLiteSecureOpenHelper : getDatabaseLocked(b,b,pwd)...
undefined WARN: ContextImpl : Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1643 com.android.server.analytics.data.collection.application.CrashAnrDetector.broadcastEvent:296 com.android.server.analytics.data.collection.application.CrashAnrDetector.processDropBoxEntry:254 com.android.server.analytics.data.collection.application.CrashAnrDetector.access$100:60 com.android.server.analytics.data.collection.application.CrashAnrDetector$1.onReceive:102
undefined INFO: WifiStateMachine : CMD_RSSI_POLL : calculateWifiScore in!
undefined INFO: WifiStateMachine : CMD_RSSI_POLL : calculateWifiScore out!
undefined INFO: WifiStateMachine : CMD_RSSI_POLL : out!
undefined ERROR: android.os.Debug : !#Dumpstate > sdumpstate -k -t -z -d -o /data/log/dumpstate_app_error
I had a very similar issue with Android throwing NullRefenceExceptions seemingly randomly (which was actually because things were running asynchronously/concurrently) and they would never break at the correct spot and the StackTrace was completely worthless. See the thread and solution here.
Anyway, 2 parts of the solution that allowed me to figure out the issue were:
Turn on the setting in Visual Studio in order to break/throw on the specific exception. To do this, head to this post. The post describes going to Visual Studio -> Debug -> Exceptions... (or Ctrl + Alt + E)
Then, to find that exception, expand 'Common Language Runtime Exceptions' -> 'System' -> then check the 'Thrown' box next 'System.ArgumentException'. Now it will, hopefully, break on the line where that exception actually happens. Also you will definitely want to turn this off once the issue has been fixed so that you do not start hitting exceptions that you do not really need to handle.
Override Android's exception handler event, called UnhandledExceptionRaiser, and then set a breakpoint within the event in order to help you catch some of these exceptions before your app crashes. The event info can be found in this post (I ended up just putting that event into MainActivity.cs.
Here is my exception event code:
AndroidEnvironment.UnhandledExceptionRaiser += (sender, args) => {
args.Handled = false;
};
I just put a break point on args.Handled and look through the details but you could also print out the exception or something.
Finally, one more thing that I found on my own but have heard others mention, is that you can usually find more helpful exception source info by digging into the exception details and finding captured_traces.
To find this, you need to keep expanding the exception instance's base property, in the exception details window, until you are in System.Exception. Then follow the steps below (though sometimes you have to go into the inner exception before following the below steps):
System.Exception -> Non-public members -> captured_traces -> then you usually want [0] but sometimes there are others to look through -> Non-public members -> frames -> now you usually either want [0] or you want the last one in the list -> Non-public members -> and finally you will be able to see the file in the fileName property and the line number in the 'lineNumber' property (imagine that).
Now I am sure there is a fancy way to extract this info with reflection or something without digging through the exception details. If anyone knowns how, I would love to hear it!
I have successfully build CSipSimple for android by make command. After that, when I try to build video support libary by calling make VideoLibs command, there is an error appears.
[armeabi] SharedLibrary : libpj_video_android.so
[armeabi-v7a] SharedLibrary : libpj_video_android.so
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1086: error: undefined reference to 'av_strerror'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1324: error: undefined reference to 'avcodec_close'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1325: error: undefined reference to 'av_free'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1328: error: undefined reference to 'avcodec_close'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1329: error: undefined reference to 'av_free'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1430: error: undefined reference to 'avcodec_get_frame_defaults'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1455: error: undefined reference to 'av_init_packet'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1460: error: undefined reference to 'avcodec_encode_video2'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:409: error: undefined reference to 'av_opt_set'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:427: error: undefined reference to 'av_opt_set_int'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:434: error: undefined reference to 'av_opt_set_int'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:442: error: undefined reference to 'av_opt_set'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:445: error: undefined reference to 'av_opt_set'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1116: error: undefined reference to 'avcodec_alloc_context3'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1125: error: undefined reference to 'avcodec_alloc_context3'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1185: error: undefined reference to 'avcodec_open2'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1200: error: undefined reference to 'avcodec_open2'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1222: error: undefined reference to 'avcodec_close'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1223: error: undefined reference to 'av_free'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1228: error: undefined reference to 'avcodec_close'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1229: error: undefined reference to 'av_free'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1680: error: undefined reference to 'avcodec_get_frame_defaults'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1683: error: undefined reference to 'av_init_packet'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1705: error: undefined reference to 'avcodec_decode_video2'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:629: error: undefined reference to 'avcodec_register_all'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:632: error: undefined reference to 'av_codec_next'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia/converter_libswscale.c:172: error: undefined reference to 'sws_freeContext'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia/converter_libswscale.c:152: error: undefined reference to 'sws_scale'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia/converter_libswscale.c:112: error: undefined reference to 'sws_getContext'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia/ffmpeg_util.c:113: error: undefined reference to 'av_log_get_level'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia/ffmpeg_util.c:88: error: undefined reference to 'av_log_set_level'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia/ffmpeg_util.c:89: error: undefined reference to 'av_log_set_callback'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia/ffmpeg_util.c:90: error: undefined reference to 'av_register_all'
collect2: error: ld returned 1 exit status
make[1]: *** [obj/local/armeabi/libpj_video_android.so] Error 1
make[1]: *** Waiting for unfinished jobs....
[armeabi-v7a] Install : libpjsipjni.so => ./libs/armeabi-v7a/libpjsipjni.so
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1086: error: undefined reference to 'av_strerror'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1324: error: undefined reference to 'avcodec_close'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1325: error: undefined reference to 'av_free'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1328: error: undefined reference to 'avcodec_close'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1329: error: undefined reference to 'av_free'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1430: error: undefined reference to 'avcodec_get_frame_defaults'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1455: error: undefined reference to 'av_init_packet'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1460: error: undefined reference to 'avcodec_encode_video2'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:409: error: undefined reference to 'av_opt_set'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:427: error: undefined reference to 'av_opt_set_int'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:434: error: undefined reference to 'av_opt_set_int'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:442: error: undefined reference to 'av_opt_set'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:445: error: undefined reference to 'av_opt_set'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1116: error: undefined reference to 'avcodec_alloc_context3'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1125: error: undefined reference to 'avcodec_alloc_context3'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1185: error: undefined reference to 'avcodec_open2'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1200: error: undefined reference to 'avcodec_open2'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1222: error: undefined reference to 'avcodec_close'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1223: error: undefined reference to 'av_free'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1228: error: undefined reference to 'avcodec_close'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1229: error: undefined reference to 'av_free'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1680: error: undefined reference to 'avcodec_get_frame_defaults'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1683: error: undefined reference to 'av_init_packet'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:1705: error: undefined reference to 'avcodec_decode_video2'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:629: error: undefined reference to 'avcodec_register_all'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:632: error: undefined reference to 'av_codec_next'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia-codec/ffmpeg_vid_codecs.c:632: error: undefined reference to 'av_codec_next'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia/converter_libswscale.c:172: error: undefined reference to 'sws_freeContext'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia/converter_libswscale.c:152: error: undefined reference to 'sws_scale'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia/converter_libswscale.c:112: error: undefined reference to 'sws_getContext'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia/ffmpeg_util.c:113: error: undefined reference to 'av_log_get_level'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia/ffmpeg_util.c:88: error: undefined reference to 'av_log_set_level'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia/ffmpeg_util.c:89: error: undefined reference to 'av_log_set_callback'
jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/src/pjmedia/ffmpeg_util.c:90: error: undefined reference to 'av_register_all'
collect2: error: ld returned 1 exit status
make[1]: *** [obj/local/armeabi-v7a/libpj_video_android.so] Error 1
make[1]: Leaving directory `/home/alexchengalan/android/files/CSipSimple-trunk/CSipSimple'
make: *** [VideoLibs] Error 2
It would be great if anyone can help me out of this problem.
Modify jni\pjsip\android_toolchain\pjmedia\Video.mk; then, it would be ok.
# Ffmpeg codec
BASE_FFMPEG_BUILD_DIR := $(LOCAL_PATH)/../../../ffmpeg/build/ffmpeg/$(TARGET_ARCH_ABI)/lib
LOCAL_LDLIBS += $(BASE_FFMPEG_BUILD_DIR)/libavcodec.a \
$(BASE_FFMPEG_BUILD_DIR)/libavformat.a \
$(BASE_FFMPEG_BUILD_DIR)/libswscale.a \
$(BASE_FFMPEG_BUILD_DIR)/libavutil.a
# Add X264
BASE_X264_BUILD_DIR := $(LOCAL_PATH)/../../../ffmpeg/build/x264/$(TARGET_ARCH_ABI)/lib
LOCAL_LDLIBS += $(BASE_X264_BUILD_DIR)/libx264.a
For details, see: (https://groups.google.com/forum/#!topic/csipsimple-dev/bSauDx-hnR0)