commit 334618e
zzo38
·
2024-08-05 01:25:12 +0000 UTC
parent c0e5610
Add a document with information about compiling.
1 files changed,
+26,
-0
+26,
-0
1@@ -0,0 +1,26 @@
2+This document contains instructions for compiling the programs in this
3+repository, in case they are helpful for anyone.
4+
5+Note that these programs are designed for Linux. There is no guarantee
6+that they will work on Windows; if you wish to use them on Windows, you
7+may consider using WSL (although I have not tried this, because I do not
8+have Microsoft Windows).
9+
10+
11+=== Assembler ===
12+
13+The uxnasm.c file is the assembler and does not have any dependencies
14+other than the C standard library; you can just compile it normally,
15+using gcc or clang (although I have not tried clang).
16+
17+
18+=== Emulator ===
19+
20+The main.c file is the emulator itself, and requires SDL1. The top of
21+the main.c file contains a shell command to compile it which works on
22+my computer, although your computer might be set up differently.
23+
24+One person, who was using Windows 11, WSL2, Ubuntu, compiled it using the
25+below command, with the "libsdl1.2-compat-dev" package:
26+ gcc main.c -o uxn38 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -lSDL -L/usr/local/lib
27+