Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2014-12

I'm looking for experience about OSX

17 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

FreeMan

Hello,
I get new toy today, macbook pro. I'll use crosscompile fpc & lazarus on this system. What is your widgetset suggestion for OSX? Much important is, How to install _*SVN*_ _*fpc*_ and _*SVN*_ _*lazarus*_? has anyone got any script about this.

I found just this links and no info about svn install, yet. http://wiki.freepascal.org/Installing_Lazarus_on_MacOS_X http://wiki.freepascal.org/GDB_on_OS_X_Mavericks_and_Xcode_5

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20141206/45153343/attachment.html>

Reply by email

Mattias Gaertner
to FreeMan
Hello, I get new toy today, macbook pro. I'll use crosscompile fpc & lazarus on this system.

Means?

What is your widgetset suggestion for OSX?

Carbon works since years.
Cocoa works for 32bit, although still is in an early state. qt works since years.

Keep in mind that Lazarus under OS X by default uses Apple like shortcuts, which is annoying at the start.

Much important is, How to install _*SVN*_ _*fpc*_ and _*SVN*_ _*lazarus*_?

First you need to install XCode and its gdb.
After that it is the same as under Linux.

Show quoted text 5 lines
has anyone got any script about this. I found just this links and no info about svn install, yet. http://wiki.freepascal.org/Installing_Lazarus_on_MacOS_X http://wiki.freepascal.org/GDB_on_OS_X_Mavericks_and_Xcode_5

Good pages.

Mattias

Reply by email

FreeMan
to Mattias Gaertner
Mattias Gaertner wrote 5 lines
> Hello, > >I get new toy today, macbook pro. I'll use crosscompile fpc & lazarus > >on this system. Means?

I mean, My plan is I develop project on OSx, then this project croscompile to windows and linux.

Carbon works since years. Cocoa works for 32bit, although still is in an early state. qt works since years.

Is carbon 64bit?

First you need to install XCode and its gdb. After that it is the same as under Linux.

If its same, my linux script can work on osx, I'll see.

Reply by email

Mattias Gaertner
to FreeMan
Show quoted text 9 lines
On 06-12-2014 20:20, Mattias Gaertner wrote: >> Hello, >> >I get new toy today, macbook pro. I'll use crosscompile fpc & lazarus >> >on this system. > Means? > I mean, My plan is I develop project on OSx, then this project croscompile to windows and linux.

Maybe it is simpler to use a VM.

> Carbon works since years. > Cocoa works for 32bit, although still is in an early state. > qt works since years. Is carbon 64bit?

No. Only 32bit.

Mattias

Reply by email

Michael Ring
to Mattias Gaertner: On Sat, 06 Dec 2014 20:03:55 +0200 Means? Carbon works since years. Cocoa works for…

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

Mattias Gaertner wrote 37 lines
On Sat, 06 Dec 2014 20:03:55 +0200 FreeMan wrote: > Hello, > I get new toy today, macbook pro. I'll use crosscompile fpc & lazarus > on this system. Means? > What is your widgetset suggestion for OSX? Carbon works since years. Cocoa works for 32bit, although still is in an early state. qt works since years. Keep in mind that Lazarus under OS X by default uses Apple like shortcuts, which is annoying at the start. > Much important is, How to install _*SVN*_ _*fpc*_ and _*SVN*_ > _*lazarus*_? First you need to install XCode and its gdb. After that it is the same as under Linux. > has anyone got any script about this. > > I found just this links and no info about svn install, yet. > http://wiki.freepascal.org/Installing_Lazarus_on_MacOS_X > http://wiki.freepascal.org/GDB_on_OS_X_Mavericks_and_Xcode_5 Good pages. Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Michael Ring
to Michael Ring

Forgot to mention:

This list of commands builds the x86_64 and 'merges' the installation into the default i386 installation: (I do this in two steps so that the original installation does not get corrupted)

make clean buildbase CPU_TARGET=x86_64 INSTALL_PREFIX=$HOME/2.7.1 make install buildbase CPU_TARGET=x86_64 INSTALL_PREFIX=$HOME/2.7.1 mkdir -p /usr/local/lib/fpc/
sudo cp -r $HOME/2.7.1/lib/fpc/2.7.1 /usr/local/lib/fpc/ sudo cp $HOME/2.7.1/bin/fpc /usr/local/lib/fpc/2.7.1/ # this is not strictly necessary
rm -rf $HOME/2.7.1

And this builds a linux crosscompiler:

SUBARCH=i386
CROSSOPT="-O- -gw2"
make clean buildbase CROSSINSTALL=1 OS_TARGET=linux CPU_TARGET=i386 CROSSOPT="$CROSSOPT" BINUTILSPREFIX=i386-linux-
sudo make installbase CROSSINSTALL=1 OS_TARGET=linux CPU_TARGET=i386 CROSSOPT="$CROSSOPT" BINUTILSPREFIX=i386-linux-

when you replace 'buildbase' with 'all' you should be able to get a more complete build, for my needs buildbase is sufficient.

Michael

Michael Ring wrote 84 lines
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 Am 06.12.14 um 19:20 schrieb Mattias Gaertner: > On Sat, 06 Dec 2014 20:03:55 +0200 > FreeMan wrote: > >> Hello, >> I get new toy today, macbook pro. I'll use crosscompile fpc & lazarus >> on this system. > Means? > >> What is your widgetset suggestion for OSX? > Carbon works since years. > Cocoa works for 32bit, although still is in an early state. > qt works since years. > > Keep in mind that Lazarus under OS X by default uses Apple like > shortcuts, which is annoying at the start. > >> Much important is, How to install _*SVN*_ _*fpc*_ and _*SVN*_ >> _*lazarus*_? > First you need to install XCode and its gdb. > After that it is the same as under Linux. > > >> has anyone got any script about this. >> >> I found just this links and no info about svn install, yet. >> http://wiki.freepascal.org/Installing_Lazarus_on_MacOS_X >> http://wiki.freepascal.org/GDB_on_OS_X_Mavericks_and_Xcode_5 > Good pages. > > Mattias > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

FreeMan
to Michael Ring: When your new Mac has a Retina Display then I'd recommend building the qt version, the…

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.

Michael Ring wrote 39 lines
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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20141207/ba6e5ac0/attachment.html> -------------- next part --------------
A non-text attachment was scrubbed...
Name: test.sh
Type: application/x-shellscript
Size: 399 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20141207/ba6e5ac0/attachment.bin>

Reply by email

Michael Ring
to FreeMan

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

FreeMan wrote 81 lines
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 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20141207/78e3fad9/attachment-0001.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.freepascal.org/pipermail/lazarus/attachments/20141207/78e3fad9/attachment-0001.sh>

Reply by email

Michael Ring
to Mattias Gaertner: On Sat, 06 Dec 2014 20:37:24 +0100 "retinizer" worked for me. Mattias

Strange, what version of OSX / Lazarus do you use?

Retina with carbon stopped working for me a year ago.

I am using Yosemite and lazarus trunk.

Michael

Mattias Gaertner wrote 15 lines
On Sat, 06 Dec 2014 20:37:24 +0100 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) "retinizer" worked for me. Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Michael Ring
to Mattias Gaertner

I wrote to the list in April 2014, arround that time I lost the good looking fonts when building for carbon. I switched to qt (now loosing "[]{}" on keyboard) and every now and then I checked if cocoa is getting usable, but I gave up on carbon.

I now rebuilt with carbon and hey, great surprise, the fonts look nice again! No need to run retinizer.... and "[]{}" on my german keyboard work again in lazarus!!!!

Thank you very much for asking me to specify "stopped working". ;-)

Michael

Mattias Gaertner wrote 19 lines
On Sun, 07 Dec 2014 19:04:28 +0100 Michael Ring wrote: > Strange, what version of OSX / Lazarus do you use? > > Retina with carbon stopped working for me a year ago. > > I am using Yosemite and lazarus trunk. Hey, that's my system. Specify "stopped working". Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Mattias Gaertner
to Michael Ring
Show quoted text 5 lines
Michael Ring hat am 7. Dezember 2014 um 23:41 geschrieben: [...] I now rebuilt with carbon and hey, great surprise, the fonts look nice again! No need to run retinizer....

lazarus.app uses NSHighResolutionCapable. That normally does the trick. But it seems OS X has some kind of cache/db, which overrides the Info.plist, so sometimes you need retinizer to force it.

and "[]{}" on my german keyboard work again in lazarus!!!!

:)

Thank you very much for asking me to specify "stopped working". ;-)

Well, it became a habit.

Mattias

Reply by email

FreeMan
to Michael Ring: I wrote to the list in April 2014, arround that time I lost the good looking fonts when…

Is this mean, your suggestion use QT is chnaged to carbon? :) And thanks one more your update script. If I'm not bother you, have you got for "new install fpc" tips ?

Michael Ring wrote 12 lines
I wrote to the list in April 2014, arround that time I lost the good looking fonts when building for carbon. I switched to qt (now loosing "[]{}" on keyboard) and every now and then I checked if cocoa is getting usable, but I gave up on carbon. I now rebuilt with carbon and hey, great surprise, the fonts look nice again! No need to run retinizer.... and "[]{}" on my german keyboard work again in lazarus!!!! Thank you very much for asking me to specify "stopped working". ;-) Michael

Reply by email

Michael Ring
to FreeMan
FreeMan wrote
Is this mean, your suggestion use QT is chnaged to carbon? :) And thanks one more your update script. If I'm not bother you, have you got for "new install fpc" tips ?

Because of recent events my recommendation has changed to carbon ;-) Anyway, with the script it is easy to build the different versions and you can test for yourself.

For new install fpc there is not much I can think of, install Xcode, XCode Commandline Tools and the official fpc package and you are good to go.

I have attached a slightly modified version of the script, it is now easier to switch between the different builds for lazarus.

Michael

Show quoted text 20 lines
On 08-12-2014 00:41, Michael Ring wrote: > I wrote to the list in April 2014, arround that time I lost the good > looking fonts when building for carbon. I switched to qt (now loosing > "[]{}" on keyboard) and every now and then I checked if cocoa is > getting usable, but I gave up on carbon. > > I now rebuilt with carbon and hey, great surprise, the fonts look > nice again! No need to run retinizer.... and "[]{}" on my german > keyboard work again in lazarus!!!! > > Thank you very much for asking me to specify "stopped working". ;-) > > Michael -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
A non-text attachment was scrubbed...
Name: updatebuild.sh
Type: application/x-sh
Size: 3445 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20141208/87b06e5f/attachment.sh>

Reply by email