PJSIP Undefined Symbols Architecture Armv7 - objective-c

I am trying to compile the pjsip from http://trac.pjsip.org/repos/wiki/Getting-Started/iPhone.
cd /path/to/your/pjsip/dir
$ ./configure-iphone
$ make dep && make clean && make
I get following undefined symbols error.
Undefined symbols for architecture armv7:
"_pjmedia_avi_streams_get_num_streams", referenced from:
_app_init in pjsua_app.o
_reset_dev_info in libpjmedia-videodev-arm-apple-darwin9.a(avi_dev.o)
"_pjmedia_avi_streams_get_stream", referenced from:
_app_init in pjsua_app.o
_reset_dev_info in libpjmedia-videodev-arm-apple-darwin9.a(avi_dev.o)
"_pjmedia_vid_register_factory", referenced from:
_pjmedia_avi_dev_create_factory in libpjmedia-videodev-arm-apple-darwin9.a(avi_dev.o)
"_pjmedia_vid_dev_get_local_index", referenced from:
_pjmedia_avi_dev_get_param in libpjmedia-videodev-arm-apple-darwin9.a(avi_dev.o)
_pjmedia_avi_dev_free in libpjmedia-videodev-arm-apple-darwin9.a(avi_dev.o)
"_pjmedia_vid_dev_get_global_index", referenced from:
_pjmedia_avi_dev_alloc in libpjmedia-videodev-arm-apple-darwin9.a(avi_dev.o)
"_pjmedia_avi_player_create_streams", referenced from:
_pjmedia_avi_dev_alloc in libpjmedia-videodev-arm-apple-darwin9.a(avi_dev.o)
"_pjmedia_avi_streams_get_stream_by_media", referenced from:
_pjmedia_avi_dev_alloc in libpjmedia-videodev-arm-apple-darwin9.a(avi_dev.o)
ld: symbol(s) not found for architecture armv7
collect2: ld returned 1 exit status
make[2]: *** [../bin/pjsua-arm-apple-darwin9] Error 1
make[1]: *** [pjsua] Error 2
make: *** [all] Error 1
Please help in compiling this project in for Xcode 4.3.

It looks like you are missing a library that you should be linking against. From the symbol errors it looks like it might be called pjmedia. Make sure you are linking against all the libraries. precompiled o files that pjsip requires

Related

Objective-c JSONModel

I followed the instruction to instal JSONModel to my project. However, I am having an issue with Apple Mach - O Linker Error.
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_NSEntityDescription", referenced from:
objc-class-ref in JSONModel+CoreData.o
"_OBJC_CLASS_$_NSManagedObject", referenced from:
l_OBJC_$_CATEGORY_NSManagedObject_$_JSONModel in JSONModel+CoreData.o
objc-class-ref in JSONModel+CoreData.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I added SystemConfiguration.framework as well.
Please help me. Thank you.
Add CoreData.framework to your target.

symbol(s) not found for architecture armv7s (linker command failed with exit code 1)

When I build in Xcode 5 for IOS7 I get this error:
Undefined symbols for architecture armv7s:
"_OBJC_CLASS_$_CIFilter", referenced from:
objc-class-ref in UIImage+Filter.o
"_kCIInputImageKey", referenced from:
-[UIImage(Filter) filterWithPreset:] in UIImage+Filter.o
"_OBJC_CLASS_$_CIImage", referenced from:
objc-class-ref in UIImage+Filter.o
"_OBJC_CLASS_$_CIContext", referenced from:
objc-class-ref in UIImage+Filter.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I notice that the error goes away if I remove the UIImage+Filter.h/m file and UIImageView+Filter.h/m
Easy... Make sure you import CoreImage framework

UnittWebSocketClient iOS error

error on build for ios device....
ld: warning: ignoring file /Users/andre/Downloads/UnittWebSocketClient/bin/Debug-iphonesimulator/libUnittWebSocketClient.a, file was built for archive which is not the architecture being linked (armv7): /Users/andre/Downloads/UnittWebSocketClient/bin/Debug-iphonesimulator/libUnittWebSocketClient.a
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_WebSocket", referenced from:
objc-class-ref in ViewController.o
"_OBJC_CLASS_$_WebSocketConnectConfig", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
this is my answer.
checkout from this url : https://code.google.com/p/unitt/source/checkout
include [unitt\iOS\UnittWebSocketClient\trunk\UnittWebSocketClient] into your Project. (.h, .m)
remove libUnittWebSocketClient.a lib file from your Project.

Problems parsing XML in Objective - C

I am currently trying to make a simple "Server Status" app for a game I play, All it needs to do is parse XML from a URL and output the result. I am currently stuck on these errors which I think have something to do with the way I linked/incorporated my GDataXML
See Images for Error(s), Sorry I could post picture directly. Not enough reputation:
Error (1)
Undefined symbols for architecture i386: "_OBJC_CLASS_$_GDataXMLDocument", referenced from: objc-class-ref in ViewController.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error (2)
Undefined symbols for architecture i386: "_OBJC_CLASS_$_GDataXMLDocument", referenced from: objc-class-ref in ViewController.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Linker can't find object for GDataXML.
Looks like you need build GDataXML and add path where library built to the linker.
It might be as you suspect, the class you are trying to use isn't incorporated in your project correctly, or linked to the target correctly. Maybe this SO post will help you more.

Libmms and iOS 5, Xcode 4.2

Every time I try complier my that is using the libmms. I recieved follow linker error:
Undefined symbols for architecture i386:
"_Status_GetNewStatusByKey", referenced from:
_report_progress in mms.o "_Status_SetNewStatusByKey", referenced from:
_report_progress in mms.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1
(use -v to see invocation)
Any help would be helpfully