Difference between revisions of "Carbon Interface"

From Free Pascal wiki
Jump to navigationJump to search
Line 23: Line 23:
 
=== Compiler Options ===
 
=== Compiler Options ===
  
 +
Set Project > Compiler Options > Paths > LCL Widget Type to ''carbon''
  
 +
Set Project > Compiler Options > Linkink > Options
 +
Check ''Pass Options to the Linker''
  
Project > Compiler Options > Linker
+
and:  
Check ''Pass an option to the linker''
 
 
 
Options:  
 
 
<pre>
 
<pre>
 
-framework carbon
 
-framework carbon

Revision as of 17:05, 13 January 2006

What you need

The Carbon widgetset is in an early stage of development. Fully functional Lazarus IDE on MacOS X is strongly recommended. For instructions see Installing Lazarus on MacOS X.

Getting a carbonproof Lazarus

  • Start Lazarus. The IDE will start with a new project with an empty form. Save this project under a name of your choice. In the following examples we assume this to be /Users/<yourUsername>/pascal/test/project1.lpi

Compiling the Carbon Interface

We now assume your Lazarus directory is located at /Users/<yourUsername>/pascal/lazarus/

  • Start Lazarus.
  • Set Environment>Environment Options>Files>Lazarus Directory to /Users/<yourUsername>/pascal/lazarus/
  • Set Tools>Configure "Build Lazarus"> to

BuildLazarusOptionsCarbonIntf.png

  • Tools>Build Lazarus -- This will compile the Carbon Interface and put the .ppu files into /Users/<yourUsername>/pascal/lazarus/lcl/units/powerpc-darwin and /Users/<yourUsername>/pascal/lazarus/lcl/units/powerpc-darwin/carbon

Your first native Carbon App

Compiler Options

Set Project > Compiler Options > Paths > LCL Widget Type to carbon

Set Project > Compiler Options > Linkink > Options Check Pass Options to the Linker

and:

-framework carbon