'=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
'UbxBasic Readme Initial release: May 2016.
'=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
You will need the following libraries for compiling UbxBasic.
g++
libpcre3-dev
libgtk2.0-dev OR libgtk-3-dev (you can install and test both)
astyle

Also to view the help file, UbxBasic.chm, you will need KchmViewer

I tested on a PC running Ubuntu MATE (64bit) .

From a terminal I  used
sudo apt-get install libname

To compile UbxBasic.
From a terminal navigate to the UbxBasic/source folder and type:
./mak.sh
This should create the UbxBasic and InsertOptArg binaries and copy them to the ~/UbxBasic Folder.
The InsertOptArg Utility, written by Mike Henning and tweaked by me, adds the ability to have
optional arguments in "c" sources as they are in c++.
'==============================================================================
If you use geany (recommended) I've included a config file for syntax and translation.
Copy the filetypes.freebasic file to your ~/.config/geany/filedefs folder.
Use the build command to translate and the normal Execute to run
'==============================================================================
All compiling is done with script files which are called with the UbxBasic 
$ONEXIT directive.
'------------------------------------------------------------------------------
Scripts for compiling and their usage
'==============================================================================
build_app.sh 				compile a "  c"   translated application
    $ONEXIT ~/UbxBasic/build_app.sh $FILE$ [2 | 3] gtk2 or gtk3 defaults to gtk2
'------------------------------------------------------------------------------
build_app++.sh 				compile a "c++" translated application
    $ONEXIT ~/UbxBasic/build_app++.sh $FILE$ [2 | 3] gtk2 or gtk3 defaults to gtk2
'------------------------------------------------------------------------------
build_shared.sh             compile a "  c"   translated shared library (.so")
    $ONEXIT ~/UbxBasic/build_shared.sh $FILE$ [2 | 3] gtk2 or gtk3 defaults to gtk2
'------------------------------------------------------------------------------
build_shared++.sh           compile a "c++"   translated shared library (.so")
    $ONEXIT ~/UbxBasic/build_shared++.sh $FILE$ [2 | 3] gtk2 or gtk3 defaults to gtk2
'==============================================================================

See the  demo in the SharedLib folder for testing shared libraries.


James





