Message from discussion
Compiling Issues - Both static library and adding references to project - YouTube for iPhone
Client Library Discussion <gdata-objectivec-client@googlegroups.com>
Received: by 10.101.105.7 with SMTP id h7mr4179618anm.38.1314146980691;
Tue, 23 Aug 2011 17:49:40 -0700 (PDT)
X-BeenThere: gdata-objectivec-client@googlegroups.com
Received: by 10.90.122.4 with SMTP id u4ls29479693agc.5.gmail; Tue, 23 Aug
2011 17:49:38 -0700 (PDT)
Received: by 10.236.176.136 with SMTP id b8mr20370891yhm.7.1314146978222;
Tue, 23 Aug 2011 17:49:38 -0700 (PDT)
Received: by 10.151.138.5 with SMTP id q5msybn;
Tue, 23 Aug 2011 17:30:33 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.101.152.17 with SMTP id e17mr799161ano.0.1314145831900; Tue,
23 Aug 2011 17:30:31 -0700 (PDT)
Received: by x11g2000yqx.googlegroups.com with HTTP; Tue, 23 Aug 2011 17:30:31
-0700 (PDT)
Date: Tue, 23 Aug 2011 17:30:31 -0700 (PDT)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:6.0)
Gecko/20100101 Firefox/6.0,gzip(gfe)
Message-ID: <5af23364-c0e8-4761-99f6-9ebb5b7ee7c3@x11g2000yqx.googlegroups.com>
Subject: Compiling Issues - Both static library and adding references to
project - YouTube for iPhone
From: seejaneworkit <seejanewor...@gmail.com>
To: Google Data APIs Objective-C Client Library Discussion <gdata-objectivec-client@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
I've been having problems trying to compile the static library or
adding references to my project using the most current Google Code in
SVN. The YouTube example provided also has issues with its references
to the GData project and does not compile despite my efforts to relink
the project prior to compiling and/or allowing it to use the dynamic
references and copy scripts it includes by default.
The static library is preferred but the steps provided in the Wiki to
create it are a bit unclear. If there are better steps or screenshots,
that would be preferred. http://code.google.com/p/gdata-objectivec-client/wiki/BuildingTheLibrary
In trying to add the resources directly to my project I get a
duplicate symbol error for main at compile-time. If I remove the GData
resources, the error disappears ( see below ).
If there is a better example of a functional project with the GData
static library that would be great. Otherwise, if there are steps to
resolve the compile-time errors for the YouTube example within the
GData project, that would also be great. However, that example doesn't
appear to be using the static library.
Any help to get this code to compile would be greatly appreciated.
And, if JSON is anywhere in the foreseeable future, I would love to
know. XML is less than optimal for mobile development.
Thanks in advance!
Jane
Ld "/Users/seejaneworkit/Library/Developer/Xcode/DerivedData/
Drive_Me_Crazy-adfsjujimcorzheiaqddfrkfuodf/Build/Products/Debug-
iphonesimulator/DMC Dev.app/DMC Dev" normal i386
cd /Users/seejaneworkit/Sites/iPhone/DriveMeCrazy/trunk
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/
Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/
llvm-gcc-4.2 -arch i386 -isysroot /Developer/Platforms/
iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -L/
Users/seejaneworkit/Library/Developer/Xcode/DerivedData/Drive_Me_Crazy-
adfsjujimcorzheiaqddfrkfuodf/Build/Products/Debug-iphonesimulator -L/
Users/seejaneworkit/Sites/iPhone/DriveMeCrazy/trunk/Libraries/Flurry -
L/Users/seejaneworkit/Sites/iPhone/DriveMeCrazy/trunk -F/Users/
seejaneworkit/Library/Developer/Xcode/DerivedData/Drive_Me_Crazy-
adfsjujimcorzheiaqddfrkfuodf/Build/Products/Debug-iphonesimulator -F/
Users/seejaneworkit/Sites/iPhone/DriveMeCrazy/trunk -filelist "/Users/
seejaneworkit/Library/Developer/Xcode/DerivedData/Drive_Me_Crazy-
adfsjujimcorzheiaqddfrkfuodf/Build/Intermediates/Drive Me Crazy.build/
Debug-iphonesimulator/DMCDev.build/Objects-normal/i386/DMC
Dev.LinkFileList" -mmacosx-version-min=10.6 -Xlinker -objc_abi_version
-Xlinker 2 -lxml2 -framework MobileCoreServices -lFlurryWithLocation -
framework Foundation -weak_framework UIKit -framework CoreGraphics -
framework MapKit -framework CoreLocation -framework
SystemConfiguration -lz.1.2.3 -framework AVFoundation -framework
CoreAudio -framework CFNetwork -framework Security -framework
AudioToolbox -o "/Users/seejaneworkit/Library/Developer/Xcode/
DerivedData/Drive_Me_Crazy-adfsjujimcorzheiaqddfrkfuodf/Build/Products/
Debug-iphonesimulator/DMC Dev.app/DMC Dev"
ld: duplicate symbol _main in /Users/seejaneworkit/Library/Developer/
Xcode/DerivedData/Drive_Me_Crazy-adfsjujimcorzheiaqddfrkfuodf/Build/
Intermediates/Drive Me Crazy.build/Debug-iphonesimulator/DMCDev.build/
Objects-normal/i386/GenerateTargetNamespaceMacros.o and /Users/
seejaneworkit/Library/Developer/Xcode/DerivedData/Drive_Me_Crazy-
adfsjujimcorzheiaqddfrkfuodf/Build/Intermediates/Drive Me Crazy.build/
Debug-iphonesimulator/DMCDev.build/Objects-normal/i386/main.o for
architecture i386
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/