Difference between revisions of "Installing Lazarus on macOS"

From Free Pascal wiki
Jump to navigationJump to search
(* X11 download on Apple site is only Mac OS X 10.3.x, fixed link to download developer tools)
Line 5: Line 5:
 
=== Required software ===
 
=== Required software ===
  
*Install Apple´s X11, available on your MacOS X Installation Disk or at [http://www.apple.com/downloads/macosx/apple/x11formacosx.html Apple]. This is for OS X to be able to display X11 programs. Tip: Drag the X11-Icon from /Applications/Utilities/X11 into the Dock for convenient starting.
+
*Install Apple´s X11, available on your Mac OS X Installation Disk. For Mac OS X 10.3.x (but not for any other Mac OS X version!) also at [http://www.apple.com/downloads/macosx/apple/x11formacosx.html Apple]. This is for OS X to be able to display X11 programs. Tip: Drag the X11-Icon from /Applications/Utilities/X11 into the Dock for convenient starting.
*Install Apple´s XCode, available on your MacOS X Installation Disk or at [http://developer.apple.com/ Apple Developer Connection]. This installs the XCode IDE and all the developer stuff.
+
*Install Apple´s XCode, available on your Mac OS X Installation Disk or at [http://connect.apple.com/ Apple Developer Connection] (requires creation of account, but the free online program is enough). This installs the XCode IDE and all the developer stuff.
*Install fink, available at [http://fink.sourceforge.net/ Sourceforge]. This is the OS X 'apt-get'esque package system.
+
*Install fink, available at [http://fink.sourceforge.net/ Sourceforge]. This is an OS X 'apt-get'esque package system.
 
*After successfull installation of the above, open a Terminal and type:
 
*After successfull installation of the above, open a Terminal and type:
  

Revision as of 16:38, 15 January 2006

Overview

Unfortunatly, there is no native Aqua-version of Lazarus for MacOS X.

Required software

  • Install Apple´s X11, available on your Mac OS X Installation Disk. For Mac OS X 10.3.x (but not for any other Mac OS X version!) also at Apple. This is for OS X to be able to display X11 programs. Tip: Drag the X11-Icon from /Applications/Utilities/X11 into the Dock for convenient starting.
  • Install Apple´s XCode, available on your Mac OS X Installation Disk or at Apple Developer Connection (requires creation of account, but the free online program is enough). This installs the XCode IDE and all the developer stuff.
  • Install fink, available at Sourceforge. This is an OS X 'apt-get'esque package system.
  • After successfull installation of the above, open a Terminal and type:
sudo apt-get install glib glib-shlibs gtk+-shlibs gdk-pixbuf-shlibs

This installs GTK.

How to get going

  • Start X11.
  • You get your XTerm. Focus it and type
cd /usr/share/lazarus/
./lazarus

Lazarus as Icon

You can drag and drop the X11 app onto your dock to have a one-click way of starting X11.

To simplify starting Lazarus, in X11, choose Applications | Customize, then click Add Item. Under Name enter Lazarus, under Command enter the following:

open -a /usr/local/share/lazarus/lazarus

Click Done to close. Now you can start Lazarus from X11 simply by choosing Applications | Lazarus.

BEWARE: if you use the below svn, then use

 open -a /Users/yourname/pascal/lazarus/lazarus


How to update fpc and Lazarus to the newest version