Sign in Join

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

Mailing lists / lazarus / 2010-05

installing lazarus 64bit on snow leopard

5 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Bee Jay

Hi all,

I'm just doing a clean upgrade to Mac OS X 10.6.3 (Snow Leopard 64 bit) from Mac OS X 10.5.8 (Leopard 32 bit) on my Intel-based Mac machine. I used to have FPC 2.2.4 and Lazarus SVN for 32 bit on Leopard 32 bit and all went fine there. Since now I'm on 64 bit environment, I'd like to also have 64 bit FPC and Lazarus. This is my first experience with FPC/Lazarus on 64 bit environment.

For FPC, I installed FPC 2.4.0 for Mac Intel, downloaded from SourceForge. The installer (fpc-2.4.0.intel-macosx.dmg) note said that it includes both FPC for 32 and 64 bit. FPC installation all went good.

For Lazarus, I choose to use the SVN trunk. After updated the SVN, as I usually did on Leopard, I installed Lazarus using 'make' command:

make all bigide LCL_PLATFORM=carbon

It usually went fine on Leopard, but this time I faced this error message:

...
Free Pascal Compiler version 2.4.0 [2009/12/20] for i386 Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Darwin for i386
Compiling lazarus.pp
Compiling /Volumes/User Data/Bee/Repository/laz-devel/packager/pkgmanager.pas Assembling pkgmanager
Fatal: Can't find unit JcfSettings used by TokenUtils Fatal: Compilation aborted
make[2]: *** [lazarus] Error 1
make[1]: *** [bigide] Error 2
make: *** [idebig] Error 2

... and the compilation stopped here.

Despite the error message, the Lazarus executable still produced, so I continued with the next 'make' command:

make install

The installation went fine and the Lazarus installed on /usr/local/share/lazarus as it used to be on Leopard. Then, I run the Lazarus (.app) and it went fine. Since I knew the building through 'make' isn't went smooth, I rebuild Lazarus from IDE (Tools } Build Lazarus menu). Before build, I installed SQLdb package first. Then, rebuild.

The rebuild process went fine and a empty form can be compiled and run fine. But... there are some problems:

- the Lazarus seems to be still 32 bit app (I knew it from Activity Monitor).
- Lazarus still produces 32 bit app as well.
- the SQLdb tab and components is not there though Lazarus Package Manager clearly shows that it's installed.
- when I enabled the debugger (GDB), Lazarus went hang every time I compile/run an app (empty form). It made Lazarus completely unusable, so I disabled it again.

I think I must did something wrong with both FPC and Lazarus installation on 64 bit. So, here I ask:

1. how to install 64 bit FPC 2.4.0 on Mac SL (64 bit) through the .dmg installer? is there any special option or param?
2. since I also plan to switch to FPC fixes branch (through SVN), then... how to install 64 bit FPC 2.4.1 on Mac SL (64 bit) through 'make' command?
3. since I don't want to use stable release, then... how to install 64 bit Lazarus on Mac SL through 'make' command?
4. how to make sure Lazarus 64 bit will produce 64 bit app on Mac SL?
5. where did the SQLdb tab and components go?
6. is FPC and Lazarus 64 bit ready to be used on 64 bit Mac-intel to produce stable apps?
7. how is the GDB debugger integration status with FPC/Lazarus 64 bit?

For any hints and replies, I thank you in advance.

-Bee-

Reply by email

Mattias Gaertner
to Bee Jay
Show quoted text 9 lines
Hi all, I'm just doing a clean upgrade to Mac OS X 10.6.3 (Snow Leopard 64 bit) from Mac OS X 10.5.8 (Leopard 32 bit) on my Intel-based Mac machine. I used to have FPC 2.2.4 and Lazarus SVN for 32 bit on Leopard 32 bit and all went fine there. Since now I'm on 64 bit environment, I'd like to also have 64 bit FPC and Lazarus. This is my first experience with FPC/Lazarus on 64 bit environment. For FPC, I installed FPC 2.4.0 for Mac Intel, downloaded from SourceForge. The installer (fpc-2.4.0.intel-macosx.dmg) note said that it includes both FPC for 32 and 64 bit. FPC installation all went good. For Lazarus, I choose to use the SVN trunk. After updated the SVN, as I usually did on Leopard, I installed Lazarus using 'make' command: make all bigide LCL_PLATFORM=carbon

Use make clean after a svn update.
Or even better: use lazbuild.

Show quoted text 18 lines
It usually went fine on Leopard, but this time I faced this error message: ... Free Pascal Compiler version 2.4.0 [2009/12/20] for i386 Copyright (c) 1993-2009 by Florian Klaempfl Target OS: Darwin for i386 Compiling lazarus.pp Compiling /Volumes/User Data/Bee/Repository/laz-devel/packager/pkgmanager.pas Assembling pkgmanager Fatal: Can't find unit JcfSettings used by TokenUtils Fatal: Compilation aborted make[2]: *** [lazarus] Error 1 make[1]: *** [bigide] Error 2 make: *** [idebig] Error 2 ... and the compilation stopped here. Despite the error message, the Lazarus executable still produced, so I continued with the next

I doubt that it created the executable.
Maybe the old was not deleted?

Show quoted text 9 lines
'make' command: make install The installation went fine and the Lazarus installed on /usr/local/share/lazarus as it used to be on Leopard. Then, I run the Lazarus (.app) and it went fine. Since I knew the building through 'make' isn't went smooth, I rebuild Lazarus from IDE (Tools } Build Lazarus menu). Before build, I installed SQLdb package first. Then, rebuild. The rebuild process went fine and a empty form can be compiled and run fine. But... there are some problems: - the Lazarus seems to be still 32 bit app (I knew it from Activity Monitor).

Probably because you started the old one.

Show quoted text 5 lines
- Lazarus still produces 32 bit app as well. - the SQLdb tab and components is not there though Lazarus Package Manager clearly shows that it's installed. - when I enabled the debugger (GDB), Lazarus went hang every time I compile/run an app (empty form). It made Lazarus completely unusable, so I disabled it again. I think I must did something wrong with both FPC and Lazarus installation on 64 bit. So, here I ask:

I never tried 64bit on Mac.

Show quoted text 9 lines
1. how to install 64 bit FPC 2.4.0 on Mac SL (64 bit) through the .dmg installer? is there any special option or param? 2. since I also plan to switch to FPC fixes branch (through SVN), then... how to install 64 bit FPC 2.4.1 on Mac SL (64 bit) through 'make' command? 3. since I don't want to use stable release, then... how to install 64 bit Lazarus on Mac SL through 'make' command? 4. how to make sure Lazarus 64 bit will produce 64 bit app on Mac SL? 5. where did the SQLdb tab and components go? 6. is FPC and Lazarus 64 bit ready to be used on 64 bit Mac-intel to produce stable apps? 7. how is the GDB debugger integration status with FPC/Lazarus 64 bit? For any hints and replies, I thank you in advance.

Mattias

Reply by email

Bee Jay
to Mattias Gaertner
Mattias Gaertner wrote
Use make clean after a svn update.

This is my first check out on my newly fresh installed Mac SL.

Or even better: use lazbuild.

I usually use IDE to rebuild Lazarus. I only use 'make' once in a while when the IDE isn't yet available (I never installed Lazarus from installer package, always from SVN) or the IDE somehow goes wrong (to reproduce a clean IDE).

I doubt that it created the executable.

I think the compilation stopped when it tried to compile Lazarus with a package (jcf package?). Before that, it seemed that the executable already been created but without any additional packages linked in.

Maybe the old was not deleted?

There was no old Lazarus on the machine. This is a clean fresh Mac SL machine, no fpc nor Lazarus installed before. And it was the first time I run the 'make'.

Probably because you started the old one.

No Lazarus was installed before. I'm very sure of it.

I never tried 64bit on Mac.

Thanks for the help.

-Bee-

Reply by email

Bee Jay
to Bee Jay: I'm just doing a clean upgrade to Mac OS X 10.6.3 (Snow Leopard 64 bit) from Mac OS X…

On 21 Mei 2010, at 21:39, Bee Jay wrote:

After rethinking about it... I don't think I won't be able to use 64 bit Lazarus as long as I use Carbon since Carbon is 32 bit anyway. Unless Lazarus support for Cocoa goes beta (at least) while it's still on alpha today. However, I still able to create 64 bit app on Mac if I don't use Carbon i.e. web app or console app. Well, that's what I use Lazarus for anyway. I use Lazarus only as IDE since I have no need to build GUI app on Mac. So, 32 bit Lazarus on SL is alright. :D

1. how to install 64 bit FPC 2.4.0 on Mac SL (64 bit) through the .dmg installer? is there any special option or param? 2. since I also plan to switch to FPC fixes branch (through SVN), then... how to install 64 bit FPC 2.4.1 on Mac SL (64 bit) through 'make' command?

I have found -P param. Sorry. :D

3. since I don't want to use stable release, then... how to install 64 bit Lazarus on Mac SL through 'make' command?

No need until Cocoa is mature enough to be used to build Lazarus IDE.

4. how to make sure Lazarus 64 bit will produce 64 bit app on Mac SL?

This time only to produce non-GUI 64 bit app, use -P param (compiler option).

5. where did the SQLdb tab and components go?

I haven't found it yet why it doesn't appear on the component tabs.

6. is FPC and Lazarus 64 bit ready to be used on 64 bit Mac-intel to produce stable apps?

FPC is ready, I suppose. But, Lazarus isn't. :(

7. how is the GDB debugger integration status with FPC/Lazarus 64 bit?

I haven't found it yet. So, for now I have to live with Lazarus without gdb support. Quite a pain, actually. :(

Well... I think I have answered most of my own questions. :D

But, I'm still waiting for any suggestions on the unanswered ones. ;)

-Bee-

Reply by email

Bee Jay
to Bee Jay
Bee Jay wrote
> 5. where did the SQLdb tab and components go? I haven't found it yet why it doesn't appear on the component tabs.

It's weird. Rebuild the Lazarus from scratch (clean all, remove dir, etc), suddenly the package installation went fine! Well, another digital anomaly, I suppose. :D

> 7. how is the GDB debugger integration status with FPC/Lazarus 64 bit? I haven't found it yet. So, for now I have to live with Lazarus without gdb support. Quite a pain, actually. :(

A clean Lazarus installation from SVN as I described before is able to work with GDB. But once I touch the compiler options, change any of it, would make the IDE hang up every time I click run/build/compile. I found no other way to resolve this except rebuild Lazarus from scratch again. Well, I think I could live with that. Final binary can be created from the command line.

It seems only me who uses Lazarus on Mac SL 64 bit here since nobody else replied to this thread. Thanks anyway. :)

-Bee-

Reply by email