Recent

Author Topic: Lazarus dies after showing splash screen  (Read 12668 times)

WalterK

  • New Member
  • *
  • Posts: 48
Lazarus dies after showing splash screen
« on: December 19, 2008, 08:35:15 pm »
I have OS 10.4 and just installed Lazarus 0.9.26 on top of an old version (which I had never really gotten working, fwiw).  I started it using the application icon, but as the subject line says, it goes away after showing the splash screen. 

Doing
cd /usr/local/share/lazarus
open lazarus.app
doesn't seem to do anything.

TIA.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Lazarus dies after showing splash screen
« Reply #1 on: December 19, 2008, 08:48:49 pm »

WalterK

  • New Member
  • *
  • Posts: 48
Re: Lazarus dies after showing splash screen
« Reply #2 on: December 19, 2008, 09:27:33 pm »
cd /Applications/Lazarus.app/Contents/MacOS
./lazarus

does work!  Thanks.

But next problem (in trying to run the do-nothing unit at startup) is that "LResources" cannot be found.  I can't find any recent forum posts on this, and the BugTracker does not seem to have it either.  Do I need to change the compiler options??

TIA.

WalterK

  • New Member
  • *
  • Posts: 48
Re: Lazarus dies after showing splash screen
« Reply #3 on: December 19, 2008, 09:42:55 pm »
Fwiw, this line:
-Fl/sw/lib -Fl/usr/X11R6/lib/
was in the "Other Unit Files (-Fu)" line.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Lazarus dies after showing splash screen
« Reply #4 on: December 19, 2008, 10:08:38 pm »
But next problem (in trying to run the do-nothing unit at startup) is that "LResources" cannot be found.  I can't find any recent forum posts on this, and the BugTracker does not seem to have it either.  Do I need to change the compiler options??

What fpc package did you install?

Does the compiler version (see environment options for compiler path) match the fpc version (2.2.2) required by Lazarus 0.9.26?

WalterK

  • New Member
  • *
  • Posts: 48
Re: Lazarus dies after showing splash screen
« Reply #5 on: December 19, 2008, 10:42:34 pm »
There is a 'ppcppc' in /usr/local/bin, also an 'fpc'.  The compiler path in the environment options is indeed '/usr/local/bin/ppcppc'.  Doing ./ppcppc -iV shows 2.2.2.  I don't know if I have the source.

WalterK

  • New Member
  • *
  • Posts: 48
Re: Lazarus dies after showing splash screen
« Reply #6 on: December 22, 2008, 12:39:50 pm »
I know this can't be that hard...

I changed the units path to: (even tried the "..." thing on the right)
/usr/local/share/lazarus/lcl/units/powerpc-darwin/
but it still does not find "LResources" when it compiles.  I can remove "LResources," but then it complains about not finding the "Forms" unit.

Am I the only one having this trouble??  Should I wipe the installation completely so I can start fresh?  I'd really like to get Lazarus working.

TIA.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Lazarus dies after showing splash screen
« Reply #7 on: December 22, 2008, 12:45:33 pm »
It is hard to tell without more information.

Can you turn on more verbosity in compiling:
Compiler Options -> Messages tab -> Show all message
Compile
Then in the message view, copy all (including hidden messages) and upload it somewhere (for example a pastebin) for inspection.

WalterK

  • New Member
  • *
  • Posts: 48
Re: Lazarus dies after showing splash screen
« Reply #8 on: December 22, 2008, 12:55:07 pm »
I turned on almost all of the compiler messages, but when I build, the latest error message overwrites the previous one in the Message window so I only see one and I can't cut&paste them all.  :-(    Am I doing something (else) wrong?

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Lazarus dies after showing splash screen
« Reply #9 on: December 22, 2008, 12:57:04 pm »
Yes, you only look at them, but don't copy (including hidden) the messages.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Lazarus dies after showing splash screen
« Reply #10 on: December 22, 2008, 12:58:00 pm »
I can't cut&paste them all.  :-(    Am I doing something (else) wrong?
Can't you right click on them to show a popup menu in the messages view?

WalterK

  • New Member
  • *
  • Posts: 48
Re: Lazarus dies after showing splash screen
« Reply #11 on: December 22, 2008, 01:06:28 pm »
You're right, I can.  (I just would have never thought of it.)

http://www.hu.freepascal.org/fpcircbot/cgipastebin?msgid=5329

Thanks.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Lazarus dies after showing splash screen
« Reply #12 on: December 22, 2008, 01:17:21 pm »
Quote
1201.    [0.316]  Unitsearch:  /usr/local/share/lazarus/lcl/units/powerpc-darwin/LResources.ppu
1202.    [0.316]  PPU  Loading  /usr/local/share/lazarus/lcl/units/powerpc-darwin/lresources.ppu
1203.    [0.316]  PPU  Name:  /usr/local/share/lazarus/lcl/units/powerpc-darwin/lresources.ppu
1204.    [0.316]  PPU  Invalid  Version  78
lresources.ppu is found, but rejected. It seems to be an old file, maybe from a previous release.

Let me think ...

Maybe you should edit the Lazarus directory in the Environment -> Path options, so that is uses the current Lazarus directory.

Please find other occurrences of lresources.ppu and set the lazarus directory to three directories above. So for /Applications/Lazarus.app/lcl/units/powerpc-darwin/lresources.ppu -> /Applications/Lazarus.app.

If you delete (or for safety reasons) rename /usr/local/share/lazarus to /usr/local/share/lazarus.to.be.removed, then Lazarus probably will complain about a missing Lazarus directory.




WalterK

  • New Member
  • *
  • Posts: 48
Re: Lazarus dies after showing splash screen
« Reply #13 on: December 22, 2008, 02:04:46 pm »
OK.  The only LResources.ppu file I could find was in /Developer/lazarus/lcl/units/powerpc-darwin.  I blanked out the Units path under the Compiler Options, and I changed the Environment Options Lazarus directory path to /Developer/lazarus/.

It gave me errors when I tried to compile the project I had originally opened, so I closed/trashed it, opened a new project and

IT WORKS!!  Yeah!!

Thank you very much!

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Lazarus dies after showing splash screen
« Reply #14 on: December 22, 2008, 02:06:10 pm »
 :)

 

TinyPortal © 2005-2018