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

From Lazarus wiki
Jump to navigationJump to search
Line 3: Line 3:
 
# compile the fpc ide<br><br>you need: compiler, rtl, (maybe base packages, fcl and extra packages), fvision and ide.<br>after the compilation of fvision, create an alias (symlink) of the directory fvision named fv in the fpc directory.<br><br><tt>ln -s fvision fv</tt><br><br>then 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>
 
# compile the fpc ide<br><br>you need: compiler, rtl, (maybe base packages, fcl and extra packages), fvision and ide.<br>after the compilation of fvision, create an alias (symlink) of the directory fvision named fv in the fpc directory.<br><br><tt>ln -s fvision fv</tt><br><br>then 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>
 
# 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</tt><br><br>It is useful to define this as a customized command in X11 (Menu Applications -> Customize...)<br><br>
 
# 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</tt><br><br>It is useful to define this as a customized command in X11 (Menu Applications -> Customize...)<br><br>
# set the terminal type to linux<br><br><tt>export TERM=linux</tt><br><br>Without this, you may get funny characters at the position of box borders.<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 [[here]].
+
# set the terminal type to linux<br><br><tt>export TERM=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 [[here]].<br><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>Here should be an example image:<br><br>[[Image:ideonmacosx.png|fpd ide on Mac OS X]]<br><br>but I could not upload it :(
 
# 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>Here should be an example image:<br><br>[[Image:ideonmacosx.png|fpd ide on Mac OS X]]<br><br>but I could not upload it :(

Revision as of 12:03, 4 November 2004

Requirements:

  1. Apple developer tools and X11

  2. compile the fpc ide

    you need: compiler, rtl, (maybe base packages, fcl and extra packages), fvision and ide.
    after the compilation of fvision, create an alias (symlink) of the directory fvision named fv in the fpc directory.

    ln -s fvision fv

    then compile the ide (there is no debugger library, just neglect the resulting warning)

    cd ide
    make clean all

  3. install the vga font for xterm

    download the vga font here: http://home.earthlink.net/~us5zahns/enl/vga.pcf

    for more docs on changing the Xterm font look here: http://www.linux.org/docs/ldp/howto/Bash-Prompt-HOWTO/x606.html

    copy the font to /usr/X11R6/lib/X11/fonts/misc/

    mv your_download_dir/vga.pcf /usr/X11R6/lib/X11/fonts/misc/

    check and set file permissions (you have to be root to do this):

    cd /usr/X11R6/lib/X11/fonts/misc/

    chown root:wheel vga.pcf; chmod 444 vga.pcf

    start an xterm in X11 and do:

    cd /usr/X11R6/lib/X11/fonts/misc/
    mkfontdir
    xset fp rehash

    Now you should be able to start xterm with the vga font by:

    xterm -font vga

    It is useful to define this as a customized command in X11 (Menu Applications -> Customize...)

  4. set the terminal type to linux

    export TERM=linux

    Without this, you may get funny characters at the position of box borders and other, similar places.
    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.
    For more on fonts, terminals, 8bit characters, ESC codes read here.

  5. start the ide in an xterm

    cd your_path/fpc/ide
    ./fp

    In order to get Alt-x you have to press ESC and x.

    Here should be an example image:

    fpd ide on Mac OS X

    but I could not upload it :(