Forum > Cocoa
Problem with building Cocoa widgetset
Frantic:
Hi!
I'm using Free Pascal Compiler version 2.4.2rc1 for i386 (built from svn trunk - r16350) and Lazarus 0.9.29 (build from svn trunk - r28268). Mac OSX Snow Leopard
Problem - I can't build Cocoa widgetset:
--- Code: ---$ make lcl LCL_PLATFORM=cocoa
Compiling interfaces.pas
Compiling cocoaint.pas
cocoaint.pas(28,2) Warning: Illegal compiler switch "OBJECTIVEC1"
Fatal: Can't find unit CocoaAll used by CocoaInt
Fatal: Compilation aborted
--- End code ---
Any ideas? Please, help!
Phil:
The ObjectiveC1 mode switch is only supported with FPC 2.5.1.
There's a mailing list dedicated to Objective Pascal and Cocoa:
http://lists.sonic.net/mailman/listinfo/mac-pascal
Thanks.
-Phil
Frantic:
Thanks, Phill!
But where can I get it? Cant find corresponding branch in http://svn.freepascal.org/svn/fpc/
Phil:
You can put something like this in a script and run it with sudo:
svn co http://svn.freepascal.org/svn/fpc/trunk /Developer/ObjectivePascal/fpc
cd /Developer/ObjectivePascal/fpc
sudo make distclean -j 3
make FPC=/usr/local/lib/fpc/2.4.0/ppc386 OPT="-ap" distclean all -j 2
export NEWFPCVERSION=`./compiler/ppc386 -iV`
sudo make FPC=`pwd`/compiler/ppc386 install
sudo make distclean -j 3
Thanks.
-Phil
Frantic:
Just did what you said, but still:
--- Code: ---$ ppc386 -version
Free Pascal Compiler version 2.4.2rc1 2010/11/16
--- End code ---
What could I do wrong?
Navigation
[0] Message Index
[#] Next page