Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-08

Lazarus 0.9.25 snapshot 20080831 for Mac OS X fails to run

6 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Tom Verhoeff

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'.

All Lazarus windows do open, it writes out a long list of debug info lines on the terminal, it does show up under 'top' in a terminal window, and in the Activity Monitor it is listed under the inactive processes.

What could be wrong here?

How I am supposed to start this Carbon version? I just ran it from /usr/local/bin in a terminal window. I also tried with 'open lazarus'.

What happened to an earlier installed version (I had a working 0.9.24 for powerpc installed)? It probably got overwritten; is that problametic for the new 0.9.25?

Thanks,

Tom

E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science PHONE: +31 40 247 41 25 | Technische Universiteit Eindhoven FAX: +31 40 247 54 04 | PO Box 513, NL-5600 MB Eindhoven http://www.win.tue.nl/~wstomv/ | The Netherlands

Reply by email

Mattias Gaertner
to Tom Verhoeff
Show quoted text 12 lines
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.

Show quoted text 14 lines
All Lazarus windows do open, it writes out a long list of debug info lines on the terminal, it does show up under 'top' in a terminal window, and in the Activity Monitor it is listed under the inactive processes. What could be wrong here? How I am supposed to start this Carbon version? I just ran it from /usr/local/bin in a terminal window. I also tried with 'open lazarus'. What happened to an earlier installed version (I had a working 0.9.24 for powerpc installed)? It probably got overwritten; is that problametic for the new 0.9.25?

Yes, this could be problematic. Better delete the lazarus directory and install 0.9.25 again.

Mattias

Reply by email

Tom Verhoeff
to Mattias Gaertner
Mattias Gaertner wrote 19 lines
On Sun, 31 Aug 2008 21:47:21 +0200 Tom Verhoeff 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

Reply by email

Mattias Gaertner
to Tom Verhoeff
Show quoted text 5 lines
On Sun, Aug 31, 2008 at 11:15:05PM +0200, Mattias Gaertner wrote: [...] Using util /usr/bin/ld An error occurred while linking Error: Error while linking.

Nothing else?
Normally the linker writes some more information.

Show quoted text 15 lines
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?)

See
http://wiki.lazarus.freepascal.org/IDE_tricks#Getting_the_compiler_command_line_parameters_created_by_the_IDE

So close and yet so far away :-)

Mattias

Reply by email

Tom Verhoeff
to Mattias Gaertner
Mattias Gaertner wrote 11 lines
On Mon, 1 Sep 2008 15:55:33 +0200 Tom Verhoeff wrote: > On Sun, Aug 31, 2008 at 11:15:05PM +0200, Mattias Gaertner wrote: >[...] > Using util /usr/bin/ld > An error occurred while linking > Error: Error while linking. Nothing else? Normally the linker writes some more information.

Nothing else! It goes on with Fatal: There were 1 errors ...

Show quoted text 16 lines
> 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?) See http://wiki.lazarus.freepascal.org/IDE_tricks#Getting_the_compiler_command_line_parameters_created_by_the_IDE

In the Carbon version for Mac OS X, you cannot copy (command-C) the contents of the Show Options window. You can see the options and retype them. But *.compiled is indeed the place to look.

By the way, I probably deleted some "older" (?) files from the directory, and now the compile is successful!

Then I still needed to set Project Options > Application, Use Application Bundle... (is that really needed?)

And it runs :-)

Thanks for the help. Now onto something bigger.

Tom

E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science PHONE: +31 40 247 41 25 | Technische Universiteit Eindhoven FAX: +31 40 247 54 04 | PO Box 513, NL-5600 MB Eindhoven http://www.win.tue.nl/~wstomv/ | The Netherlands

Reply by email

Mattias Gaertner
to Tom Verhoeff
Show quoted text 6 lines
[...] > See > http://wiki.lazarus.freepascal.org/IDE_tricks#Getting_the_compiler_command_line_parameters_created_by_the_IDE In the Carbon version for Mac OS X, you cannot copy (command-C) the contents of the Show Options window.

You are right. I reported the bug:
http://bugs.freepascal.org/view.php?id=12032

Show quoted text 8 lines
You can see the options and retype them. But *.compiled is indeed the place to look. By the way, I probably deleted some "older" (?) files from the directory, and now the compile is successful! Then I still needed to set Project Options > Application, Use Application Bundle... (is that really needed?)

It should be checked by default.

The bundle itself is created when running or debugging. Maybe it is better to do that after compiling.

And it runs :-) Thanks for the help. Now onto something bigger.

Mattias

Reply by email