diff --git a/Developing-Homebrews-and-test-programs.md b/Developing-Homebrews-and-test-programs.md new file mode 100644 index 0000000..22f6da0 --- /dev/null +++ b/Developing-Homebrews-and-test-programs.md @@ -0,0 +1,3 @@ +To develop homebrews and test programs for CxBx-Reloaded you should use the opensource nxdk. + +You can find a full installation guide here: https://github.com/xqemu/nxdk/wiki/Installing-the-nxdk \ No newline at end of file diff --git a/Installing-the-nxdk.md b/Installing-the-nxdk.md deleted file mode 100644 index 490bee6..0000000 --- a/Installing-the-nxdk.md +++ /dev/null @@ -1,55 +0,0 @@ -This guide will help you to install the opensource nxdk, so you can write homebrews and test programs for CxBx-Reloaded. - -## Installing the nxdk (Windows 10) -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 save the file and quit (ctrl+x and then press the 'y' key to save). Now it is time to 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` - -If the alias does not work, you may need to create a symlink: - -`which lld-link-6.0` - -`ln -s /lld-link` - -For example, if lld-link-6.0 is in /usr/bin: - -`ln -s /usr/bin/lld-link-6.0 /usr/bin/lld-link` - -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` - - -Good luck! \ No newline at end of file