L1VM - Windows Cygwin
L1VM - Windows Cygwin
The english part follows this below!
Ich compilierte die L1VM für die Cygwin Umgebung in Windows. Die VM Module wurden auch gebaut. Der JIT-compiler funktioniert noch nicht! Hier ist ein Screenshot von der “sdl-4” Demo, der L1VM in Windows mit Cygwin (der Xfce Windowmanager wird verwendet):
Wer kein Windows 10 WSL hat kann mit Cygwin die L1VM installieren und zum Laufen bekommen.
Den Cygwin Installer findet ihr hier: Cygwin Installer
Es sind die folgenden Cygwin Pakete zu installieren:
clang automake make cmake mpfr SDL2 SDL2_image SDL2_ttf
Wenn ihr die SDL Grafik verwenden wollt, dann braucht ihr noch einen Windowmanager eurer Wahl!
Jetzt muss noch folgendes per hand installiert werden: Die Pakete sind im “install-libs” Ordner im Downloadarchiv unten:
mpir SDL2_gfx fann library
Danach müssen im /home Verzeichnis zwei Ordner angelegt werden: “bin” und “l1vm”. Füge folgende Zeilen in deine ~/.bashrc Datei am Ende ein:
PATH="$PATH:$HOME/.local/bin:$HOME/bin" export PATH LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/bin:/usr/local/lib:/usr/lib" export LD_LIBRARY_PATH
Jetzt kann das Installationsscript gestartet werden:
$ ./install-zerobuild-cygwin.sh
Das L1VM archiv ist hier: L1VM Windows Cygwin
Wenn es Fragen gibt, dann schreibe mir! Hab viel Spaß!
I compiled the L1VM for the Cygwin Windows environment. The VM modules are built too! The JIT-compiler doesn’t work yet! There is a screen shot running the “sdl-4” demo on Windows Cygwin, with the Xfce window manager.
If you can’t run the Windows 10 WSL, because you have an older version of Windows, then
you can use the Cygwin environment here: Cygwin Installer
You have to install the following packages:
clang automake make cmake mpfr SDL2 SDL2_image SDL2_ttf
For the graphics part you have to install the following by hand: I included the following libaries into the “install-libs” folder in the archive below:
mpir SDL2_gfx fann library
After that you have to create two new folders in your /home diectory: “bin” and “l1vm”. Add the following lines to your ~/.bashrc file end:
PATH="$PATH:$HOME/.local/bin:$HOME/bin" export PATH LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/bin:/usr/local/lib:/usr/lib" export LD_LIBRARY_PATH
Now you should be ready to run the build script in the Cygwin shell:
$ ./install-zerobuild-cygwin.sh
The Windows Cygwin archive is here: L1VM Windows Cygwin
If you have any question, then please write! Have some fun!