2019-03-08 02:28:06 +00:00
# QB64
2022-05-02 01:28:46 +00:00
![githubstrip ](https://github.com/FellippeHeitor/qb64/raw/development/internal/source/qb64icon32.png )
2019-03-08 02:28:06 +00:00
2019-04-01 04:35:11 +00:00
QB64 is a modern extended BASIC+OpenGL language that retains QB4.5/QBasic compatibility and compiles native binaries for Windows (XP and up), Linux and macOS.
2022-05-02 01:20:29 +00:00
=======
2020-02-23 03:47:22 +00:00
[![contributions welcome ](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat )](https://github.com/QB64Team/qb64/issues)
2020-01-01 18:36:39 +00:00
2020-02-22 14:29:42 +00:00
# Table of Contents
1. [Installation ](#Installation )
2020-02-23 03:47:22 +00:00
1. [Windows ](#Windows )
2. [macOS ](#macOS )
3. [Linux ](#Linux )
2020-02-21 21:11:34 +00:00
2020-02-22 14:29:42 +00:00
2. [Usage ](#Usage )
3. [Additional Info ](#Additional_Info )
2020-02-21 21:11:34 +00:00
2020-02-23 03:47:22 +00:00
# Installation <a name="Installation"></a>
2022-05-02 01:20:29 +00:00
Download the appropriate package for your operating system. Check the Releases page.
2020-02-21 21:11:34 +00:00
2020-02-23 03:48:43 +00:00
< a name = "Windows" > < / a >
## Windows
2020-02-21 21:11:34 +00:00
2020-02-23 03:02:49 +00:00
Make sure to extract the package contents to a folder with full write permissions (failing to do so may result in IDE or compilation errors).
2020-02-21 21:11:34 +00:00
2020-02-23 03:02:49 +00:00
* It is advisable to to whitelist the QB64 folder in your antivirus/antimalware software *
2020-02-22 14:29:42 +00:00
2020-02-23 03:48:43 +00:00
< a name = "macOS" > < / a >
## macOS
2020-02-23 03:02:49 +00:00
Before using QB64 make sure to install the Xcode command line tools with:
2020-02-21 21:11:34 +00:00
```bash
xcode-select --install
```
2021-11-15 00:58:22 +00:00
Run ```./setup_osx.command``` to compile QB64 for your OS version.
2020-02-22 14:29:42 +00:00
2020-02-23 03:48:43 +00:00
< a name = "Linux" > < / a >
## Linux
2021-11-15 00:58:22 +00:00
Compile QB64 with ```./setup_lnx.sh```.
2020-02-22 14:29:42 +00:00
2020-02-23 03:02:49 +00:00
Dependencies should be automatically installed. Required packages include OpenGL, ALSA and the GNU C++ Compiler.
2020-02-22 14:29:42 +00:00
2020-02-23 03:48:43 +00:00
< a name = "Usage" > < / a >
# Usage
2020-02-23 03:02:49 +00:00
Run the QB64 executable to launch the IDE, which you can use to edit your .BAS files. From there, hit F5 to compile and run your code.
To generate a binary without running it, hit F11.
Additionally, if you do not wish to use the integrated IDE and to only compile your program, you can use the following command-line calls:
```qb64 -c yourfile.bas```
2020-02-22 14:29:42 +00:00
2020-02-23 03:02:49 +00:00
```qb64 -c yourfile.bas -o outputname.exe```
2020-02-22 14:29:42 +00:00
2022-05-02 01:20:29 +00:00
Replacing `-c` with `-x` will compile without opening a separate compiler window.