Readme for Aubit 4gl run-time libraries package for MS Windows


What is it for

This package is needed to provide run-time support libraries to programs compiled using Aubit 4GL compiler on Windows/CygWin platform, without the need to install full CygWin and GTK+ on every Windows computer that need to execute, but not compile, Aubit 4GL programs.

This package will not let you compile programs, only run already complied ones.

What is in this package

On top level:

in "apps":

in "runtimelib":

How to use this run-time package

  1. un-zip the archive in suitable place.
  2. set PATH to point to "runtimelib" directory under place you choose in step 1). For example, if you un-ziped the archive in "c:\aubittest", then PATH need to be set to include "c:\aubittest\runtimelib

    --OR--

    copy all files in "runtimelib" folder to some location on your Windows computer that is already in the PATH - like c:\Windows, or C:\WINNT.
  3. Add variable "A4GL_UI" to your global environment, and set it to "gui". Depending on your versions of Windows operating system, you can set global environment in different ways. Consult your Windows documentation. In general, from DOS prompt, you would execute the following line: 
    "set A4GL_UI=gui". 
    You can add the same line to your autoexec.bat, if you have one. On Windows NT based systems, you will need to set this via systems options.
  4. Step into "apps" folder and double-click on "hello.exe". You should first see console window, and then GUI window of "Hello" program.
  5. To demonstrate how to run GUI programs without console window appearing, there are several shortcuts on top level of this archive, one for each demo program in "apps" directory. They all use utility program "run.exe", also provided. Since Microsoft program shortcuts do not support relative paths, before you can use them, you will need to edit them to reflect your files location chosen in step 1)

Q & A

Q: Why do I need to use "run.exe" to get rid of console window?

A: We can do this by adding "-mwindows" or "-Wl,--subsystem,windows" to Aubit compiler compile line when compiling programs, but we do not want this at this point in development, since output from console is very useful for debugging, and since we want to keep the ability to run programs in both GUI and console modes (A4GL_UI=gui, A4GL_UI=cui)

Q: How do I compile 4GL programs using this package?

A: You don't. This is run-time package. To compile 4GL programs using Aubit 4GL compiler fro Windows, download Aubit 4gl compiler binary package for Windows/CygWin, or compile it yourself from source code. You will of course need full installation of Cygwin, plus additional  libraries.

Q: Do I need to provide this package with every program I distribute for Windows platform?

A: Yes, every computer that will run programs compiled using Aubit 4gl  compiler, that are compiled on Windows/CygWin platform need it. To be more precise, they need files in "runtimelib" folder only. Since Aubit 4GL, CygWin and GTK+ are all distributed under GPL/LGPL licenses, you can freely distribute them with your applications.

For Aubit 4gl development team,
Andrej Falout