Sign in Join

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

Mailing lists / lazarus / 2010-12

Help with lazarus on Mac

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Darius Blaszyk
I'm trying to get Lazarus working on a mac mini. What I did is the following;

1. installed xcode_3.2.5_and_ios_sdk_4.2_final.dmg
2. installed fpc-2.4.2.intel-macosx.dmg
3. got lazarus from SVN and did a make clean all

First of all I see a lot linker errors eg ld: warning: unknown stabs type 0xC0 in ../units/i386-darwin/outputfilter.o

What does this mean?

Second, after starting ./lazarus from the console or lazarus.app from the finder, the splash screen shows and a message box "FPC sources not found" is shown, after which the app just freezes. I have pasted the output from the command line below.

I must have done something wrong, but since it's my first try on a mac I would appreciate some help.

Regards, Darius

./lazarus
CarbonFontIDToFontName Error: ATSUFindFontName Length failed with result -8905 CarbonFontIDToFontName Error: ATSUFindFontName Length failed with result -8905 TMainIDE.ParseCmdLineOptions:
PrimaryConfigPath="/Users/dariusblaszyk/.lazarus"
SecondaryConfigPath="/etc/lazarus"
Note: environment config file not found - using defaults NOTE: editor options config file not found - using defaults NOTE: miscellaneous options file not found - using defaults NOTE: codetools config file not found - using defaults

NOTE: Compiler filename not set! (see Environment / Options ... / Environment / Files)

NOTE: FPC source directory not set! (see Environment / Options ... / Environment / Files) TFPCTargetConfigCache.NeedsUpdate compiler file changed "/usr/local/bin/fpc" FileAge=1289335232 StoredAge=0 TFPCTargetConfigCache.Update /usr/local/bin/fpc TargetOS=darwin TargetCPU=i386 CompilerOptions= ExtraOptions= PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin RunTool /usr/local/bin/fpc -iTOTP -Pi386 -Tdarwin
RunTool /usr/local/bin/fpc -va -Pi386 -Tdarwin compilertest.pas TFPCTargetConfigCache.Update: has changed

Reply by email

dmitry boyarintsev
to Darius Blaszyk
Darius Blaszyk wrote 5 lines
I'm trying to get Lazarus working on a mac mini. What I did is the following; 1. installed xcode_3.2.5_and_ios_sdk_4.2_final.dmg 2. installed fpc-2.4.2.intel-macosx.dmg 3. got lazarus from SVN and did a make clean all

you're missing the 4th step:

4. run lazarus bundle (rather than the executable). the command is: "open lazarus.app"

the other option is to run lazarus executable from the bundle" cd lazarus.app/Contents/MacOS/" "./lazarus", instead of the executable outside of the bundle.

----
note: you can ignore warnings "ld: warning: unknown stabs type 0xC0 in ../units/i386-darwin/outputfilter.o"

thanks,
Dmitry

Reply by email

Darius Blaszyk
to dmitry boyarintsev
dmitry boyarintsev wrote 12 lines
On Thu, Dec 30, 2010 at 8:13 AM, Darius Blaszyk wrote: > I'm trying to get Lazarus working on a mac mini. What I did is the following; > > 1. installed xcode_3.2.5_and_ios_sdk_4.2_final.dmg > 2. installed fpc-2.4.2.intel-macosx.dmg > 3. got lazarus from SVN and did a make clean all you're missing the 4th step: 4. run lazarus bundle (rather than the executable). the command is: "open lazarus.app"

That does not work. The app still freezes. I tried from finder as I described earlier, but also from command as you described.

the other option is to run lazarus executable from the bundle" cd lazarus.app/Contents/MacOS/" "./lazarus", instead of the executable outside of the bundle.

This does work! Thanks for that. However if I do a "restart" from the IDE lazarus hangs again. I guess that lazarus will only start the way you described above. Luckily rebuilding lazarus works fine but only using Carbon. When I tried with Cocoa there was a compiler error on the "objectivec1" compiler switch. Is this a known issue? Is Cocoa in a state so I can compile the IDE already in it?

---- note: you can ignore warnings "ld: warning: unknown stabs type 0xC0 in ../units/i386-darwin/outputfilter.o"

Understood, but what does this mean? Just for my curiosity.

Regards, Darius

Reply by email

dmitry boyarintsev
to Darius Blaszyk
Darius Blaszyk wrote
> "ld: warning: unknown stabs type 0xC0 in > ../units/i386-darwin/outputfilter.o" Understood, but what does this mean? Just for my curiosity.

Apple's linker doesn't support some GNU linker STABS symbols.

If you want to try Cocoa widgetset, you need to use FPC 2.5.1 (trunk) version. However, Cocoa widgetset is in alpha stage, so no Cocoa-IDE.

thanks,
dmitry

Reply by email