Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem Linking PhoneGap Framework #1

Open
mbikovitsky opened this issue Jan 29, 2012 · 0 comments
Open

Problem Linking PhoneGap Framework #1

mbikovitsky opened this issue Jan 29, 2012 · 0 comments

Comments

@mbikovitsky
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant