Am 24.01.2008 um 00:06 schrieb Albert Zeyer:


Am 23.01.2008 um 23:48 schrieb Hess, Philip J:

Hi Albert,

The Lazarus installer creates the lazarus.app bundle and puts the
structure inside it that OS X wants. For apps you develop yourself you
can use the create_app_mac.sh script to create the app's .app bundle.
Open the script in a text editor to see what it's doing. Note that for convenience both lazarus.app and the bundle created by create_app_mac.sh use a symlink to the actual executable in the same folder as the .app.
For distribution you would want to replace the symlink in the bundle
with the actual executable file.

I am trying exactly this right now.

First of all, it seems that the script is only working if your binary is in the same directory from you are running the script. Secondly, I get the message by MacOSX that my architecture doesn't support this application when I click on the app-bundle.

It seems that it is incompatible with Leopard. Does somebody know what I have to extend?


Sorry, my fault. Because of the first issue (that it doesn't link correctly if you use it not from the same dir) I modified a bit and made a mistake.

It works now!

I am really impressed that the Carbon version is already working that good. I made a simple demo application which works perfectly. I will try to compile my game Robot2 now.

Regards,
Albert




Vincent, et al: Would it make sense to based the nightly builds on the 2.2.1 FPC that works around some of the Leopard bugs now that more and more users are upgrading to Leopard? Or would the 2.2.1 FPC just create
more problems than it solves?

Thanks.

-Phil


-----Original Message-----
From: Albert Zeyer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 23, 2008 4:35 PM
To: [email protected]
Subject: Re: [lazarus] make, MacOSX


Am 23.01.2008 um 23:26 schrieb Tom Gregorovic:

On Jan 23, 2008 9:26 PM, Albert Zeyer <[EMAIL PROTECTED]>
wrote:
Hi,

Is there any documentation about the parameters I can pass to the
Makefile?

I am mainly trying to compile Lazarus directly on my system without
using Lazarus for the compilation.

I have added an entry in the wiki:

http://wiki.lazarus.freepascal.org/Carbon_Interface#Compiling_the_Carbon
_interface_via_Makefile

I am currently using this command:
make LCL_PLATFORM=carbon FPC="fpc -k-framework -kcarbon"

It takes some time until I found out that LCL_PLATFORM is the option
to set the interface. And I also didn't find any method to pass
parameters to fpc or the linker, but it seems that FPC="fpc PARAMS"
did the trick.

Though I get a lot of these:
...
ld: atom sorting error for DEBUGEND_SYNEDITTYPES and
DEBUGSTART_SYNEDITTYPES in /Users/az/Programmierung/lazarus/
components/
synedit/units/powerpc-darwin/synedittypes.o
ld: atom sorting error for DEBUGEND_SYNEDITTYPES and
DEBUGSTART_SYNEDITTYPES in /Users/az/Programmierung/lazarus/
components/
synedit/units/powerpc-darwin/synedittypes.o
unknown stabs type 0xC0 in /Users/az/Programmierung/lazarus/
components/
synedit/units/powerpc-darwin/synedittextbuffer.o
unknown stabs type 0xE0 in /Users/az/Programmierung/lazarus/
components/
synedit/units/powerpc-darwin/synedittextbuffer.o
unknown stabs type 0xC0 in /Users/az/Programmierung/lazarus/
components/
synedit/units/powerpc-darwin/syntextdrawer.o
unknown stabs type 0xE0 in /Users/az/Programmierung/lazarus/
components/
synedit/units/powerpc-darwin/syntextdrawer.o
unknown stabs type 0xC0 in /Users/az/Programmierung/lazarus/
components/
synedit/units/powerpc-darwin/synregexpr.o
unknown stabs type 0xE0 in /Users/az/Programmierung/lazarus/
components/
synedit/units/powerpc-darwin/synregexpr.o
unknown stabs type 0xC0 in /Users/az/Programmierung/lazarus/
components/
synedit/units/powerpc-darwin/synexporthtml.o
unknown stabs type 0xE0 in /Users/az/Programmierung/lazarus/
components/
synedit/units/powerpc-darwin/synexporthtml.o
unknown stabs type 0xC0 in /Users/az/Programmierung/lazarus/
components/
synedit/units/powerpc-darwin/synhighlightermulti.o
unknown stabs type 0xE0 in /Users/az/Programmierung/lazarus/
components/
synedit/units/powerpc-darwin/synhighlightermulti.o
987 lines compiled, 5.10 sec
albert-zeyers-macbook:lazarus az$

I am using FPC 2.2.0 (installed via the provided DMG from SF) and
Lazarus from SVN, revision 13844.

Though, Lazarus is starting after this:

albert-zeyers-macbook:lazarus az$ ./startlazarus
dyld: shared cached file is corrupt: /var/db/dyld/
dyld_shared_cache_ppc
TCarbonWidget.Create TCarbonWindow SplashForm: TSplashForm
TCarbonWindow.RegisterEvents TCarbonWindow SplashForm: TSplashForm
CarbonCommon_BoundsChanged SplashForm:TSplashForm
TCarbonWindow.SetScrollInfo TODO
TCarbonWindow.SetScrollInfo TODO
TLazarusManager.Run starting /Users/az/Programmierung/lazarus/
lazarus ...
dyld: shared cached file is corrupt: /var/db/dyld/
dyld_shared_cache_ppc
TApplication.IconChanged - TODO: convert this message...no
implementation in gtk or win32
Note: environment config file not found - using defaults
TCarbonWidget.Destroy TCarbonWindow SplashForm: TSplashForm

Then, a window pops up (a native Carbon window) which says that it
doesn't find the FPC sources. There is an Ignore-Button on this
window
but I cannot click on it. I even cannot focus the window neither move it or do anything with it. The only thing I can do is pressing Ctrl+C
in the console to break it.

Any ideas? Any hints?


Hi,
you have to run Lazarus via Application Bundle (lazarus.app in lazarus
directory). This is also mentioned in

http://wiki.lazarus.freepascal.org/Carbon_interface_FAQ#When_I_execute_a
pplication_compiled_for_Carbon_interface.2C_it_can.27t_be_focused
.

Thanks. Though, why is this so? It should also work directly. You can
also start every other application directly with the console (at least
all the ones I have checked yet).

This is funny, isn't it:

albert-zeyers-macbook:lazarus az$ ./create_app_mac.sh startlazarus
Lazarus
Lazarus.app already exists

I just went into the directory and there was really already this file.
It seems that the make has created it.

And the nice thing: It really works!

Thanks for the help!

Regards,
Albert

_________________________________________________________________
   To unsubscribe: mail [EMAIL PROTECTED] with
              "unsubscribe" as the Subject
 archives at http://www.lazarus.freepascal.org/mailarchives

_________________________________________________________________
   To unsubscribe: mail [EMAIL PROTECTED] with
              "unsubscribe" as the Subject
 archives at http://www.lazarus.freepascal.org/mailarchives

_________________________________________________________________
   To unsubscribe: mail [EMAIL PROTECTED] with
              "unsubscribe" as the Subject
 archives at http://www.lazarus.freepascal.org/mailarchives

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to