Recent

Author Topic: Lazarus tries to load and disappears  (Read 30836 times)

davidshepherd

  • New Member
  • *
  • Posts: 30
Re: Lazarus tries to load and disappears
« Reply #15 on: December 14, 2009, 10:20:30 am »
Quote from: davidshepherd link=topic=8151.msg39064#msg39064
Appreciate the help, but I don't know how to interpret the error I got!
Lots of errors, mostly 'command now found', but eventually:

make[1]: -iTO: Command not found
do you have XCode installed?

Yessir, I do.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Lazarus tries to load and disappears
« Reply #16 on: December 14, 2009, 10:30:52 am »
try to build Lazarus with
Code: [Select]
make
instead of
Code: [Select]
make bigide
please post console output of make command here

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1059
Re: Lazarus tries to load and disappears
« Reply #17 on: December 14, 2009, 10:46:21 am »

I believe there was an issue where Intel Mac builds of Lazarus would not work on Intel Mac running 10.4 because of the way it was linked against version 7 of libiconv.2.dylib - 10.4 only has version 5.

0.9.28.2 is still linked against version 7, as is my build of Lazarus from SVN, so I'm not sure that this has been fixed.

Doesn't that depend on the buildsystem/used SDK rather than the source itself? Or is it a dynamic load?

It indeed means that whoever compiled the Lazarus releases did not use the correct SDK to do so. The parameters you have to use are documented on the wiki: http://wiki.freepascal.org/OS_X_Programming_Tips#Compiling_under_10.5_for_10.4_and_below

When compiling from the command line, you have to use them as

OPT="-k-macosx_version_min -k10.4 -XR/Developer/SDKs/MacOSX10.4u.sdk/"

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1059
Re: Lazarus tries to load and disappears
« Reply #18 on: December 14, 2009, 10:50:23 am »
Appreciate the help, but I don't know how to interpret the error I got!
Lots of errors, mostly 'command now found', but eventually:

make[1]: -iTO: Command not found

This means that the Makefile cannot find the "fpc" binary. Add /usr/local/bin to your path and try again.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Lazarus tries to load and disappears
« Reply #19 on: December 14, 2009, 10:54:55 am »
OPT="-k-macosx_version_min -k10.4 -XR/Developer/SDKs/MacOSX10.4u.sdk/"
It has been fixed.

Daily snapshots (http://www.hu.freepascal.org/lazarus/) should not have the problem.
davidshepherd you can try them.

davidshepherd

  • New Member
  • *
  • Posts: 30
Re: Lazarus tries to load and disappears
« Reply #20 on: December 14, 2009, 11:31:45 am »
try to build Lazarus with
Code: [Select]
make
instead of
Code: [Select]
make bigide
please post console output of make command here

Lots of 'command not found lines again', and the same lib error methinks.

Thanks for being so helpful though! I need the moral support!

make[1]: -iTO: Command not found
dyld: Library not loaded: /usr/lib/libiconv.2.dylib
  Referenced from: /Developer/lazarus/ide/../tools/svn2revisioninc
  Reason: Incompatible library version: svn2revisioninc requires version 7.0.0 or later, but libiconv.2.dylib provides version 5.0.0
make[1]: *** [revisioninc] Trace/BPT trap
make: *** [ide] Error 2

davidshepherd

  • New Member
  • *
  • Posts: 30
Re: Lazarus tries to load and disappears
« Reply #21 on: December 14, 2009, 11:41:41 am »
Appreciate the help, but I don't know how to interpret the error I got!
Lots of errors, mostly 'command now found', but eventually:

make[1]: -iTO: Command not found

This means that the Makefile cannot find the "fpc" binary. Add /usr/local/bin to your path and try again.

Ah...  okay, did that, same library error at the end, but it did compile some things this time. Woo hoo! (grin)

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Lazarus tries to load and disappears
« Reply #22 on: December 14, 2009, 11:42:21 am »
Try Lazarus daily snapshot.

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1059
Re: Lazarus tries to load and disappears
« Reply #23 on: December 14, 2009, 11:43:47 am »
Appreciate the help, but I don't know how to interpret the error I got!
Lots of errors, mostly 'command now found', but eventually:

make[1]: -iTO: Command not found

This means that the Makefile cannot find the "fpc" binary. Add /usr/local/bin to your path and try again.

Ah...  okay, did that, same library error at the end, but it did compile some things this time. Woo hoo! (grin)

Delete "/Developer/lazarus/ide/../tools/svn2revisioninc" and try again. It seems that somehow your IDE sources include a version of that tool compiled on a newer system.

davidshepherd

  • New Member
  • *
  • Posts: 30
Re: Lazarus tries to load and disappears
« Reply #24 on: December 14, 2009, 11:49:30 am »
OPT="-k-macosx_version_min -k10.4 -XR/Developer/SDKs/MacOSX10.4u.sdk/"
It has been fixed.

Daily snapshots (http://www.hu.freepascal.org/lazarus/) should not have the problem.
davidshepherd you can try them.

Well, I had hope for a minute...  (grin).

BUT, alas, with the latest snapshot, this is the crash log:

Host Name:      david-shepherds-computer
Date/Time:      2009-12-14 05:46:21.323 -0500
OS Version:     10.4.11 (Build 8S2167)
Report Version: 4

Command: lazarus
Path:    /Developer/lazarus/lazarus.app/Contents/MacOS/lazarus
Parent:  WindowServer [60]

Version: Lazarus IDE v0.9.28.3 beta (1)

PID:    2952
Thread: Unknown

Link (dyld) error:

Library not loaded: /usr/lib/libiconv.2.dylib
  Referenced from: /Developer/lazarus/lazarus.app/Contents/MacOS/lazarus
  Reason: Incompatible library version: lazarus requires version 7.0.0 or later, but libiconv.2.dylib provides version 5.0.0


Same library error, sigh...

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Lazarus tries to load and disappears
« Reply #25 on: December 14, 2009, 11:51:54 am »
Same library error, sigh...
k, then you need to rebuild Lazarus from sources.

open Terminal:
Code: [Select]
cd ~
open -e .profile
open .MacOSX/environment.plist

make sure that /usr/local/bin is added to PATH variable (like in screenshots)

you'll also need to make sure that "fpc" and "ppc386" are present in /usr/local/bin
Code: [Select]
ls /usr/local/bin/*pc*

Reboot Mac (it's necessary after fixing ~/.MacOSX/environment.plist) and try to "make" lazarus again.
« Last Edit: December 14, 2009, 11:58:41 am by skalogryyz »

davidshepherd

  • New Member
  • *
  • Posts: 30
Re: Lazarus tries to load and disappears
« Reply #26 on: December 14, 2009, 12:10:48 pm »
Appreciate the help, but I don't know how to interpret the error I got!
Lots of errors, mostly 'command now found', but eventually:

make[1]: -iTO: Command not found

This means that the Makefile cannot find the "fpc" binary. Add /usr/local/bin to your path and try again.




Ah...  okay, did that, same library error at the end, but it did compile some things this time. Woo hoo! (grin)

Delete "/Developer/lazarus/ide/../tools/svn2revisioninc" and try again. It seems that somehow your IDE sources include a version of that tool compiled on a newer system.

Well sir, very interesting.

I did that, and it compiled with 'make'.

It even RAN!

But, popped a button on a form and compiled, and it is doing odd things, like... not becoming visible.
I tried a synedit component, and it showed up the first time, but then lazarus shut down.

So something isn't right yet.

I guess I'd better uninstall everything again and start over with the newest version, rather than updating. something is giving me multiple versions... I'm guessing anyway, since deleting that one file helped get me a laz that didn't disappear with a lib error.

davidshepherd

  • New Member
  • *
  • Posts: 30
Re: Lazarus tries to load and disappears
« Reply #27 on: December 14, 2009, 12:24:45 pm »
Same library error, sigh...
k, then you need to rebuild Lazarus from sources.

open Terminal:
Code: [Select]
cd ~
open -e .profile
open .MacOSX/environment.plist

make sure that /usr/local/bin is added to PATH variable (like in screenshots)

you'll also need to make sure that "fpc" and "ppc386" are present in /usr/local/bin
Code: [Select]
ls /usr/local/bin/*pc*

Reboot Mac (it's necessary after fixing ~/.MacOSX/environment.plist) and try to "make" lazarus again.

Well, that brought up other interesting things.

All of the info you mentioned is below, but not perhaps with the results you expected...  such as my not having a .profile????  surely it's hidden or something...   at any rate, enjoy. I did.

Oh, the reason the path is right, is I did the path=/usr/local/bin:$path thing in the shell already, before I ran the make.


david-shepherds-computer:~ davidshepherd$ cd ~
david-shepherds-computer:~ davidshepherd$ pwd
/Users/davidshepherd
david-shepherds-computer:~ davidshepherd$ open -e .profile
2009-12-14 06:18:56.948 open[3136] No such file: /Users/davidshepherd/.profile
david-shepherds-computer:~ davidshepherd$ open .MacOSX/environment.plist
2009-12-14 06:19:15.031 open[3137] No such file: /Users/davidshepherd/.MacOSX/environment.plist
david-shepherds-computer:~ davidshepherd$ echo $PATH
/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/sw/bin:/sw/sbin
david-shepherds-computer:~ davidshepherd$ ls /usr/local/bin/*pc*
/usr/local/bin/fpc              /usr/local/bin/fpcmake          /usr/local/bin/fpcsubst         /usr/local/bin/ppc386
/usr/local/bin/fpclasschart     /usr/local/bin/fpcmkcfg         /usr/local/bin/mkxmlrpc         /usr/local/bin/ppcppc
david-shepherds-computer:~ davidshepherd$ sudo open -e .profile
Password:
2009-12-14 06:22:27.927 open[3139] No such file: /Users/davidshepherd/.profile
david-shepherds-computer:~ davidshepherd$



skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Lazarus tries to load and disappears
« Reply #28 on: December 14, 2009, 12:36:17 pm »
.profile is optional it's used by Terminal.
can be created and edited with this commands:
Code: [Select]
touch .profile
open -e .profile

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1059
Re: Lazarus tries to load and disappears
« Reply #29 on: December 14, 2009, 12:45:55 pm »
open Terminal:
Code: [Select]
cd ~
open -e .profile
open .MacOSX/environment.plist

make sure that /usr/local/bin is added to PATH variable (like in screenshots)

you'll also need to make sure that "fpc" and "ppc386" are present in /usr/local/bin
Code: [Select]
ls /usr/local/bin/*pc*

Reboot Mac (it's necessary after fixing ~/.MacOSX/environment.plist) and try to "make" lazarus again.

You don't have to add anything to .MacOSX/environment.plist unless those settings have to be available in GUI applications as well (and having /usr/local/bin in your path should not be necessary for any GUI application, including Lazarus). Furthermore, you don't have to reboot after modifying that file, logging out and logging back in should be enough.

 

TinyPortal © 2005-2018