Recent

Author Topic: Can't make Lazarus work on OS 10.4.11  (Read 20361 times)

Sylvain M

  • New Member
  • *
  • Posts: 12
Can't make Lazarus work on OS 10.4.11
« on: July 28, 2009, 04:53:15 am »
Hello,

I'm totally new on the Mac world, and I would like to use some applications I wrote using Lazarus on Windows XP, on my MacBook Intel using OS 10.4.11.
So I followed the instructions here  http://wiki.lazarus.freepascal.org/OS_X_Programming_Tips
and
- installed the Apple Developer Tools and gcc4.0.pkg which were on the install CD.
- installed X11.
- downloaded and installed Fink and installed gtk with it (correctly, I hope...)
- downloaded fpc-2.2.0-i386-macosx.dmg, fpcsrc-2.2.0-i386-macosx.dmg, and lazarus-0.9.26-i386-macosx.dmg
- installed them by clicking them, in the order above.
- went to /usr/local/share/lazarus
- clicked on the icon

... Then the Lazarus icon appears in the dock (1 second) but soon disappear and... nothing happens !
I tried to use the terminal to open the lazarus.app and the result was similar.
Then I tried to click on the icon "startlazarus", the first image "free pascal lazarus project" appears, then disappear, then nothing...  %)

Did anybody have the same problem ?
What can I do to make it start ? I'm already trying to fix this problem for a week...

Thanks !

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Can't make Lazarus work on OS 10.4.11
« Reply #1 on: July 28, 2009, 06:41:18 am »
Did anybody have the same problem ?
What can I do to make it start ? I'm already trying to fix this problem for a week...
Please to the following
* open Terminal
* go to lazarus installed folder and the bundle
cd /usr/local/share/lazarus/lazarus.app/Contents/MacOS
* launch lazarus by this line:
./lazarus

if it fails to run, please copy-paste the information from terminal here.

Also, i'd suggest to use a newer version of Lazarus 0.9.27, available in snapshots: http://www.hu.freepascal.org/lazarus/
you'll need to upload newer compiler version 2.2.4 as well.

Sylvain M

  • New Member
  • *
  • Posts: 12
Re: Can't make Lazarus work on OS 10.4.11
« Reply #2 on: July 28, 2009, 07:50:16 am »
Thank you for your reply.
Here is the message I got from the terminal :
Gtk-WARNING **: cannot open display:

Does it mean something to you ?

Can I install the new versions directly or do I have to uninstall something before ?



skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Can't make Lazarus work on OS 10.4.11
« Reply #3 on: July 28, 2009, 08:24:28 am »
Here is the message I got from the terminal :
Gtk-WARNING **: cannot open display:

Does it mean something to you ?
Seems like you're trying to use gtk lazarus version.
See if there's a Lazarus in Applications. Try launch it, if it's there.

Can I install the new versions directly or do I have to uninstall something before ?
you can install newer version over the old ones.
but if you want some purity see the wiki for uninstallation

Sylvain M

  • New Member
  • *
  • Posts: 12
Re: Can't make Lazarus work on OS 10.4.11
« Reply #4 on: July 28, 2009, 10:55:36 am »
There is a Lazarus in Applications but only the first bitmap appears ("Free pascal lazarus Project") when I click on it. Then nothing happens.
Do I use the wrong version of the software ?

I will try to install the new versions too tomorrow (I'm in Japan, it's already late).



skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Can't make Lazarus work on OS 10.4.11
« Reply #5 on: July 28, 2009, 01:51:35 pm »
There is a Lazarus in Applications but only the first bitmap appears ("Free pascal lazarus Project") when I click on it. Then nothing happens.
Do I use the wrong version of the software ?
try to do the following (before you install newer version)
open Terminal
Code: [Select]
cd /Developers/lazarus
cd lazarus.app/Contents/MacOS
./lazarus

also paste the results here.

I will try to install the new versions too tomorrow (I'm in Japan, it's already late).
There should be a Japanese Lazarus community. They might help you as well.
I don't know their site, but if you find out, please let me know.

Lord_ZealoN

  • Full Member
  • ***
  • Posts: 141
    • http://lordzealon.com
Re: Can't make Lazarus work on OS 10.4.11
« Reply #6 on: July 28, 2009, 03:57:30 pm »
There is a Lazarus in Applications but only the first bitmap appears ("Free pascal lazarus Project") when I click on it. Then nothing happens.
Do I use the wrong version of the software ?

I will try to install the new versions too tomorrow (I'm in Japan, it's already late).

I'm not sure, but, 0.9.26 on OSX is not GTK based by default, and is not installed in /Developer/lazarus? Sorry If i'm wrong.

The best way in my humble opinion, is, to download and install in this order.
FPC Sources: ftp://ftp.hu.freepascal.org/pub/lazarus/fpcsrc-2.2.4-20090728-i386-macosx.dmg
FPC: ftp://ftp.hu.freepascal.org/pub/lazarus/fpc-2.2.4-20090714-powerpc-macosx.dmg
Lazarus: ftp://ftp.hu.freepascal.org/pub/lazarus/lazarus-0.9.27.20983-20090728-i386-macosx.dmg

Open a Finder, go to /Developer/Lazarus, and DoubleClick on Lazarus tiger icon. It should open a Carbon based Lazarus.

If it fails, try, from a terminal:
Code: [Select]
cd /Developer/lazarus
./startlazarus --pcp=./config

Tell us what happen. If your monitor or CPU burns, call 1-1-9

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Can't make Lazarus work on OS 10.4.11
« Reply #7 on: July 28, 2009, 05:39:00 pm »
If it fails, try, from a terminal:
Code: [Select]
cd /Developer/lazarus
./startlazarus --pcp=./config
The issue has been fixed. Try the latest svn version. Nothing terrible should happen.

Sylvain M

  • New Member
  • *
  • Posts: 12
Re: Can't make Lazarus work on OS 10.4.11
« Reply #8 on: July 30, 2009, 03:34:21 am »

try to do the following (before you install newer version)
open Terminal
Code: [Select]
cd /Developers/lazarus
cd lazarus.app/Contents/MacOS
./lazarus

also paste the results here.

Lazarus started.  :D But why can't I start it directly ?
Here is the result in the terminal (it's a bit long) :

TCarbonPrinter.ValidatePageFormat Error: PMSessionValidatePageFormat  failed with result -30876
TMainIDE.ParseCmdLineOptions:
  PrimaryConfigPath="/Users/user/.lazarus"
  SecondaryConfigPath="/etc/lazarus"
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO
NOTE: editor options config file not found - using defaults
NOTE: miscellaneous options file not found - using defaults
NOTE: codetools config file not found - using defaults
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO
NOTE: help options config file not found - using defaults
TMainIDE.DoNewProject A
TFindDeclarationTool.ValidateToolDependencies project1.lpr
TFindDeclarationTool.ValidateToolDependencies project1.lpr
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO
TCustomFormEditor.CreateComponent Form1:TForm1 True
TFindDeclarationTool.ValidateToolDependencies project1.lpr
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO
TMainIDE.DoNewEditorFile END unit1.pas
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO

There should be a Japanese Lazarus community. They might help you as well.
I don't know their site, but if you find out, please let me know.
I'm in Japan but I'm not japanese. I can read english better than japanese.  ;)

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Can't make Lazarus work on OS 10.4.11
« Reply #9 on: July 30, 2009, 08:21:33 am »
Lazarus started.  :D But why can't I start it directly ?
can you start Lazarus by the icon at? /Developers/lazarus

You're still using older version of Lazarus, right?

Sylvain M

  • New Member
  • *
  • Posts: 12
Re: Can't make Lazarus work on OS 10.4.11
« Reply #10 on: July 30, 2009, 09:56:32 am »
can you start Lazarus by the icon at? /Developers/lazarus
Yes, it started correctly.
But when I try to run the empty project, it says
project1.lpr(8,7) Fatal: Can't find unit Interfaces used by Project1

It seems the settings are not correct...

You're still using older version of Lazarus, right?
Yes, I'm still trying to use the old one.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Can't make Lazarus work on OS 10.4.11
« Reply #11 on: July 30, 2009, 10:05:16 am »
Yes, it started correctly.
But when I try to run the empty project, it says
project1.lpr(8,7) Fatal: Can't find unit Interfaces used by Project1
Does Lazarus have native OSX look?

It feels like you have installed Lazarus and FPC from differenct sources, rather than downloading everything from Lazarus sourceforge page. It's "legal", and should not cause much problem.

Try to fix the problem in the following way:
* start lazarus
* tools -> configure build -> (quick build options)
* Build IDE with Packages (make sure that LCL Interface is set to "carbon (default)")
* Build


Sylvain M

  • New Member
  • *
  • Posts: 12
Re: Can't make Lazarus work on OS 10.4.11
« Reply #12 on: July 30, 2009, 10:14:18 am »
Does Lazarus have native OSX look?

It seems ok.

Try to fix the problem in the following way:
* start lazarus
* tools -> configure build -> (quick build options)
* Build IDE with Packages (make sure that LCL Interface is set to "carbon (default)")
* Build


I have this message :
/Developer/lazarus/components/tachart/taseries.pas(37,9) Fatal: Can't find unit graphics used by TASeries

Should I try to install newer versions, like the ones Lord_ZealoN gave me ?

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Can't make Lazarus work on OS 10.4.11
« Reply #13 on: July 30, 2009, 10:29:41 am »
I have this message :
/Developer/lazarus/components/tachart/taseries.pas(37,9) Fatal: Can't find unit graphics used by TASeries
try once again with Cleanup + Build All

Should I try to install newer versions, like the ones Lord_ZealoN gave me ?
It is encouraged that you try. But it's not necessary.

Lord_ZealoN

  • Full Member
  • ***
  • Posts: 141
    • http://lordzealon.com
Re: Can't make Lazarus work on OS 10.4.11
« Reply #14 on: July 30, 2009, 11:58:35 am »
can you start Lazarus by the icon at? /Developers/lazarus
Yes, it started correctly.
But when I try to run the empty project, it says
project1.lpr(8,7) Fatal: Can't find unit Interfaces used by Project1

Has you selected "Carbon" on Compiler Options?

 

TinyPortal © 2005-2018