Recent

Author Topic: Lazarus iPhone first step (can't compile iphonelazext example).  (Read 3856 times)

dikoy

  • Newbie
  • Posts: 1
Hi everybody.

Mac OS X 10.8.3
iOS SDK 6.1 (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk)
FPC 2.6.2 (from pkg)
FPC-arm 2.6.2 (from pkg)
Lazarus 1.0.8 (from pkg)
iPhoneAll.pas (/Developer/lazarus/src_iphone/uikit-skel/src - build successful)

iphonelazext of course installed.

fpc.cfg =========
#IFDEF RELEASE
  -O2
  -Xs
  #WRITE Compiling Release Version
#ENDIF

#IFDEF DEBUG
  -gl
  -Crtoi
  #WRITE Compiling Debug Version
#ENDIF

#ifdef darwin
-ap
#endif

-Sgic

#ifdef darwin
#ifdef cpui386
-Cppentiumm
-Oppentiumm
#endif
#endif

-Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget
-Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget/*
-Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget/rtl

# iPhoneAll.pas
-Fu/Developer/lazarus/src_iphone/uikit-skel/src
-Fu/Developer/lazarus/src_iphone/uikit-skel/src/*

#IFDEF FPCAPACHE_1_3
-Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget/httpd13/
#ELSE
#IFDEF FPCAPACHE_2_0
-Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget/httpd20
#ELSE
-Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget/httpd22
#ENDIF
#ENDIF

#ifdef cpui386
-Fl/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1
#endif
#ifdef cpux86_64
-Fl/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/x86_64
#endif

-FD/usr/local/lib/fpc/$fpcversion/bin/$FPCTARGET

#IFNDEF Darwin
#DEFINE NEEDCROSSBINUTILS
#ENDIF

#IFDEF FPC_CROSSCOMPILING
#IFDEF NEEDCROSSBINUTILS
  -XP$FPCTARGET-
#ENDIF
#ENDIF

-Xs
-l
-viwn

=============

while compiling got error:

===================
ld: framework not found UIKit
ld: framework not found UIKit
An error occurred while linking
ihelloworld.pas(80) Error: Error while linking
ihelloworld.pas(80) Fatal: There were 1 errors compiling module, stopping
===================

need help :)
« Last Edit: March 23, 2013, 06:25:43 pm by dikoy »