cannot find libxml in GDataXMLNode.h

65 views
Skip to first unread message

gyozo

unread,
Jul 5, 2011, 4:52:44 AM7/5/11
to Google Data APIs Objective-C Client Library Discussion
Hello I tried to follow this tutorial
http://code.google.com/p/gdata-objectivec-client/wiki/BuildingTheLibrary
to build and use the library in an iPhone app, but when using the
library from another project it gives me errors in the Gdata project
in GDataXMLNode.h saying that it cannot find libxml. I tried adding /
usr/include/libxml2 to the header search paths for the
GDataTouchStaticlib and adding -lxml2 to the other linker flags but it
didn't help. All I was trying to do was to make a test project that
uses this library by doing #import "GDataCalendar.h". I must also
mention that I had trouble finding the headers and modified the "Copy
Static Library Headers" build phase and replaced the path with an
absolute one otherwise I couldn't find the headers. My final goal is
to have an app that has a button that allows the user to login with
his google account, I have one already for facebook. Any help is
appreciated.

Chakradhar k

unread,
Jul 6, 2011, 12:50:39 AM7/6/11
to gdata-objec...@googlegroups.com
Did you add the Frameworks...Security.framework and SystemConfiguration.framework ?


--
You received this message because you are subscribed to the Google Groups "Google Data APIs Objective-C Client Library Discussion" group.
To post to this group, send email to gdata-objec...@googlegroups.com.
To unsubscribe from this group, send email to gdata-objectivec-...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gdata-objectivec-client?hl=en.


saminathan ponnusamy

unread,
Jul 6, 2011, 1:48:27 AM7/6/11
to gdata-objec...@googlegroups.com

saminathan ponnusamy

unread,
Jul 6, 2011, 2:52:07 AM7/6/11
to gdata-objec...@googlegroups.com
yes I DID

gyozo kudor

unread,
Jul 6, 2011, 4:33:38 AM7/6/11
to gdata-objec...@googlegroups.com
Actually I posted this question and I have also added those frameworks. I'm also not sure what do I need to use if I only need to use oauth2 to sign in to google, and get the email address of the user and his name. I'm also trying out gtm-oauth2 but that also gives me some weird exception after signing in to google.

saminathan ponnusamy

unread,
Jul 6, 2011, 4:54:40 AM7/6/11
to gdata-objec...@googlegroups.com
you can use default instead of user name/ email id of signed in user.

Greg Robbins

unread,
Jul 6, 2011, 2:43:24 PM7/6/11
to gdata-objec...@googlegroups.com
Your message does not give enough detail about what the code is trying to accomplish, or exactly what errors you are seeing.

Logging in to Google doesn't have a meaning independent of use of specific Google APIs.

The OAuth 2 library does automatically retrieve the user's email address and provide it as a property of the auth object. The userEmail property is used by the OAuth 2 sample apps. The user's name is not necessarily available via current APIs, as far as I am aware.

libxml2 is built in to iOS and Mac OS X, so I expect a link failure for that is due to a mistake or typo in the target's build settings.

gyozo kudor

unread,
Jul 7, 2011, 4:13:32 AM7/7/11
to gdata-objec...@googlegroups.com
Ok, I'm using the oauth2 library, i didn't figure out what was wrong with the gdata library. I got the email address from the userEmail property, and will probably ask the user for his name. Thanks for help anyway.


--
Reply all
Reply to author
Forward
0 new messages