Skip to content

Commit 38d10da

Browse files
committed
Merge branch 'master' of github.com:Joe7M/SmallBASIC
2 parents 112af09 + dc608ac commit 38d10da

File tree

1 file changed

+90
-19
lines changed

1 file changed

+90
-19
lines changed

README.md

+90-19
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,82 @@
11
SmallBASIC is a fast and easy to learn BASIC language interpreter ideal for everyday calculations, scripts and prototypes. SmallBASIC includes trigonometric, matrices and algebra functions, a built in IDE, a powerful string library, system, sound, and graphic commands along with structured programming syntax.
22

3-
### Initialise dependencies
3+
## Building the SDL version
4+
5+
### LINUX
6+
7+
#### Install packages
8+
9+
Ubuntu
410

511
```
6-
$ git submodule update --init
12+
sudo apt-get install git autotools-dev automake gcc g++ libsdl2-dev libfreetype6-dev libfontconfig1-dev xxd
713
```
814

9-
## Building the SDL version
15+
Manjaro (Arch)
16+
17+
```
18+
sudo pacman -S gcc make autoconf automake sdl2 freetype2 fontconfig pkgconf vim
19+
```
20+
21+
#### Initial setup
1022

11-
Initial setup on linux
1223
```
13-
$ sudo apt-get install git autotools-dev automake gcc g++ libsdl2-dev libfreetype6-dev libfontconfig1-dev xxd
1424
$ git clone https://github.com/smallbasic/SmallBASIC.git
1525
$ cd SmallBASIC
1626
$ git submodule update --init
1727
$ sh autogen.sh
1828
```
19-
Build in linux
29+
30+
#### Build
31+
2032
```
2133
$ ./configure --enable-sdl
2234
$ make
2335
```
24-
Build the debian package
36+
37+
#### Install (optional)
38+
39+
```
40+
$ sudo make install
41+
```
42+
43+
This will install `sbasicg` in `/usr/local/bin`
44+
45+
#### Run
46+
47+
```
48+
$ cd ./src/platform/sdl/
49+
$ sbasicg
50+
```
51+
52+
#### Build the Debian package (optional)
53+
2554
```
2655
$ sudo apt-get install dpkg-dev build-essential debhelper
2756
$ make deb
2857
```
29-
On windows, install tools:
30-
https://www.gtk.org/download/windows.php
58+
59+
### WINDOWS
60+
61+
Install tools: `https://www.gtk.org/download/windows.php`
62+
3163
```
3264
$ ./configure --host=i686-w64-mingw32 --enable-sdl
3365
$ make
3466
```
35-
or for cross-compiling under linux:
67+
68+
### Cross-compiling for Windows under Linux
69+
3670
```
3771
$ sudo apt-get install mingw-w64
3872
$ ./configure --host=i686-w64-mingw32 --prefix=/devsw/mingw --enable-sdl
3973
```
74+
4075
Note: requires building SDL2 and freetype-2 into the prefix folder
4176

42-
## Building on MacOSX
77+
### MacOSX
78+
79+
#### Install packages
4380

4481
Open the terminal window, then type the following commands at the prompt:
4582

@@ -53,35 +90,70 @@ $ brew install automake
5390
$ brew install autoconf
5491
```
5592

56-
Next download the SmallBASIC source code from git and then build:
93+
#### Initial setup
5794

5895
```
5996
$ git clone https://github.com/smallbasic/SmallBASIC.git
6097
$ cd SmallBASIC
98+
$ git submodule update --init
6199
$ sh autogen.sh
100+
```
101+
102+
#### Build
103+
104+
```
62105
$ ./configure --enable-sdl
63106
$ make
64-
$ cd /src/platform/sdl
65107
```
66108

67-
Then type the following to run the executable:
109+
#### Run
68110

69111
```
112+
$ cd /src/platform/sdl
70113
$ ./sbasicg
71114
```
72115

73116
## Building the non-graphical console version (cygwin or linux)
117+
74118
```
75119
$ ./configure && make
76120
```
121+
77122
Windows 32 bit mingw console:
123+
78124
```
79125
$./configure --host=i686-w64-mingw32 && make
80126
```
127+
81128
Windows 64 bit mingw console:
129+
82130
```
83131
$./configure --host=x86_64-w64-mingw32 && make
84132
```
133+
134+
## Building web-server sbasicw
135+
136+
### Linux
137+
138+
#### Install microhttp library
139+
140+
Ubuntu
141+
```
142+
$ sudo apt install libmicrohttpd-dev
143+
```
144+
145+
Manjaro
146+
```
147+
$ sudo pacman -S libmicrohttpd
148+
```
149+
150+
#### Build
151+
152+
```
153+
$ ./configure --enable-web
154+
$ make
155+
```
156+
85157
## Building the Android port
86158

87159
1. Setup .bashrc
@@ -124,26 +196,25 @@ Useful adb commands for debugging:
124196
adb shell dumpsys cpuinfo
125197
adb shell top -m 10
126198

127-
### Building the FLTK version
199+
## Building the FLTK version
128200

129-
1. Install and build FLTK 1.4
201+
#### Install and build FLTK 1.4
130202

131203
```
132204
$ cd ~/github
133205
$ git clone https://github.com/fltk/fltk.git
134206
$ sudo make install
135-
136207
```
137208

138-
2. Build
209+
#### Build
139210

140211
```
141212
$ cd ~/github/SmallBASIC
142213
$ ./configure --enable-fltk
143214
$ make -s
144215
```
145216

146-
### .indent.pro settings
217+
## .indent.pro settings
147218
```
148219
-brf -nbap -br -brs -cdb -cdw -ce -cli0 -fca -i2 -l110 -lc110 -lp
149220
-nbbo -nbc -ncs -nip -npcs -npsl -nut -ppi0 -sc

0 commit comments

Comments
 (0)