BONGO (Windows)

Franco Zavatti

franco.zavatti@zafzaf.it


An Introduction to Bongo

BONGO for Windows (XP, 7) or BongoWin   

On January 16, 2011 Bongo has been compiled, for the first time, under Windows using the *installer* version of gfortran at gcc.gnu.org/wiki/GFortranBinariesWindows.
In compilation and linking, the batch file lbongo.bat (gfortran -w -fno-backslash -ff2c bongops.f bgolibps.f plotps.f smooft.f recipes1.f -o bongo.exe) has been used on a HP TC4400 32-bits tablet-pc, with XP, and then bongo.exe has been successfully tested on a 64-bit pc with Windows 7 and without the Fortran compiler.

On August 2013, Bongo-Win has been compiled on the same computer HP TC4400 with Windows 7 Pro installed. No problem has been devised.

Bongo for Windows uses the fortran files of the Linux version with only 2 or 3 minor changes, mainly due to the lack of the Linux environment variable BGODIR (i.e. the directory where Bongo is located). In the Windows version, Bongo is in c:\bongo or e:\bongo (i.e. a directory within a USB pen drive).

BongoWin cames in a zip file (bongo145-win.zip) which contains all fortran listings, the executable bongo.exe, the batch file lbongo.bat, used to compile and generate the .exe file, directories of examples (esempi), help (bgohlp) and macro-files (bmr=bongo macro routines). It contains also the files cmds.bgo, modivga.plt and bconfig.plt that must be copied in c:\. whatever the bongo directory may be (also if it is in a usb drive).

The .zip file can be downloaded to c:\ or to a pen drive or external disk and unzipped; that creates the directory *bongo*. After the three files above mentioned have been copied in c:\, the Command window (also known as "Dos window", "Prompt window" or "Black window") must be opened (e.g. clicking on WINDOWS-->System32-->cmd.exe). Now the directories bongo or bongo\esempi can become the working spaces (e.g. cd c:\bongo or cd c:\bongo\esempi). Of course you can set a environment variable (say bongo) which points to the bongo.exe file in the "bongoh" (bongo home) directory so that any directory can be used as a working place.
Type "bongo" (without quotes) and, as usual, you can see the prompt ">" indicating that bongo is waiting for a command.

Please remember that, while Linux distributions came ab origine with a PostScript viewer included, under Windows you must install Ghostscript and some viewer connected to it (GSview for example, both free software for non-commercial use).
After the installation, you can look for the path of GSview and edit the file gsbgo.bat, so that you can have a shortcut to display the plot.


Page Written: January 16,2011             Last Updated: