Looked into getting v0.3 running on my machine today.
First, a couple of changes to the makefile:
-I./libs/angelscript/angelscript_jit -> -I./libs/angelscript_jit
1tracker: libs/angelscript_jit/virtual_asm_x86.o -> 1tracker: libs/angelscript_jit/virtual_asm_x64.o
virtual_asm_x86.o: libs/angelscript_jit/virtual_asm_x86.cpp -> virtual_asm_x64.o: libs/angelscript_jit/virtual_asm_x64.cpp
I'm also building with clang instead of gcc. Anyway, building fails with a number of errors.
./gui.h:447:7: error: no matching function for call to 'draw_menu_item'
x = draw_menu_item(x, (editStyle != EDIT_STYLE_CHOPPED)?"~F1~-Chop":"~F1~+Chop");
^~~~~~~~~~~~~~
./gui.h:409:5: note: candidate function not viable: no known conversion from 'const char [10]' to 'char *' for 2nd argument
int draw_menu_item(int x, char *str)
^
./gui.h:449:7: error: no matching function for call to 'draw_menu_item'
x = draw_menu_item(x, !quietMode ? "~F2~-Quiet" : "~F2~+Quiet");
^~~~~~~~~~~~~~
./gui.h:409:5: note: candidate function not viable: no known conversion from 'const char [11]' to 'char *' for 2nd argument
int draw_menu_item(int x, char *str)
^
Easy fix, change gui.h:409 to
int draw_menu_item(int x, const char *str)
./select_engine.h:34:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (dp = opendir(engineDirectory))
~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
./select_engine.h:34:9: note: place parentheses around the assignment to silence this warning
if (dp = opendir(engineDirectory))
^
( )
./select_engine.h:34:9: note: use '==' to turn this assignment into an equality comparison
if (dp = opendir(engineDirectory))
^
==
./select_engine.h:120:11: error: use of undeclared identifier '_fileno'; did you mean 'fileno'?
fstat(_fileno(file), &fileStat);
^~~~~~~
fileno
Ok, change select_engine.h:34 to
if ((dp = opendir(engineDirectory)))
and :120 to
fstat(fileno(file), &fileStat);
Not sure about the latter one. Anyway, now 1tracker builds (with a number of warnings, mostly from angelscript, nothing too serious as far as I can tell.
So I proceed to fire up 1tracker and start a new SquatE song. On entering the first note, this happens:
Z80Ass error: label already defined!
281: .loop
[1] 6479 segmentation fault ./1tracker
Whoops! Same thing happens on the old Squat, but not on wtbeep, for example.