[Lazarus] I'm looking for experience about OSX

Michael Ring mail at michael-ring.org
Sun Dec 7 18:32:10 CET 2014


I have attached my buildscript that I use all the time to update & build 
from trunk.

Please make sure to edit the 2nd line where I do a cd to the directory 
where fpc and lazarus are stored.

I have multiple directories for fpc based on the projects I work on, 
remove the ones you do not care for in line 7. check out o copy of fpc 
in each directory you care for.

1 #!/bin/sh
*2 cd $HOME/devel*
3 sudo rm -rf $HOME/2.7.1 2>/dev/null
4 #FIXEDVERSION="-r 27463"
5
6 if [ -z "$1" ]; then
7 *COMPILE="fpc fpc-linux fpc-mipsel fpc-arm lazarus"*

Michael

Am 07.12.14 um 10:54 schrieb FreeMan:
> Thank you for sharing Michael,  Yes its retina display
> I'm still using qt in linux so use this in osx good idea I think. If 
> I'm not wrong, if  I use qt widgetset in osx, and builded application 
> need qt library, so if I copy this application to another osx, have to 
> install qt binary library first, like a in windows.
>
> Michael, if its possible, can you share fp script too ? little bit 
> different then lazarus, isn't it?
>
> Mattias wrote,
>> After that it is the same as under Linux.
>  This mean I can use my linux script in osx, maybe need small 
> changing. I'll share my scripts but more questions :) I'll try use 
> ramdrive, make command kill ssd live, and ram drive so much faster 
> then ssd (think hdd :) 5400rpm) I know ramdrive how work, and can 
> loose data need backup etc.
> just for test what is speed, This test in kubuntu 14.04 i7 2600k, 8gb 
> ram, ssd raid0
> make ram drive, 2gb is enough
> I attached my test bash script
> this is result:
> sent 901,034,905 bytes  received 507,271 bytes  257,583,478.86 bytes/sec
> total size is 899,101,903  speedup is 1.00
>
> Başlangıç zamanı : 2014-12-07 11:46:31
> Bitiş zamanı     : 2014-12-07 11:46:34
> Süre : 00 Dakika _*03*_ saniye -> saniye mean second
>
> Don't forget fp folder is my active folder, I mean all (*.o, *.ppu) 
> compiled files included in copy files. This is just for "can be?" 
> test, not real test.
>
>
>
> On 06-12-2014 21:37, Michael Ring wrote:
>> When your new Mac has a Retina Display then I'd recommend building 
>> the qt version, the fonts look much much better than in the Carbon 
>> Version (at least for me)
>> qt has one drawback, the keys [ ] { } do not work on my german 
>> keyboard...
>>
>> In theory Cocoa should also give you nice fonts but I did not manage 
>> to build a version that works (I just retried with current svn, on 
>> start I get list index (-1) out of bounds error)
>>
>> To build for qt you will need to first install qt4 libraries, the 
>> installer from the qt page only comes with x64_64 libs, this is the 
>> reason why I will build lazarus with CPU_TARGET=x86_64 later.
>>
>> After installing the libs you need to compile the qt4 binding:
>>
>> http://users.telenet.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html (V2.5)
>>
>> instructions to do so are in the README.TXT. Install the built binaries.
>>
>> I am using the following commands to then build lazarus (There might 
>> be better solutions, but this works fine for me)
>>
>>   make clean all CPU_TARGET=x86_64 LCL_PLATFORM=qt 
>> OPT="-k'-framework' -k'ApplicationServices'"
>>   #make clean all CPU_TARGET=i386 LCL_PLATFORM=customdrawn 
>> OPT="-k'-framework' -k'ApplicationServices'"
>>
>>   sudo rm -rf /usr/local/share/lazarus
>>   sudo make install CPU_TARGET=x86_64 LCL_PLATFORM=qt
>>   #sudo make install CPU_TARGET=i386 LCL_PLATFORM=cocoa
>>
>>   sudo chown -R ring:staff /usr/local/share/lazarus
>>
>>   # now recompile using lazbuild to have the
>>   lazbuild --build-ide= --ws=qt --cpu=x86_64 --compiler=ppcx64
>>   #lazbuild --build-ide= --ws=cocoa --cpu=i386
>>
>> Michael
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20141207/78e3fad9/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: updatebuild.sh
Type: application/x-sh
Size: 3436 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20141207/78e3fad9/attachment-0003.sh>


More information about the Lazarus mailing list