Hi experts, I'm newbie for iphone dev, no i'm learning native way to dev, when i'm using the following content in my Makefile as below
DEVICE = 192.168.1.15
APPL = MyApp
DOTH = MyApp.h
OBJS = main.o MyApp.o
SDK = /Developer/Platforms/iPhoneOS.platform/Developer
ARCH = armv6
SYSROOT= $(SDK)/SDKs/iPhoneOS2.2.sdk
CC = $(SDK)/usr/bin/arm-apple-darwin9-gcc-4.0.1 \
-arch $(ARCH) -isysroot $(SYSROOT)
CFLAGS = -std=c99 -Werror -I$(SDK)/usr/include/gcc/darwin/4.0
LD = $(CC)
LDFLAGS =\
-framework UIKit\
-framework CoreFoundation\
-framework Foundation\
-framework CoreGraphics\
-framework LayerKit\
-lobjc\
-bind_at_load
$(APPL): $(OBJS)
$(LD) $(LDFLAGS) -o $@ $^
cp $(APPL) $(APPL).app
@chmod 755 $(APPL).app/$(APPL)
@touch $(APPL).app
%.o: %.m $(DOTH)
$(CC) $(CFLAGS) -c $<
install: $(APPL)
@ssh root@$(DEVICE) /bin/rm -f /Applications/$(APPL).app/$(APPL)
scp -r $(APPL).app root@$(DEVICE):/Applications
ssh root@$(DEVICE) /usr/bin/ldid -S /Applications/$(APPL).app/$(APPL)
i'm getting error as :
ld: framework not found LayerKit
collect2: ld returned 1 exit status
but when i remove '-framework LayerKit\ ' in the LDFLAGS, its working ok, can anyone help me
thanks
DEVICE = 192.168.1.15
APPL = MyApp
DOTH = MyApp.h
OBJS = main.o MyApp.o
SDK = /Developer/Platforms/iPhoneOS.platform/Developer
ARCH = armv6
SYSROOT= $(SDK)/SDKs/iPhoneOS2.2.sdk
CC = $(SDK)/usr/bin/arm-apple-darwin9-gcc-4.0.1 \
-arch $(ARCH) -isysroot $(SYSROOT)
CFLAGS = -std=c99 -Werror -I$(SDK)/usr/include/gcc/darwin/4.0
LD = $(CC)
LDFLAGS =\
-framework UIKit\
-framework CoreFoundation\
-framework Foundation\
-framework CoreGraphics\
-framework LayerKit\
-lobjc\
-bind_at_load
$(APPL): $(OBJS)
$(LD) $(LDFLAGS) -o $@ $^
cp $(APPL) $(APPL).app
@chmod 755 $(APPL).app/$(APPL)
@touch $(APPL).app
%.o: %.m $(DOTH)
$(CC) $(CFLAGS) -c $<
install: $(APPL)
@ssh root@$(DEVICE) /bin/rm -f /Applications/$(APPL).app/$(APPL)
scp -r $(APPL).app root@$(DEVICE):/Applications
ssh root@$(DEVICE) /usr/bin/ldid -S /Applications/$(APPL).app/$(APPL)
i'm getting error as :
ld: framework not found LayerKit
collect2: ld returned 1 exit status
but when i remove '-framework LayerKit\ ' in the LDFLAGS, its working ok, can anyone help me
thanks