How to build it?

nuBASIC source has been written in C++11 and compiles under several operating systems including Windows, Linux and MacOS.

To compile nuBASIC you may create a Visual Studio console application or build it by using GCC >= 4.8 (both VS project files and autoconf/automake scripts have been provided) or using MinGW >= 4.8. 

Building nuBASIC by using cmake

Note: in order to build 'tiny' version of nuBASIC you need to replace the cmake command with the following one:


Building nuBASIC by using maiken

To build nuBASIC you can also use maiken which is a C++14 Cross platform YAML based build tool for GCC/CLANG/ICC/MSVC/NVCC (please see also
Maiken uses a specific make-script file. You can download the nuBASIC's maiken script file at link (it will be included in the new versions of nubasic source code).
Once you have installed maiken and you have got the script file, just copy this file within the nuBASIC source code directory and execute the following commands from there:

mkn clean -p nubasic-release
mkn build -p nubasic-release

At the end of build stage you will find the binary executable file nubasic within <source-code-dir>/bin/nubasic-release.

Getting the latest released code

You can download the latest released version from GitHub

The source code is managed using the git version control system. 
To get your own copy of the project sources, use the following command.

git clone

To build nubasic you need g++ compiler and x11 development libs.

To build nubasic you need to install GNU GCC Compiler and Development Environment.
For example, using a Debian/Ubuntu distros open the Terminal and then type the following apt-get command as root user:

sudo apt-get install build-essential

Unless you configure nuBASIC to create the "tiny" version (./configure --enable-tinyver), you have to install following additional packages: libx11-dev, sdl2-dev, xmessage, xterm

Install script for development libs:
sudo apt-get -y install libx11-dev
sudo apt-get install libsdl2-dev
sudo apt-get install xterm
sudo apt-get install xmessage

See also