Sign in Join
Wiki copytemporary

How to get the fpc ide running under Mac OS X: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11> **Warning:** Legacy information - no longer current
22
33The mouse does not work in revision version 2.0.4. From version 2.1.2 revision 6226 and possibly up the mouse works.\
4-\
4+
55Mandatory Requirements:\
66\#Apple developer tools (read XCode) and X11\
7-\
7+
88\#The freepascal ide\
9-\
9+
1010you 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.\
11-\
11+
1212compile fv:\
13-\
13+
1414`cd fv`\
1515`make clean all`\
16-\
16+
1717compile the ide (there is no debugger library, just neglect the resulting warning):\
18-\
18+
1919`cd ide`\
2020`make clean all`\
21-\
21+
2222You may use fink (http://www.finkproject.org/) for the installation of freepascal.\
2323The package fpc installs all you need including the fv units and the ide.\
24-\
24+
2525Optional Requirements:\
26-\
26+
2727due 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. (;-)\
28-\
28+
2929\# install the vga font for xterm\
30-\
30+
3131download the vga font here: <http://home.earthlink.net/~us5zahns/enl/vga.pcf>\
32-\
32+
3333for more docs on changing the Xterm font look here: <http://www.linux.org/docs/ldp/howto/Bash-Prompt-HOWTO/x606.html>\
34-\
34+
3535copy the font to /usr/X11R6/lib/X11/fonts/misc/\
36-\
36+
3737`mv your_download_dir/vga.pcf /usr/X11R6/lib/X11/fonts/misc/`\
38-\
38+
3939check and set file permissions (you have to be root to do this):\
40-\
40+
4141`cd /usr/X11R6/lib/X11/fonts/misc/`\
42-\
42+
4343`chown root:wheel vga.pcf; chmod 444 vga.pcf`\
44-\
44+
4545start an xterm in X11 and do:\
46-\
46+
4747`cd /usr/X11R6/lib/X11/fonts/misc/`\
4848`mkfontdir`\
4949`xset fp rehash`\
50-\
50+
5151Now you should be able to start xterm with the vga font by:\
52-\
52+
5353`xterm -font vga -r`\
54-\
54+
5555It is useful to define this as a customized command in X11 (Menu Applications -\> Customize...)\
56-\
56+
5757\# set the terminal type to linux\
58-\
58+
5959`export TERM=linux`\
60-\
60+
6161or start xterm with\
62-\
62+
6363`xterm -font vga -r -tn linux`\
64-\
64+
6565Without this, you may get funny characters at the position of box borders and other, similar places.\
6666You 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>.\
6767For more on fonts, terminals, 8bit characters, ESC codes read [[Terminal &amp; Fonts]].\
68-\
68+
6969Starting the IDE:\
7070\# start the ide in an xterm\
71-\
71+
7272`cd your_path/fpc/ide`\
7373`./fp`\
74-\
74+
7575In order to get Alt-x you have to press ESC and x.\
76-\
76+
7777For easier use you may install freepascal and the ide:\
78-\
78+
7979`cd your_path/fpc`\
8080`sudo make install`\
8181`sudo make -C fv install`\
8282`sudo make -C ide install`
8383
8484---
8585*From the Free Pascal wiki, page "How to get the fpc ide running under Mac OS X", as it stood on 2020-02-06 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
8686Category: FPC
8787Category: Historical
8888Category: IDE
8989Category: macOS

Back to history