rotten-apples/toolchain — Issue #1: Problem Linking PhoneGap Framework
Author: bikerm16
Created: 2012-01-29 21:41:18+00:00
State: open

Compiled and installed the toolchain as described on the wiki page (CentOS 6.2 i386 on VirtualBox). The HelloWorld app builds and runs alright, but gives a warning:
`ld: warning: -force_cpusubtype_ALL will become unsupported for ARM architectures`

Downloaded PhoneGap from http://phonegap.com, extracted the iOS framework and put it in `/usr/arm-apple-darwin10/System/Library/Frameworks/PhoneGap.framework`. Then I modified the Makefile to include the following lines (required frameworks for PhoneGap):

override LDFLAGS += -lobjc
override LDFLAGS += -framework UIKit
override LDFLAGS += -framework Foundation
override LDFLAGS += -framework CoreFoundation
override LDFLAGS += -framework AddressBookUI
override LDFLAGS += -framework AudioToolbox
override LDFLAGS += -framework CFNetwork
override LDFLAGS += -framework CoreLocation
override LDFLAGS += -framework MediaPlayer
override LDFLAGS += -framework QuartzCore
override LDFLAGS += -framework SystemConfiguration
override LDFLAGS += -framework MobileCoreServices
override LDFLAGS += -framework AddressBook
override LDFLAGS += -framework CoreGraphics
override LDFLAGS += -framework AVFoundation
override LDFLAGS += -framework CoreMedia
override LDFLAGS += -framework PhoneGap

The make process fails at the linking phase with the following errors: http://pastebin.com/RfkZ1hdm. However, when I commented the `override LDFLAGS += -framework PhoneGap` line, the linking went fine.