On Sun, Aug 31, 2008 at 11:15:05PM +0200, Mattias Gaertner wrote:
> On Sun, 31 Aug 2008 21:47:21 +0200
> Tom Verhoeff <[EMAIL PROTECTED]> wrote:
> 
> > I installed Lazarus 0.9.25 for Carbon on Mac OS X 10.5.2 (Intel
> > machine). I downloaded today's snapshot from
> > <http://www.hu.freepascal.org/lazarus/>, i.e. 20080831; including FPC
> > and its sources (version 2.2.2), in the order FPC, FPC sources,
> > Lazarus.
> > 
> > And though Lazarus starts up, it does not work properly.  Its main
> > menu bar never appears, its icon does nog show up in the dock, its
> > windows do not respond to mouse clicks, except for clicking some of
> > the icons on them (like Open ...).  I did manage to open an existing
> > hello project, but running it failed with a complaint near 'uses ...
> > Interfaces'.
> 
> You must start the bundle (lazarus icon in finder), or the executable in
> the bundle (/usr/.../lazarus.app/Contents/MacOS/lazarus), but
> not the executable outside the bundle.

I deleted both lazarus and fpcsrc, and reinstalled fpc, fpcsrc, and lazarus.
(I don't know what to delete to uninstal fpc; anyway, the 2.2.2
i386 compiler works outside Lazarus.)

Starting the executable /usr/.../lazarus.app/Contents/MacOS/lazarus
on the command-line was still not succesful.

But doing 'open lazarus.app' in /usr/local/share/lazarus did work.
I got the menus, and the windows now responded normally.

When compiling a simple GUI hello program, it all works until

...
Using util /usr/bin/ld
An error occurred while linking 
Error: Error while linking.

I checked /etc/fpc.cfg, and it looks OK.

This is the command that Lazarus issues:

ppc386 -Sca -MObjFPC -CirotR -O1 -gl -k-dylib_file 
-k'/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib'
 -k-framework -kCarbon -k-framework -kOpenGL -k'-dylib_file' 
-k'/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib'
 -WG -vewnhiut -l -Fu/usr/local/share/lazarus/lcl/units/i386-darwin/ 
-Fu/usr/local/share/lazarus/lcl/units/i386-darwin/carbon/ 
-Fu/usr/local/share/lazarus/packager/units/i386-darwin/ -Fu. -oHello -dLCL 
-dLCLcarbon hello.lpr

(By the way, is there a simple way to get at that command and be able
to copy it to the clipboard?)

So close and yet so far away :-)

Thanks for further advice,

        Tom
_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to