Lazarus

Installation => macOS / Mac OS X => Topic started by: Guest on July 28, 2005, 01:59:39 am

Title: Lazarus unable to find an existing Lib
Post by: Guest on July 28, 2005, 01:59:39 am
Hi.

I just installed Lazarus for Mac (binary package), and

gtk+, gtk-doc, gtk+-data, gtk+-shlibs, gtk-engines, gtkglarea, gdk-pixbuf, gdk-pixbuf-shlibs

with Fink (binary). X11 is OK (gtkpool is running happily!).

When try to launch Lazarus, I just see a flash of the splash window, then nothing more. The crash log state:

Host Name:      host107-166.pool8252.interbusiness.it
Date/Time:      2005-07-27 14:37:29 +0200
OS Version:     10.3.9 (Build 7W98)
Report Version: 2

Command: startlazarus
Path:    /usr/local/share/lazarus/startlazarus
Version: ??? (???)
PID:     5688
Thread:  Unknown

Link (dyld) error:

dyld: /usr/local/share/lazarus/startlazarus can't open library: /sw/lib/libgdk_pixbuf.2.dylib  (No such file or directory, errno = 2)


The problem is that that library do exist!

In /sw/lib I have:

libgdk-1.2.0.9.1.dylib
libgdk-1.2.0.dylib
libgdk.a
libgdk.dylib
libgdk.la
libgdk_imlib.1.9.14.dylib
libgdk_imlib.1.dylib
libgdk_imlib.a
libgdk_imlib.dylib
libgdk_imlib.la
libgdk_pixbuf.2.0.0.dylib
libgdk_pixbuf.2.dylib  <-------------- !!!!
libgdk_pixbuf.a
libgdk_pixbuf.dylib
libgdk_pixbuf.la
libgdk_pixbuf_xlib.2.0.0.dylib
libgdk_pixbuf_xlib.2.dylib
libgdk_pixbuf_xlib.a
libgdk_pixbuf_xlib.dylib
libgdk_pixbuf_xlib.la  

Sombody can give me any suggestion?

Thank
Gianni
Title: Re: Lazarus unable to find an existing Lib
Post by: Phil H. on July 29, 2005, 05:43:50 am
Quote from: "Guest"

Link (dyld) error:

dyld: /usr/local/share/lazarus/startlazarus can't open library: /sw/lib/libgdk_pixbuf.2.dylib  (No such file or directory, errno = 2)


The problem is that that library do exist!

In /sw/lib I have:

Gianni


Gianni,

I installed the 20050728 snapshot tonight and it starts up fine. It looks like for some reason it can't find your /sw/lib.

In general, you should only have to install the 3 .dmg's, then set the PATH to /usr/local/bin, then run Lazarus. Don't follow any of the out-of-date instructions scattered around. You also don't need to make Lazarus, despite what the instructions say.

My problem is that I can't get the Lazarus IDE to compile anything. I can compile fine from the command line, but not in the IDE.

Don't give up. Lazarus (and FPC) is shaping up nicely and appears to be improving with each snapshot.

-Phil
Title: Lazarus unable to find an existing Lib
Post by: Gianni on July 29, 2005, 01:47:28 pm
Quote from: "Anonymous"
Quote from: "Guest"

Link (dyld) error:

dyld: /usr/local/share/lazarus/startlazarus can't open library: /sw/lib/libgdk_pixbuf.2.dylib  (No such file or directory, errno = 2)


The problem is that that library do exist!

In /sw/lib I have:

Gianni


Gianni,

I installed the 20050728 snapshot tonight and it starts up fine. It looks like for some reason it can't find your /sw/lib.

In general, you should only have to install the 3 .dmg's, then set the PATH to /usr/local/bin, then run Lazarus. Don't follow any of the out-of-date instructions scattered around. You also don't need to make Lazarus, despite what the instructions say.

My problem is that I can't get the Lazarus IDE to compile anything. I can compile fine from the command line, but not in the IDE.

Don't give up. Lazarus (and FPC) is shaping up nicely and appears to be improving with each snapshot.

-Phil


Thanks, Phil

In the meantime another silly (for me!) thing happened: in my effort to launch this [...] thing, I succeed, but ...

1 - I must launch X-11 by hand
2 - In the X-term window I must type the full command to launch lazarus instead of startlazarus (/usr/local/share/lazarus/lazarus)
     [note 1: the very same path inserted in the Application menu' of X11 won't work
      note 2: if I close Lazarus, and then, for some reason, need to re-launch it, I must quit X-11, then relaunch it and re-write the path]
3 - Some object in the palette won't work (e.g the standard Button) -- better sayd, work only from time to time -- giving an access fault message, with the option to ignore it or to quit the ide.
4 - From time to time, the IDE crash without evident reason
5 - I tried to launch the IDE turning ON the bug tracking, and, also wen all seem work, the terminal window is full of messages complaining about this or that things.

Any clue?

I love Pascal (the only civilized programming language, I think!javascript:emoticon(':)')), and ate to write GUI -- for this very reason I am looking forward for a true RAD on Mac. The problem is that I start programming a lot of years ago, in assembly, when the OSs don't try to protect a programmer from himself, and when you could fetch a byte from an external device without the necessity to write some exoteric, multikbytes kernel driver (well, in ebedded system there was no real OS ...). In my fifty, I am trying to restart programming, but is a lot hard!


Sorry for my bad english, and thanks for your time

Gianni
Title: Installing and running Lazarus on OS X
Post by: Phil H. on July 29, 2005, 09:52:54 pm
Quote from: "Gianni"

1 - I must launch X-11 by hand
2 - In the X-term window I must type the full command to launch lazarus instead of startlazarus (/usr/local/share/lazarus/lazarus)
     [note 1: the very same path inserted in the Application menu' of X11 won't work
      note 2: if I close Lazarus, and then, for some reason, need to re-launch it, I must quit X-11, then relaunch it and re-write the path]
3 - Some object in the palette won't work (e.g the standard Button) -- better sayd, work only from time to time -- giving an access fault message, with the option to ignore it or to quit the ide.
4 - From time to time, the IDE crash without evident reason
5 - I tried to launch the IDE turning ON the bug tracking, and, also wen all seem work, the terminal window is full of messages complaining about this or that things.

Any clue?

Gianni


Gianni,

Lazarus appears to be getting more stable with each passing day. If you can identify the precise conditions that cause the IDE to crash or display an access violation, please log it as a bug.

As a benefit other potential Mac users of Lazarus, here's a quick and dirty review of the basic steps to getting the current Lazarus snapshot installed and running under OS X:

(1) For now, ignore out-of-date installation instructions elsewhere.

(2) Make sure X11 is installed. X11 is optionally installed with OS X and comes on OS X CD's or can be downloaded from Apple.

(3) Download and install the correct version of fink for your version of OS X and let it download and install the additional 29 GTK and related packages needed. Note that instructions elsewhere contained a typo for the fink command. Here's the command that I used (all on one line):

sudo fink install gdk-pixbuf gtk+ gtk+-data gtk+-shlibs gtk-doc-1.2-13 gtkglarea gtk-engines

URL:  http://fink.sourceforge.net/download

(4) Download and install all 3 .dmg files from the Lazarus snapshot page. I doubt if the order of installation matters, but this is the order I installed them:
  - fpc .dmg
  - fpcsrc .dmg
  - lazarus .dmg

URL:  http://www.ca.freepascal.org/Lazarus/

(5) Open X terminal window.

(6) In the X terminal, type:

sh
PATH=$PATH:/usr/local/bin
tcsh
cd /usr/local/share/lazarus
./lazarus

Typing "open lazarus" also works instead of "./lazarus".

(7) I usually "uninstall" everything manually before installing a new snapshot. I don't know that this is really necessary, but it makes me feel better:
- Delete /usr/local/share/lazarus folder
- Delete /usr/local/share/fpcsrc folder
- Delete /usr/local/share/doc/FPC folder
- Delete /usr/local/share/examples/FPC folder
- Delete /usr/local/lib/fpc folder
- Delete FPC programs from usr/local/bin folder. Note that there might be files from other programs in this folder, so be careful about what you delete.
- Empty trash.

Please point out any errors or steps that I might have overlooked.

Thanks.

-Phil
Title: Lazarus unable to find an existing Lib
Post by: Anonymous on July 29, 2005, 10:53:44 pm
Sure, I will try (I will be on vacation next week, so I will do some "scuba diving" in Lazarus installation!)

Thanks, Phil

Gianni
Title: Installation revisited
Post by: Phil H. on July 30, 2005, 09:44:47 pm
Quote from: "Anonymous"
Sure, I will try (I will be on vacation next week, so I will do some "scuba diving" in Lazarus installation!)

Thanks, Phil

Gianni


Gianni,

For newcomers to Lazarus, I left out an important step in the Lazarus installation. Let's call it step 2.1:

2.1. Install the Apple Developer Tools from the XCode Tools CD that came with OS X. This adds an assembler and other tools needed by FPC. There are several packages on the XCode Tools CD. The only one I installed was DeveloperTools.pkg.

Also, I was wrong about being able to start Lazarus with "open lazarus". This works with GUI apps I've compiled with FPC, but not with lazarus itself. Not sure what the difference is since both use the LCL library.

-Phil
Title: RE: Installation revisited
Post by: Anonymous on August 18, 2005, 10:12:32 pm
When I go to install gdk-pixbuf via fink I get a lot of error messages and the process eventually aborts.
(Reading database ...
dpkg: serious warning: files list file for package `libiconv-bin' missing, assuming package has no files currently installed.

dpkg: serious warning: files list file for package `libiconv' missing, assuming package has no files currently installed.

dpkg: serious warning: files list file for package `libiconv-dev' missing, assuming package has no files currently installed.

dpkg: serious warning: files list file for package `gzip' missing, assuming package has no files currently installed.

dpkg: serious warning: files list file for package `gtk+-shlibs' missing, assuming package has no files currently installed.

dpkg: serious warning: files list file for package `ncurses-shlibs' missing, assuming package has no files currently installed.

dpkg: serious warning: files list file for package `netpbm10-shlibs' missing, assuming package has no files currently installed.

dpkg: serious warning: files list file for package `glib' missing, assuming package has no files currently installed.

dpkg: serious warning: files list file for package `ncurses-dev' missing, assuming package has no files currently installed.

dpkg: serious warning: files list file for package `ncurses' missing, assuming package has no files currently installed.

dpkg: serious warning: files list file for package `gtk+' missing, assuming package has no files currently installed.

dpkg: serious warning: files list file for package `gtk+-data' missing, assuming package has no files currently installed.

dpkg: serious warning: files list file for package `glib-shlibs' missing, assuming package has no files currently installed.
880 files and directories currently installed.)

Sorry for the guest post, my loging doesn't seem to work yet.
Title: Done
Post by: Sebyno on February 21, 2006, 03:44:45 pm
I want only say thank's to all in this thread.
Finally I installed Lazarus on OSX


Nice job Phil H. I followed your instructions and BANG! All Works :)
TinyPortal © 2005-2018