Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
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.130.18 with SMTP id h18mr4840293ann.37.1314215246514;
        Wed, 24 Aug 2011 12:47:26 -0700 (PDT)
X-BeenThere: gdata-objectivec-client@googlegroups.com
Received: by 10.101.204.19 with SMTP id g19ls15342035anq.5.gmail; Wed, 24 Aug
 2011 12:47:24 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.101.184.7 with SMTP id l7mr1032015anp.38.1314215244240; Wed,
 24 Aug 2011 12:47:24 -0700 (PDT)
Received: by u20g2000yqj.googlegroups.com with HTTP; Wed, 24 Aug 2011 12:47:24
 -0700 (PDT)
Date: Wed, 24 Aug 2011 12:47:24 -0700 (PDT)
In-Reply-To: <CACsdAp7g2-ojPdS7OpjdO5hwbC-Pqhvw21dOuH=Xuqp8o9aDsQ@mail.gmail.com>
References: <5af23364-c0e8-4761-99f6-9ebb5b7ee7c3@x11g2000yqx.googlegroups.com>
 <CACsdAp7g2-ojPdS7OpjdO5hwbC-Pqhvw21dOuH=Xuqp8o9aDsQ@mail.gmail.com>
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: <12c6f888-0fde-4360-8297-584e40f673e6@u20g2000yqj.googlegroups.com>
Subject: Re: 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
Content-Transfer-Encoding: quoted-printable

Thank you for the response. I'll run through building each of the
options again to see what I get for results. The Wiki page is now down
so I cannot run through the steps for creating the static library
which is a bit painful. Not sure if its being updated at the moment??

Jane

On Aug 24, 10:44=A0am, Jarek Wilkiewicz <jar...@google.com> wrote:
> Hi Jane,
>
> I tried building the Examples/YouTubeSample with XCode 4.0.2 and it compi=
led
> and ran with no issues.
> The steps I followed were:
>
> 1. svn checkouthttp://gdata-objectivec-client.googlecode.com/svn/trunk/gd=
ata-objecti...
> 2. Open "YouTubeSample.xcodeproj"
> 3. Select "GData.xcodeproj" then Build
> 4. Select "YouTubeSample" then Build
> 5. Run YouTubeSample
>
> Also, the GDataStaticTouchLib builds fine in my environment as well (scre=
en
> shot attached). The steps I followed were:
>
> 1. Open Sources/GData.xcodeproj
> 2. Select "GDataTouchStaticLib" target
> 3. Build
>
> Finally I created a sample iPhone application (TestGDataLib), and followe=
d
> the steps fromhttp://code.google.com/p/gdata-objectivec-client/wiki/Build=
ingTheLibr...
> include the static lib in my project. Attached are the screen shots.
> The
> project built and ran fine. The gdata-include-static-lib-in-project.png i=
s
> probably the tricky part, I tried to indicate what to drag where in the
> screen shot. gdata-static-linker-settings.png shows where to set the link=
er
> settings.
>
> thanks,
> Jarek
>
> On Aug 23, 5:30 pm, seejaneworkit <seejanewor...@gmail.com> wrote:> 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
> > =A0 =A0 cd /Users/seejaneworkit/Sites/iPhone/DriveMeCrazy/trunk
> > =A0 =A0 setenv MACOSX_DEPLOYMENT_TARGET 10.6
> > =A0 =A0 setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/
> > Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
> > =A0 =A0 /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=3D10.6 -Xlinker -objc_abi_versio=
n
> > -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/
> > bin/llvm-gcc-4.2 failed with exit code 1
>
> On Tue, Aug 23, 2011 at 5:30 PM, seejaneworkit <seejanewor...@gmail.com>w=
rote:
>
>
>
>
>
>
>
> > 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
> > =A0 =A0cd /Users/seejaneworkit/Sites/iPhone/DriveMeCrazy/trunk
> > =A0 =A0setenv MACOSX_DEPLOYMENT_TARGET 10.6
> > =A0 =A0setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/
> > Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
> > =A0 =A0/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=3D10.6 -Xlinker -objc_abi_versio=
n
> > -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/
> > bin/llvm-gcc-4.2 failed with exit code 1
>
> > --
> > You received this message because you are subscribed to the Google Grou=
ps
> > "Google Data APIs Objective-C Client Library Discussion" group.
> > To post to this group, send email to
> > gdata-objectivec-client@googlegroups.com.
> > To unsubscribe from this group, send email to
> > gdata-objectivec-client+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/gdata-objectivec-client?hl=3Den.
>
>
>
> =A0gdata-build-lib.png
> 181KViewDownload
>
> =A0gdata-include-static-lib-in-project.png
> 329KViewDownload
>
> =A0gdata-static-linker-settings.png