Zany80 The emulation-centric IDE © Noam Preil 2017 - 2020.

Building for Linux

This guide assumes at least a basic level of proficiency. If you encounter any issues, or have suggestions on how to improve this, leave a message on the mailing list or jump into #zany80 on irc.freenode.net.

Building Zany80 for Linux is extremely simple. The first thing to do is, of course, to download the source code. There are multiple places you can do this, but the easiest way by far is to use git.

These examples use /home/user/Builds/Zany80 for the build folder.

user@hostname:~/Builds$ git clone https://git.sr.ht/~pixelherodev/Zany80
Cloning into 'Zany80'...
remote: Enumerating objects: 167, done.
remote: Counting objects: 100% (167/167), done.
remote: Compressing objects: 100% (105/105), done.
remote: Total 2194 (delta 74), reused 142 (delta 52), pack-reused 2027
Receiving objects: 100% (2194/2194), 12.98 MiB | 3.22 MiB/s, done.
Resolving deltas: 100% (1239/1239), done.
user@hostname:~/Builds$ cd Zany80
user@hostname:~/Builds/Zany80$

Once you have the code, if you just want to build it so that you can use it, you merely need to run `make`. It's often desirable to utilize multiple cores; `make -j$(nproc)` will use every core.

user@hostname:~/Builds/Zany80$ make -j5
CXX src/XML.cpp
CC src/editor.c
CC src/graphics.c
CXX src/graphics_legacy.cpp
CC src/license.c
CC src/main.c
CC src/ring_buffer.c
CC src/scas.c
CC src/serial.c
CC src/z80.c
CC src/z80_tab.c
CC src/zexall.c
CXX lib/TextEditor/TextEditor.cpp
CXX lib/cimgui/cimgui.cpp
CXX lib/cimgui/imgui.cpp

There'll be a bit more of this, and then eventually...

CC lib/z80e/ti/hardware/status.c
CC lib/z80e/ti/hardware/t6a04.c
CC lib/z80e/ti/hardware/timers.c
CC lib/z80e/ti/memory.c
LD build/Zany80

That's it! Zany80 is now built! You can run it directly, or via make run. Running make install as root (via sudo or doas) will install it globally; you can override the destination by setting DESTDIR.

user@hostname:~/Builds/Zany80$ doas make install DESTDIR=/usr/local
doas (user@hostname) password: mkdir -p /usr/local/usr/bin/ /usr/local/usr/share/pixmaps /usr/local/usr/share/applications/ install -m755 ./build/Zany80 /usr/local/usr/bin/ install -m644 ./misc/zany80.desktop /usr/local/usr/share/applications/ install -m644 ./misc/zany80.png /usr/local/usr/share/pixmaps/

This installs the application shortcut and icon, so it should show up in your application launcher of choice.