Difference between revisions of "How to get the fpc ide running under Mac OS X"

From Lazarus wiki
Jump to navigationJump to search
m (Category Mac OS X added)
m (Information out of date.)
Line 1: Line 1:
The mouse does not work in revision version 2.0.4. From version 2.1.2 revision 6226 and possibly up the mouse works.<br><br>
+
I'm busy working on the IDE so that it'll be included in 2.8 stable. In the mean time, download the Lion binary here:
Mandatory Requirements:<br>
+
http://niceversa.co.za/.system/ide-latest.tgz
#Apple developer tools (read XCode) and X11<br><br>
+
Extract that to /usr/bin/
#The freepascal ide<br><br>you need: compiler, rtl, (maybe base packages, fcl and extra packages. note: fcl has been moved into packages in version 2.1.2 revision 6655), fvision (i.e. fv) and ide.<br><br>compile fv:<br><br><tt>cd fv</tt><br><tt>make clean all</tt><br><br>compile the ide (there is no debugger library, just neglect the resulting warning):<br><br><tt>cd ide</tt><br><tt>make clean all</tt><br><br>You may use fink (http://www.finkproject.org/) for the installation of freepascal.<br>The package fpc installs all you need including the fv units and the ide.<br><br>
+
 
Optional Requirements:<br><br>due to recent updates the next two steps (installing the vga font and make it accessible in xterm) are not mandatory any longer to get at least a partially working IDE, and consequently may be skipped. You will miss the nice fpc background, for example. (;-)<br><br>
+
There are a couple of issues I'm trying to fix, namely:
# install the vga font for xterm<br><br>download the vga font here: http://home.earthlink.net/~us5zahns/enl/vga.pcf<br><br>for more docs on changing the Xterm font look here: http://www.linux.org/docs/ldp/howto/Bash-Prompt-HOWTO/x606.html<br><br>copy the font to /usr/X11R6/lib/X11/fonts/misc/<br><br><tt>mv your_download_dir/vga.pcf /usr/X11R6/lib/X11/fonts/misc/</tt><br><br>check and set file permissions (you have to be root to do this):<br><br><tt>cd /usr/X11R6/lib/X11/fonts/misc/</tt><br><br><tt>chown root:wheel vga.pcf; chmod 444 vga.pcf</tt><br><br>start an xterm in X11 and do:<br><br><tt>cd /usr/X11R6/lib/X11/fonts/misc/</tt><br><tt>mkfontdir</tt><br><tt>xset fp rehash</tt><br><br>Now you should be able to start xterm with the vga font by:<br><br><tt>xterm -font vga -r</tt><br><br>It is useful to define this as a customized command in X11 (Menu Applications -> Customize...)<br><br>
+
- printing
# set the terminal type to linux<br><br><tt>export TERM=linux</tt><br><br>or start xterm with<br><br><tt>xterm -font vga -r -tn linux</tt><br><br>Without this, you may get funny characters at the position of box borders and other, similar places.<br>You may add this command to your bash startup file. The bash shell of xterm of X11 reads the .bashrc file in your $HOME directory and not .bash_profile. For more information on this topic read the man pages of bash or search for X11 and bash on http://www.macosxhints.com.<br>For more on fonts, terminals, 8bit characters, ESC codes read [[Terminal & Fonts]].<br><br>
+
- compiling
Starting the IDE:<br>
+
 
# start the ide in an xterm<br><br><tt>cd your_path/fpc/ide</tt><br><tt>./fp</tt><br><br>In order to get Alt-x you have to press ESC and x.<br><br>For easier use you may install freepascal and the ide:<br><br><tt>cd your_path/fpc</tt><br><tt>sudo make install</tt><br><tt>sudo make -C fv install</tt><br><tt>sudo make -C ide install</tt><br><br>
+
To get the keyboard working, Terminal->Preferences->Keyboard->Use alt as meta.
An example screen shot with the VGA font:<br><br>http://michael-ep3.physik.uni-halle.de/~michael/ideonmacosx.png
+
http://niceversa.co.za/.system/meta.png
 +
 
 +
Need help? misha.strong at mweb.co.za.
  
 
[[Category:Mac OS X]]
 
[[Category:Mac OS X]]

Revision as of 13:12, 17 January 2012

I'm busy working on the IDE so that it'll be included in 2.8 stable. In the mean time, download the Lion binary here: http://niceversa.co.za/.system/ide-latest.tgz Extract that to /usr/bin/

There are a couple of issues I'm trying to fix, namely: - printing - compiling

To get the keyboard working, Terminal->Preferences->Keyboard->Use alt as meta. http://niceversa.co.za/.system/meta.png

Need help? misha.strong at mweb.co.za.