Difference between revisions of "Carbon Interface"

From Lazarus wiki
Jump to navigationJump to search
Line 1: Line 1:
== Carbon Primer ==
+
== What you need ==
 
 
=== 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]].
 
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 ===
+
== Getting a carbonproof Lazarus ==
  
 
*Install SVN for MacOS X: A good package is provided by [http://www.codingmonkeys.de/mbo/ Martin Ott].
 
*Install SVN for MacOS X: A good package is provided by [http://www.codingmonkeys.de/mbo/ Martin Ott].
 
*Then follow [[Installing_Lazarus#Downloading_Lazarus_SVN]]
 
*Then follow [[Installing_Lazarus#Downloading_Lazarus_SVN]]
  
=== Compiling the Carbon Interface ===
+
*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/
 
We now assume your Lazarus directory is located at /Users/<yourUsername>/pascal/lazarus/
Line 17: Line 17:
 
*Set Tools>Configure "Build Lazarus"> to
 
*Set Tools>Configure "Build Lazarus"> to
 
[[Image:BuildLazarusOptionsCarbonIntf.png]]
 
[[Image: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 ===
 +
 +
 +
 +
Project > Compiler Options > Linker
 +
Check ''Pass an option to the linker''
 +
 +
Options:
 +
<pre>
 +
-framework carbon
 +
</pre>
 +
 +
===  ===

Revision as of 17:02, 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

Project > Compiler Options > Linker Check Pass an option to the linker

Options:

-framework carbon