1
1
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.
2
2
3
- ### Initialise dependencies
3
+ ## Building the SDL version
4
+
5
+ ### LINUX
6
+
7
+ #### Install packages
8
+
9
+ Ubuntu
4
10
5
11
```
6
- $ git submodule update --init
12
+ sudo apt-get install git autotools-dev automake gcc g++ libsdl2-dev libfreetype6-dev libfontconfig1-dev xxd
7
13
```
8
14
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
10
22
11
- Initial setup on linux
12
23
```
13
- $ sudo apt-get install git autotools-dev automake gcc g++ libsdl2-dev libfreetype6-dev libfontconfig1-dev xxd
14
24
$ git clone https://github.com/smallbasic/SmallBASIC.git
15
25
$ cd SmallBASIC
16
26
$ git submodule update --init
17
27
$ sh autogen.sh
18
28
```
19
- Build in linux
29
+
30
+ #### Build
31
+
20
32
```
21
33
$ ./configure --enable-sdl
22
34
$ make
23
35
```
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
+
25
54
```
26
55
$ sudo apt-get install dpkg-dev build-essential debhelper
27
56
$ make deb
28
57
```
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
+
31
63
```
32
64
$ ./configure --host=i686-w64-mingw32 --enable-sdl
33
65
$ make
34
66
```
35
- or for cross-compiling under linux:
67
+
68
+ ### Cross-compiling for Windows under Linux
69
+
36
70
```
37
71
$ sudo apt-get install mingw-w64
38
72
$ ./configure --host=i686-w64-mingw32 --prefix=/devsw/mingw --enable-sdl
39
73
```
74
+
40
75
Note: requires building SDL2 and freetype-2 into the prefix folder
41
76
42
- ## Building on MacOSX
77
+ ### MacOSX
78
+
79
+ #### Install packages
43
80
44
81
Open the terminal window, then type the following commands at the prompt:
45
82
@@ -53,35 +90,70 @@ $ brew install automake
53
90
$ brew install autoconf
54
91
```
55
92
56
- Next download the SmallBASIC source code from git and then build:
93
+ #### Initial setup
57
94
58
95
```
59
96
$ git clone https://github.com/smallbasic/SmallBASIC.git
60
97
$ cd SmallBASIC
98
+ $ git submodule update --init
61
99
$ sh autogen.sh
100
+ ```
101
+
102
+ #### Build
103
+
104
+ ```
62
105
$ ./configure --enable-sdl
63
106
$ make
64
- $ cd /src/platform/sdl
65
107
```
66
108
67
- Then type the following to run the executable:
109
+ #### Run
68
110
69
111
```
112
+ $ cd /src/platform/sdl
70
113
$ ./sbasicg
71
114
```
72
115
73
116
## Building the non-graphical console version (cygwin or linux)
117
+
74
118
```
75
119
$ ./configure && make
76
120
```
121
+
77
122
Windows 32 bit mingw console:
123
+
78
124
```
79
125
$./configure --host=i686-w64-mingw32 && make
80
126
```
127
+
81
128
Windows 64 bit mingw console:
129
+
82
130
```
83
131
$./configure --host=x86_64-w64-mingw32 && make
84
132
```
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
+
85
157
## Building the Android port
86
158
87
159
1 . Setup .bashrc
@@ -124,26 +196,25 @@ Useful adb commands for debugging:
124
196
adb shell dumpsys cpuinfo
125
197
adb shell top -m 10
126
198
127
- ### Building the FLTK version
199
+ ## Building the FLTK version
128
200
129
- 1 . Install and build FLTK 1.4
201
+ #### Install and build FLTK 1.4
130
202
131
203
```
132
204
$ cd ~/github
133
205
$ git clone https://github.com/fltk/fltk.git
134
206
$ sudo make install
135
-
136
207
```
137
208
138
- 2 . Build
209
+ #### Build
139
210
140
211
```
141
212
$ cd ~/github/SmallBASIC
142
213
$ ./configure --enable-fltk
143
214
$ make -s
144
215
```
145
216
146
- ### .indent.pro settings
217
+ ## .indent.pro settings
147
218
```
148
219
-brf -nbap -br -brs -cdb -cdw -ce -cli0 -fca -i2 -l110 -lc110 -lp
149
220
-nbbo -nbc -ncs -nip -npcs -npsl -nut -ppi0 -sc
0 commit comments