CMTimeGetSeconds linker error when building PhoneGapLibTest

1,612 views
Skip to first unread message

Umut

unread,
Jun 17, 2011, 5:32:06 PM6/17/11
to phonegap
I am trying to build PhoneGapLibTest with a fresh install from the git
repository in xcode4.

When I try to build the PhoneGapLibTest, I get the linker error below.
I am not sure why the i386 has to be a valid architecture, but when I
remove it from the valid architectures, I get the no valid
architecture error as in the FAQ.

Anybody know how to get around this?

Thanks,

-umut

----- snip ------

Ld /Users/topkara/Library/Developer/Xcode/DerivedData/PhoneGapLibTest-
fccowcfbagwieoejkldmgadxuhgd/Build/Products/Debug-iphonesimulator/
PhoneGapLibTest.app/PhoneGapLibTest normal i386
cd /Users/topkara/Documents/work/projects/PhoneGapClones/phonegap-
iphone/PhoneGapLibTest
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/
gcc-4.2 -arch i386 -isysroot /Developer/Platforms/
iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -L/
Users/topkara/Library/Developer/Xcode/DerivedData/PhoneGapLibTest-
fccowcfbagwieoejkldmgadxuhgd/Build/Products/Debug-iphonesimulator -F/
Users/topkara/Library/Developer/Xcode/DerivedData/PhoneGapLibTest-
fccowcfbagwieoejkldmgadxuhgd/Build/Products/Debug-iphonesimulator -
filelist /Users/topkara/Library/Developer/Xcode/DerivedData/
PhoneGapLibTest-fccowcfbagwieoejkldmgadxuhgd/Build/Intermediates/
PhoneGapLibTest.build/Debug-iphonesimulator/PhoneGapLibTest.build/
Objects-normal/i386/PhoneGapLibTest.LinkFileList -mmacosx-version-
min=10.6 -all_load -Obj-C -Xlinker -objc_abi_version -Xlinker 2 /Users/
topkara/Library/Developer/Xcode/DerivedData/PhoneGapLibTest-
fccowcfbagwieoejkldmgadxuhgd/Build/Products/Debug-iphonesimulator/
libPhoneGap.a -framework Foundation -framework UIKit -framework
CoreGraphics -framework AddressBook -framework AddressBookUI -
framework AudioToolbox -framework AVFoundation -framework CFNetwork -
framework CoreLocation -framework MediaPlayer -framework QuartzCore -
framework SystemConfiguration -framework MobileCoreServices -o /Users/
topkara/Library/Developer/Xcode/DerivedData/PhoneGapLibTest-
fccowcfbagwieoejkldmgadxuhgd/Build/Products/Debug-iphonesimulator/
PhoneGapLibTest.app/PhoneGapLibTest

Undefined symbols for architecture i386:
"_CMTimeGetSeconds", referenced from:
-[Capture getFormatData:withDict:] in libPhoneGap.a(Capture.o)
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status

Shazron Abdullah

unread,
Jun 17, 2011, 5:34:21 PM6/17/11
to phon...@googlegroups.com
Add CoreMedia.framework

> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com

Umut

unread,
Jun 20, 2011, 12:37:01 PM6/20/11
to phonegap
Yep, that fixed it. Thanks a lot.

BTW, the PhoneGapLibTest project does not get a PhoneGap.plist by
default. I see this is a changing piece of the code right now, so just
FYI. I copied one from a blank project, and it worked.

-umut

On Jun 17, 5:34 pm, Shazron Abdullah <shazron.abdul...@nitobi.com>
wrote:
> Add CoreMedia.framework
>

Shazron Abdullah

unread,
Jun 20, 2011, 1:53:43 PM6/20/11
to phon...@googlegroups.com
Thanks Umut, will fix

Reply all
Reply to author
Forward
0 new messages