BuildAnubisFromSourcesWindow710

Version 20 (David RENÉ, 08/18/2022 11:05 AM) → Version 21/22 (David RENÉ, 08/19/2022 12:58 AM)

h1. Build Anubis From Sources on Window 7/10 BuildAnubisFromSourcesWindow710

h2. Requirements

First of all, you'll need to install these requirements:
* MSYS2
* SCons
* make
* gcc
* g++
* libjpeg

Download MSYS2 installer on http://www.msys2.org/:
* 32bits installer for Windows 7/10 32bits
* 64bits installer for Windows 7/10 64bits

Install MSYS2 with the downloaded installer.

Run the *MSYS2 MinGW 32-bits* terminal and run this command to update your installation:
<pre>
pacman -Syuu
</pre>

Close the terminal and repeat the update process until there are no more update available.

Then, to install *scons*, *make*, *gcc*, *g++* and *libjpeg*, launch this command:
<pre>
pacman -S scons
pacman -S --needed base-devel mingw-w64-i686-toolchain mingw-w64-i686-libjpeg-turbo
</pre>

Press *Enter* key when it will ask to install all packages in *base-devel* and *mingw-w64-i686-toolchain* groups.
Then, validate the installation.

h2. Get Anubis sources

Clone repo from http://gitlab.anubis-lang.com/anubis/anubis.git and checkout ANUBIS_1_19 ANUBIS_1_14 branch.

h2. Compile Anubis sources

To compile Anubis compiler, goto folder anubis_dev > compiler and execute the following command:
<pre>
scons
</pre>

To compile Anubis vm, go to folder anubis_dev > vm and execute the following command:
<pre>
scons
</pre>

h2. Install Anubis

h2. Customize Anubis vm compilation (SSL, ...)

Compiling the openssl library in third_dev dir.

Here it will be an example for compiling openssl lib 1.1.1i from msys on windows.
download the latest source from https://www.openssl.org/source/ into the third_dev folder.

<pre>
cd third_dev/
tar xvf openssl-1.1.1i.tar.gz
</pre>

enter into the folder, configure it for msys with "mingw -m32" argument and make it
<pre>
cd openssl-1.1.1i/
./Configure mingw -m32
make
</pre>

From now you can return to the vm folder to rebuild it with the fresh openssl-1.1.1i library with the following command

<pre>
cd ../../anubis_dev/vm/
scons
</pre>

h2. Common errors

<pre>
ValueError : unsupported pickle protocol: 5 => delete .sconsign.dblite file and run scons again
</pre>
Redmine Appliance - Powered by TurnKey Linux