Recent

Author Topic: Installing with Snow Leopard  (Read 24676 times)

freddynerk

  • Jr. Member
  • **
  • Posts: 96
Installing with Snow Leopard
« on: September 09, 2009, 03:10:05 pm »
Has anyone had success or otherwise installing and running Lazarus with Snow Leopard.

I am still having a major debugger error with Lazarus. >:(

freddynerk

  • Jr. Member
  • **
  • Posts: 96
Re: Installing with Snow Leopard
« Reply #1 on: September 09, 2009, 03:28:32 pm »
Also a compiled 'Hello World' runs on the development machine.
But will not run on a new Macbook Pro also running Snow Leopard.

I have now 1 week to get a program up and going for a client.
At the moment I can't do anything.

Jaco

  • New Member
  • *
  • Posts: 45
Re: Installing with Snow Leopard
« Reply #2 on: September 09, 2009, 03:58:30 pm »
I run Lazarus on Snow Leopard on 2 machines, without any trouble.

Jaco

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 686
Re: Installing with Snow Leopard
« Reply #3 on: September 09, 2009, 08:22:56 pm »
I have now 1 week to get a program up and going for a client.
At the moment I can't do anything.

I don't know what the problem is exactly, although somewhere you said that you installed FPC 2.2.2, while the latest and recommend version is FPC 2.2.4.

I also don't understand why you completely upgraded your system 1 week before you have to finish an application for a client. Can't you go back to Mac OS X 10.5/Xcode 3.1.x to finish this application and only update afterwards?

freddynerk

  • Jr. Member
  • **
  • Posts: 96
Re: Installing with Snow Leopard
« Reply #4 on: September 10, 2009, 05:21:19 am »
Unfortunately I don't have the 10.5 disks.
The new install has fpc 2.2.4
I will now try a SVN and see what happens.
And yes I was stupid not to wait until my client arrives.
I am silly.
I have installed Xcode.
I don't need to install anything else do I?

Tom

freddynerk

  • Jr. Member
  • **
  • Posts: 96
Re: Installing with Snow Leopard
« Reply #5 on: September 10, 2009, 06:45:04 am »
have include two screen shots of the Environment.
Does this look correct.
I am using Lazarus 0.9.29 beta
FPC 2.2.4
SVN 21587

I will get the latest SVN now


freddynerk

  • Jr. Member
  • **
  • Posts: 96
Re: Installing with Snow Leopard
« Reply #6 on: September 10, 2009, 07:37:05 am »
I have compiled a Hello World demo. (6 megs)
Included is the source etc.

Could someone test this for me.
It runs on my Mac with Lazarus etc.
Does not run on a clean MacBook Pro (both running Snow Leopard.
FPC is the latest version which says it is OK with Snow Leopard.

http://www.ctd.com.au/mac.html


Tom

Jaco

  • New Member
  • *
  • Posts: 45
Re: Installing with Snow Leopard
« Reply #7 on: September 10, 2009, 08:20:02 am »
Your compiled app runs on my Snow Leopard (with Lazarus etc. on it). Does not run on a clean Leopard system.

Have recompiled it, with compatibility set downto Tiger. See if it runs on your systems now:

http://home.orange.nl/jvoorham/hello_jv.zip

Jaco

freddynerk

  • Jr. Member
  • **
  • Posts: 96
Re: Installing with Snow Leopard
« Reply #8 on: September 10, 2009, 08:36:05 am »
Hi Jaco,
Tested Hello on the new machine. Works like a charm.
Tried to recompile with my version.

ld: framework not found Carbon
Error: error while linking

Also my compiled size was 12 megs and yours is 1.9 megs
Maybe that has something to do with problem.

Tom

Jaco

  • New Member
  • *
  • Posts: 45
Re: Installing with Snow Leopard
« Reply #9 on: September 10, 2009, 08:43:57 am »
Hi Tom,

I'm not sure this was the solution to the problem, but it seems like linking against 10.4 solved something.
To be able to compile against 10.4 framework, however, it should be available on your machine. Look on Snow Leopard install disk, it is there somewhere....

Size difference is 'cause I stripped the executable before packing and uploading...

Jaco

freddynerk

  • Jr. Member
  • **
  • Posts: 96
Re: Installing with Snow Leopard
« Reply #10 on: September 10, 2009, 08:46:07 am »
I realize this has been asked before but,
how do you strip the executable?

Tom

Jaco

  • New Member
  • *
  • Posts: 45
Re: Installing with Snow Leopard
« Reply #11 on: September 10, 2009, 08:48:09 am »
Using the terminal app, go to the directory where your executable is located, and use (in case of your hello app):
strip hello

freddynerk

  • Jr. Member
  • **
  • Posts: 96
Re: Installing with Snow Leopard
« Reply #12 on: September 10, 2009, 09:09:14 am »
Hey, That did compile on my machine after I put on the 10.4 stuff.
AND it runs on the clean machine.

My only hassle is the debugger problem.

Thanks so much for that.
I'll now do some tests with the real program.

Tom

freddynerk

  • Jr. Member
  • **
  • Posts: 96
Re: Installing with Snow Leopard
« Reply #13 on: September 10, 2009, 12:22:39 pm »
Hi all,
Started with a simple test.
The Address Book from the examples folder.

Works like a dream on my machine, but does not work on the clean machine.
I set the compiler options the same as with the Hello demo.
Might this be something to do with the DBF format or am I not holding my fingures crossed in the right direction?

Anyway I have included a link to the Address demo program and including source for some kind person to test for me. (only 1 meg)

http://www.ctd.com.au/downloads/address_book.zip

Tom

Jaco

  • New Member
  • *
  • Posts: 45
Re: Installing with Snow Leopard
« Reply #14 on: September 10, 2009, 02:12:34 pm »
Same results as you had: does not run on a clean Leopard machine.
Recompiled it on my Snow Leopard machine, but same results.

Crash report shows a dyld Error message: unknown required load command
No idea what that means though....

Good luck, Jaco