From 77dc6da61ba2d7467f1f6c7b909a419b237cc645 Mon Sep 17 00:00:00 2001 From: argvsc47 <55107887+argvsc47@users.noreply.github.com> Date: Sat, 14 May 2022 00:13:24 +0100 Subject: [PATCH] Install on Windows (#13) * Update list * Create InstallinOnWindows.mdr * Update InstallinOnWindows.mdr * Update book.toml --- book.toml | 2 +- .../First_Steps/InstallinOnWindows.mdr | 45 +++++++++++++++++++ docs/Overview/First_Steps/list | 1 + 3 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 docs/Overview/First_Steps/InstallinOnWindows.mdr diff --git a/book.toml b/book.toml index 2d0108bf..e1476ca8 100644 --- 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 index 00000000..90f400a3 --- /dev/null +++ b/docs/Overview/First_Steps/InstallinOnWindows.mdr @@ -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/util/libtermcolor/include && ${MAKE} -s -C ast/libprettyerr static && set CFLAGS=CFLAGS_ +``` +where is the absolute path to the current working directory + +and finally run +``` +make +``` diff --git a/docs/Overview/First_Steps/list b/docs/Overview/First_Steps/list index 3f7039d8..6f0056b4 100644 --- a/docs/Overview/First_Steps/list +++ b/docs/Overview/First_Steps/list @@ -1,3 +1,4 @@ README.md InstallingGwion.md Configure.md +InstallingOnWindows.md -- 2.43.0