]> Nishi Git Mirror - gwion.git/commitdiff
Install on Windows (#13)
authorargvsc47 <55107887+argvsc47@users.noreply.github.com>
Fri, 13 May 2022 23:13:24 +0000 (00:13 +0100)
committerGitHub <noreply@github.com>
Fri, 13 May 2022 23:13:24 +0000 (01:13 +0200)
* Update list

* Create InstallinOnWindows.mdr

* Update InstallinOnWindows.mdr

* Update book.toml

book.toml
docs/Overview/First_Steps/InstallinOnWindows.mdr [new file with mode: 0644]
docs/Overview/First_Steps/list

index 2d0108bf022575375af9cd2e371b5dd5ff68683b..e1476ca84b3d31da6724dbc3a02eaee7bc0a69ea 100644 (file)
--- a/book.toml
+++ b/book.toml
@@ -1,5 +1,5 @@
 [book]
-authors = ["Jérémie Astor", "Pranav Joglekar", "Amber Zeller"]
+authors = ["Jérémie Astor", "Pranav Joglekar", "Amber Zeller", "argvsc47 Noodoode#5890"]
 title = "Gwion"
 description = "Tutorial and reference for Gwion"
 language = "en"
diff --git a/docs/Overview/First_Steps/InstallinOnWindows.mdr b/docs/Overview/First_Steps/InstallinOnWindows.mdr
new file mode 100644 (file)
index 0000000..90f400a
--- /dev/null
@@ -0,0 +1,45 @@
+# Gwion On Windows
+## Get the sources
+The source is accessible on github.
+
+Provided you have git installed, you can get it with:
+```
+git clone --recursive https://github.com/Gwion/Gwion
+```
+
+then change to the source directory
+```
+cd Gwion
+```
+
+## Setting up
+Make sure that you have the following programs installed, and that they are in your path :
+  - [touch](https://sourceforge.net/projects/touchforwindows/)
+  - a C compiler, in this example we will use gcc
+First, we need to define some enviromment variables
+```
+set CC=gcc
+set BUILD_ON_WINDOWS=1
+```
+
+Next we need to create some directories
+```
+mkdir .d
+cd util
+mkdir .d
+cd ../ast
+mkdir .d
+cd ..
+```
+
+now, look for something like `ast/libprettyerr/libprettyerr.a:`, and replace the relevant command with:
+```
+@+set CFLAGS_=${CFLAGS} && set CFLAGS=-I<your current dir>/util/libtermcolor/include && ${MAKE} -s -C ast/libprettyerr static && set CFLAGS=CFLAGS_
+```
+where <your current dir> is the absolute path to the current working directory
+
+and finally run
+```
+make
+```
index 3f7039d8f3f8f150c58ae2d981f624cae783f20d..6f0056b47ec4d129c07d5428c660aa89159317e0 100644 (file)
@@ -1,3 +1,4 @@
 README.md
 InstallingGwion.md
 Configure.md
+InstallingOnWindows.md