Delphi XE2 ZcDC OSX Compilation Results

ZGE Source Code discussion. Ask questions, present your changes, propose patches etc.

Moderator: Moderators

Post Reply
keymasher
Posts: 39
Joined: Sun Feb 20, 2011 8:54 am

Delphi XE2 ZcDC OSX Compilation Results

Post by keymasher » Thu Nov 24, 2011 10:22 am

Setting up to compile and adding the following conditional defines;
DARWIN;ZZDC_SDL;UNIX

Checking project dependencies...

Building ZzDC.dproj (Release, OSX32)
brcc32 command line for "ZzDC.vrc"
c:\program files\embarcadero\rad studio\9.0\bin\cgrc.exe -c65001 ZzDC.vrc -foZzDC.res
dcc command line for "ZzDC.dpr"
c:\program files\embarcadero\rad studio\9.0\bin\dccosx.exe -$J+ -$D- -$L- -$Y- --no-config -B -Q -AGenerics.Collections=System.Generics.Collections;
Generics.Defaults=System.Generics.Defaults;WinTypes=Windows;WinProcs=Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE -DRELEASE;DARWIN;ZZDC_SDL;UNIX;
MINIMAL -I"c:\program files\embarcadero\rad studio\9.0\lib\OSX32\release";"C:\Documents and Settings\Administrator\My Documents\RAD
Studio\9.0\Imports";"c:\program files\embarcadero\rad studio\9.0\Imports";"C:\Documents and Settings\All Users\Documents\RAD Studio\9.0\Dcp\OSX32";
"c:\program files\embarcadero\rad studio\9.0\include" -LE"C:\Documents and Settings\All Users\Documents\RAD Studio\9.0\Bpl\OSX32" -LN"C:\Documents
and Settings\All Users\Documents\RAD Studio\9.0\Dcp\OSX32" -N0build\obj -NSSystem;Xml;Data;Datasnap;Web;Soap; -O.\3rdparty;"c:\program
files\embarcadero\rad studio\9.0\lib\OSX32\release";"C:\Documents and Settings\Administrator\My Documents\RAD Studio\9.0\Imports";"c:\program
files\embarcadero\rad studio\9.0\Imports";"C:\Documents and Settings\All Users\Documents\RAD Studio\9.0\Dcp\OSX32";"c:\program files\embarcadero\rad
studio\9.0\include" -R.\3rdparty;"c:\program files\embarcadero\rad studio\9.0\lib\OSX32\release";"C:\Documents and Settings\Administrator\My
Documents\RAD Studio\9.0\Imports";"c:\program files\embarcadero\rad studio\9.0\Imports";"C:\Documents and Settings\All Users\Documents\RAD
Studio\9.0\Dcp\OSX32";"c:\program files\embarcadero\rad studio\9.0\include" -U"c:\program files\embarcadero\rad studio\9.0\lib\OSX32\release";
"C:\Documents and Settings\Administrator\My Documents\RAD Studio\9.0\Imports";"c:\program files\embarcadero\rad studio\9.0\Imports";"C:\Documents and
Settings\All Users\Documents\RAD Studio\9.0\Dcp\OSX32";"c:\program files\embarcadero\rad studio\9.0\include" -NB"C:\Documents and Settings\All
Users\Documents\RAD Studio\9.0\Dcp\OSX32" -NHbuild\obj -NObuild\obj ZzDC.dpr
[DCC Error] ZPlatform_SDL.inc(7): E1030 Invalid compiler directive: 'linklib'
[DCC Fatal Error] SDL.pas(277): F1026 File not found: 'Libc.dcu'
Failed
Elapsed time: 00:00:00.6

I don't really care to find libc or linklib alternative, I assume linking to SDL after finding these will be a hurdle. Apart from that it looks do-able. fpc was abit easier for me to do tho.

nadams
Posts: 9
Joined: Wed Nov 30, 2011 10:52 am

Re: Delphi XE2 ZcDC OSX Compilation Results

Post by nadams » Sun Dec 04, 2011 4:43 am

keymasher wrote:Setting up to compile and adding the following conditional defines;
DARWIN;ZZDC_SDL;UNIX

Checking project dependencies...

Building ZzDC.dproj (Release, OSX32)
brcc32 command line for "ZzDC.vrc"
c:\program files\embarcadero\rad studio\9.0\bin\cgrc.exe -c65001 ZzDC.vrc -foZzDC.res
dcc command line for "ZzDC.dpr"
c:\program files\embarcadero\rad studio\9.0\bin\dccosx.exe -$J+ -$D- -$L- -$Y- --no-config -B -Q -AGenerics.Collections=System.Generics.Collections;
Generics.Defaults=System.Generics.Defaults;WinTypes=Windows;WinProcs=Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE -DRELEASE;DARWIN;ZZDC_SDL;UNIX;
MINIMAL -I"c:\program files\embarcadero\rad studio\9.0\lib\OSX32\release";"C:\Documents and Settings\Administrator\My Documents\RAD
Studio\9.0\Imports";"c:\program files\embarcadero\rad studio\9.0\Imports";"C:\Documents and Settings\All Users\Documents\RAD Studio\9.0\Dcp\OSX32";
"c:\program files\embarcadero\rad studio\9.0\include" -LE"C:\Documents and Settings\All Users\Documents\RAD Studio\9.0\Bpl\OSX32" -LN"C:\Documents
and Settings\All Users\Documents\RAD Studio\9.0\Dcp\OSX32" -N0build\obj -NSSystem;Xml;Data;Datasnap;Web;Soap; -O.\3rdparty;"c:\program
files\embarcadero\rad studio\9.0\lib\OSX32\release";"C:\Documents and Settings\Administrator\My Documents\RAD Studio\9.0\Imports";"c:\program
files\embarcadero\rad studio\9.0\Imports";"C:\Documents and Settings\All Users\Documents\RAD Studio\9.0\Dcp\OSX32";"c:\program files\embarcadero\rad
studio\9.0\include" -R.\3rdparty;"c:\program files\embarcadero\rad studio\9.0\lib\OSX32\release";"C:\Documents and Settings\Administrator\My
Documents\RAD Studio\9.0\Imports";"c:\program files\embarcadero\rad studio\9.0\Imports";"C:\Documents and Settings\All Users\Documents\RAD
Studio\9.0\Dcp\OSX32";"c:\program files\embarcadero\rad studio\9.0\include" -U"c:\program files\embarcadero\rad studio\9.0\lib\OSX32\release";
"C:\Documents and Settings\Administrator\My Documents\RAD Studio\9.0\Imports";"c:\program files\embarcadero\rad studio\9.0\Imports";"C:\Documents and
Settings\All Users\Documents\RAD Studio\9.0\Dcp\OSX32";"c:\program files\embarcadero\rad studio\9.0\include" -NB"C:\Documents and Settings\All
Users\Documents\RAD Studio\9.0\Dcp\OSX32" -NHbuild\obj -NObuild\obj ZzDC.dpr
[DCC Error] ZPlatform_SDL.inc(7): E1030 Invalid compiler directive: 'linklib'
[DCC Fatal Error] SDL.pas(277): F1026 File not found: 'Libc.dcu'
Failed
Elapsed time: 00:00:00.6

I don't really care to find libc or linklib alternative, I assume linking to SDL after finding these will be a hurdle. Apart from that it looks do-able. fpc was abit easier for me to do tho.
This is just a guess but from the compiler error:

Code: Select all

E1030 Invalid compiler directive: 'linklib'
It appears that it doesn't like the linklib directive rather than not finding the library. I am not the Pascal expert in these parts but perhaps for Delphi it should be $link instead of $linklib?
(Source http://rvelthuis.de/articles/articles-cobjs.html)
I don't know what gets distributed with Delphi but it looks like FreePascal bundles the SDL library with it:
http://wiki.lazarus.freepascal.org/FPC_ ... _and_later

Post Reply