From c76132fc0d6dc5ee551015faf785fe521108e9ff Mon Sep 17 00:00:00 2001 From: Luca D'Amico Date: Tue, 12 Dec 2017 00:15:23 +0100 Subject: [PATCH] Updated Installing the nxdk (markdown) --- Installing-the-nxdk.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Installing-the-nxdk.md b/Installing-the-nxdk.md index 63427e3..b6ee7cf 100644 --- a/Installing-the-nxdk.md +++ b/Installing-the-nxdk.md @@ -4,22 +4,37 @@ This guide will help you to install the opensource nxdk, so you can write homebr To install then nxdk on Windows, you will need the Windows Subsystem for Linux. If you haven't installed it yet, please follow this guide prior to start: https://docs.microsoft.com/it-it/windows/wsl/install-win10 Open a Bash shell and run the following command: + `sudo apt-get install build-essential flex bison clang git` + Now, you will have to add the llvm repository to your sources.list. So, run this command: + `sudo nano /etc/apt/sources.list` + and paste this string at the end of the list: + `deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial main` + then refresh, with: + `sudo apt-get update && sudo apt-get upgrade` + we can now install llvm: + `sudo apt-get install clang-4.0 lldb-4.0 llvm-4.0 llvm-4.0-dev` + you might need to create an alias for lld-link: + `alias lld-link=lld-link-6.0` + Finally we are ready to download the nxdk! Run these commands: + `git clone https://github.com/xqemu/nxdk.git` `cd nxdk` `git submodule init && git submodule update --recursive` + Done! You might want to compile a test program to check if everything is working correctly: + `cd samples/0ldskoo1` `make`