Hi again.
Now I can compile my projects in Win32 and Win64, but I like port to iOS and MacOSx.
Mac OSx
When I active Platform OSx I have this error in SDL.pas:
Code:
[DCC Fatal Error] sdl.pas(318): F1026 File not found: 'Windows.dcu'
317 {$IFDEF WINDOWS}
318 Windows;
319 {$ENDIF}
I'm compile for platform OSx but compiler think I'm compile to Windows.
How I can tell compiler that I am compiling for Mac OSx and not for Windows ?
iOS
When you select iOS and export to Xcode, game is compiled for Xcode in Mac by FPC 2.6.0 and I need SDL.pas in Mac.
When install in Mac "fpc-2.6.0.intel-macosx.pkg" from "FireMonkey-iOS.dmg" image, JEDI-SDL has installed in:
Code:
/Developer/Embarcadero/fpc/packages/sdl
but I do not know how add library path to use it when compile with Xcode.
Is there something like "Library" of Delphi where you can indicate paths for search *. pas ?
For test, I copy SDL.pas from "/Developer/Embarcadero/fpc/packages/sdl/src/SDL.pas" to my project folder but I have next error:
Code:
Target OS: Darwin/iPhoneSim fro i386
Compiling /Users/...../Naves.pas
Compiling /Users/...../sdl.pas
Fatal: Can't find unit x used by sdl
Fatal: Compilation aborted
I think problem is at line 311 of sdl.pas:
Code:
300{$IFDEF UNIX}
301 {$IFDEF FPC}
302 pthreads,
303 unixtype,
304 baseunix,
305 {$IFNDEF GP2X}
306 unix,
307 {$ELSE}
308 unix;
309 {$ENDIF}
310 {$IFNDEF GP2X}
311 x,
312 xlib;
313 {$ENDIF}
314 {$ELSE}
315 Libc,
316 Xlib;
317 {$ENDIF}
318{$ENDIF}
Compiler think I'm compile for GP2x ?
How I can tell compiler that I am compiling for iOS and not for GP2X ?
Thanks.
Bookmarks