Sign in Join
Wiki copytemporary

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

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

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

OldNewLine
1+> **Warning:** Legacy information - no longer current
2+
3+The mouse does not work in revision version 2.0.4. From version 2.1.2 revision 6226 and possibly up the mouse works.\
4+\
5+Mandatory Requirements:\
6+\#Apple developer tools (read XCode) and X11\
7+\
8+\#The freepascal ide\
9+\
10+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.\
11+\
12+compile fv:\
13+\
14+`cd fv`\
15+`make clean all`\
16+\
17+compile the ide (there is no debugger library, just neglect the resulting warning):\
18+\
19+`cd ide`\
20+`make clean all`\
21+\
22+You may use fink (http://www.finkproject.org/) for the installation of freepascal.\
23+The package fpc installs all you need including the fv units and the ide.\
24+\
25+Optional Requirements:\
26+\
27+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. (;-)\
28+\
29+\# install the vga font for xterm\
30+\
31+download the vga font here: <http://home.earthlink.net/~us5zahns/enl/vga.pcf>\
32+\
33+for more docs on changing the Xterm font look here: <http://www.linux.org/docs/ldp/howto/Bash-Prompt-HOWTO/x606.html>\
34+\
35+copy the font to /usr/X11R6/lib/X11/fonts/misc/\
36+\
37+`mv your_download_dir/vga.pcf /usr/X11R6/lib/X11/fonts/misc/`\
38+\
39+check and set file permissions (you have to be root to do this):\
40+\
41+`cd /usr/X11R6/lib/X11/fonts/misc/`\
42+\
43+`chown root:wheel vga.pcf; chmod 444 vga.pcf`\
44+\
45+start an xterm in X11 and do:\
46+\
47+`cd /usr/X11R6/lib/X11/fonts/misc/`\
48+`mkfontdir`\
49+`xset fp rehash`\
50+\
51+Now you should be able to start xterm with the vga font by:\
52+\
53+`xterm -font vga -r`\
54+\
55+It is useful to define this as a customized command in X11 (Menu Applications -\> Customize...)\
56+\
57+\# set the terminal type to linux\
58+\
59+`export TERM=linux`\
60+\
61+or start xterm with\
62+\
63+`xterm -font vga -r -tn linux`\
64+\
65+Without this, you may get funny characters at the position of box borders and other, similar places.\
66+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>.\
67+For more on fonts, terminals, 8bit characters, ESC codes read [[Terminal &amp; Fonts]].\
68+\
69+Starting the IDE:\
70+\# start the ide in an xterm\
71+\
72+`cd your_path/fpc/ide`\
73+`./fp`\
74+\
75+In order to get Alt-x you have to press ESC and x.\
76+\
77+For easier use you may install freepascal and the ide:\
78+\
79+`cd your_path/fpc`\
80+`sudo make install`\
81+`sudo make -C fv install`\
82+`sudo make -C ide install`
83+
84+---
85+*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).*
86+Category: FPC
87+Category: Historical
88+Category: IDE
89+Category: macOS

Back to history