Building nuBASIC

The source code of nuBASIC has been crafted in C++11, ensuring compatibility across various operating systems such as Windows, Linux, and MacOS. To compile nuBASIC, you have multiple options at your disposal.

For Windows users, you can effortlessly build it a Visual Studio application. The necessary project files are readily available, enabling a straightforward compilation process.

Alternatively, for those who prefer using GCC (version 4.8 or above), both cmake scripts and Visual Studio project files have been thoughtfully provided. This allows for a seamless build process regardless of your preferred development environment.

In summary, the flexibility offered by nuBASIC empowers developers to compile and build the language effortlessly on different operating systems. Whether you choose Visual Studio, GCC, or MinGW, the necessary resources are available to facilitate a smooth and hassle-free compilation process.

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:

cmake .. -DWITH_X11=OFF -DWITH_IDE=OFF

Getting the latest released code

To access the most recent version of the software, you can easily obtain it from GitHub. The source code of the project is meticulously managed through the git version control system. To acquire your personal copy of the project sources, simply execute the following command:

git clone https://github.com/eantcal/nubasic.git

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

In order to build nubasic, it is necessary to install the GNU GCC Compiler and Development Environment. If you are using a Debian/Ubuntu distribution, you can follow these steps in the Terminal as a root user:

sudo apt-get install build-essential

By following these instructions, you will successfully set up the GNU GCC Compiler and Development Environment, enabling you to proceed with the nubasic build process.
Unless you configure nuBASIC to generate the "tiny" version by running the command "./configure --enable-tinyver," you will need to install the following additional packages: libx11-dev, sdl2-dev, xmessage, and xterm. These packages are essential to ensure the proper functionality of nuBASIC.

To install required libraries and external programs script for development libs and required tools

Open the Terminal and execute the following command using apt-get:

sudo apt-get -y install libx11-dev libsdl2-dev xterm xmessage

See also

Ubuntu:

Others:

Build and run nuBASIC on iOS devices

If you want to run text version of nuBASIC on iOS devices you can use iSH (https://ish.app)

apk add g++

apk add make

apk add cmake

apk add git 

git clone https://github.com/eantcal/nubasic.git

cd nubasic

mkdir build

cd build

cmake .. && make

./nubasic