Project

General

Profile

BuildAnubisFromSourcesWindow710 » History » Version 19

David RENÉ, 08/18/2022 06:22 AM

1 1 Jérémy Larrieu
h1. BuildAnubisFromSourcesWindow710
2
3
h2. Requirements
4
5
First of all, you'll need to install these requirements:
6
* MSYS2
7
* SCons
8 11 Jérémy Larrieu
* make
9
* gcc
10
* g++
11
* libjpeg
12 2 Jérémy Larrieu
13 4 Jérémy Larrieu
Download MSYS2 installer on http://www.msys2.org/:
14 2 Jérémy Larrieu
* 32bits installer for Windows 7/10 32bits
15
* 64bits installer for Windows 7/10 64bits
16 6 Jérémy Larrieu
17
Install MSYS2 with the downloaded installer.
18
19 12 Jérémy Larrieu
Run the *MSYS2 MinGW 32-bits* terminal and run this command to update your installation:
20 6 Jérémy Larrieu
<pre>
21
pacman -Syuu
22 9 Jérémy Larrieu
</pre>
23
24
Close the terminal and repeat the update process until there are no more update available.
25 10 Jérémy Larrieu
26 11 Jérémy Larrieu
Then, to install *scons*, *make*, *gcc*, *g++* and *libjpeg*, launch this command:
27 10 Jérémy Larrieu
<pre>
28 11 Jérémy Larrieu
pacman -S --needed base-devel mingw-w64-i686-toolchain mingw-w64-i686-libjpeg-turbo
29 10 Jérémy Larrieu
</pre>
30 7 Jérémy Larrieu
31 11 Jérémy Larrieu
Press *Enter* key when it will ask to install all packages in *base-devel* and *mingw-w64-i686-toolchain* groups.
32
Then, validate the installation.
33 13 Jérémy Larrieu
34
h2. Get Anubis sources
35 14 Jérémy Larrieu
36 16 Jérémy Larrieu
Clone repo from http://gitlab.anubis-lang.com/anubis/anubis.git and checkout ANUBIS_1_14 branch.
37
38 14 Jérémy Larrieu
h2. Compile Anubis sources
39
40 16 Jérémy Larrieu
To compile Anubis compiler, goto folder anubis_dev > compiler and execute the following command:
41
<pre>
42
scons
43
</pre>
44
45
To compile Anubis vm, go to folder anubis_dev > vm and execute the following command:
46
<pre>
47
scons
48
</pre>
49
50 14 Jérémy Larrieu
h2. Install Anubis
51 16 Jérémy Larrieu
52
h2. Customize Anubis vm compilation (SSL, ...)
53 15 Jérémy Larrieu
54 19 David RENÉ
Compiling the openssl library in third_dev dir.
55
56
Here it will be an example for compiling openssl lib 1.1.1i from msys on windows.
57
download the latest source from https://www.openssl.org/source/ into the third_dev folder.   
58
59
<pre>
60
cd third_dev/
61
tar xvf openssl-1.1.1i.tar.gz
62
</pre>
63
64
enter into the folder, configure it for msys with "mingw -m32" argument and make it
65
<pre>
66
cd openssl-1.1.1i/
67
./Configure mingw -m32
68
make 
69
</pre>
70
71
From now you can return to the vm folder to rebuild it with the fresh openssl-1.1.1i library with the following command
72
73
<pre>
74
cd ../../anubis_dev/vm/
75
scons
76
</pre>
77
78
79 15 Jérémy Larrieu
h2. Common errors
80
81
<pre>
82
ValueError : unsupported pickle protocol: 5  => delete .sconsign.dblite file and run scons again
83
</pre>