More informations in the Readme !

This commit is contained in:
ocoursiere
2003-10-09 20:08:04 +00:00
parent 7385d3f270
commit 31e1ddcba7
3 changed files with 36 additions and 10 deletions

View File

@@ -18,20 +18,46 @@
# License along with this library; if not, write to the Free
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Requirements
REQUIREMENTS
To use BePascal, you need :
- the free pascal compiler (fpc). Available at http://www.freepascal.org/down-beos.html.
- jam. Available at http://www.freepascal.org/down-beos.html
- jam. Available at http://bebits.com/app/2981
and this package !
Installation
INSTALLATION
Jam, fpc and ppc386 should be set in your /boot/home/config/bin.
Then you will have to edit the .fpc.cfg file in /boot/home to add a path to bepascal files :
-Fu<path where you unzip bepascal_all.zip>source/bepascal/pas/src/be/*
-Fu<path where you unzip bepascal_all.zip>source/bepascal/pas/src/be/*
You can also add the -S2 option in your .fpc.cfg to be more "delphi friendly" and to avoid to give it at each command.
When all is ready, you can make "jam" at the command line at the root of BePascal source tree.
Then, you can install C/C++ library in /boot/home/config/lib using "jam install"
OTHER OPTIONS
You can make debug version of C/C++ libraries using ;
jam -sDEBUGGER=TRUE
HOW TO DEBUG ?
Debugging is a difficult task with fpc as there is not yet a dedicated debugger under BeOS. With BePascal, you can use bdb to help debugging pascal programs. But it is far from perfect.
First, you'll have to compile the pascal program to be debugged using -g option, and C/C++ libraries using jam -sDEBUGGER=TRUE.
then, you can debug using
bdb <your program>
bdb will go to the first line of the main function, but pascal code will be only in assembler. But, C/C++ sources are available, and you can set break points there.