Has anyone tried building CLK under FreeBSD?
It uses scons as a build system, so the build command is just
However, the build fails here:
the build instructions claims it should build on BSD, but I'm unsure on how to correctly fix that missing 'off_t' definition (it's not missing in FreeBSD, it is defined several places).
It uses scons as a build system, so the build command is just
scons
in the OSBindings/SDL directory.However, the build fails here:
Code:
CC -o /zs/tingo/work/emul/CLK/Storage/Disk/DiskImage/Formats/Utility/ImplicitSectors.o -c --std=c++17 -Wall -O2 -DNDEBUG -D_REENTRANT -D_THREAD_SAFE -I/usr/local/include/SDL2 -I/usr/local/include /zs/tingo/work/emul/CLK/Storage/Disk/DiskImage/Formats/Utility/ImplicitSectors.cpp
/zs/tingo/work/emul/CLK/Storage/Disk/DiskImage/Formats/Utility/ImplicitSectors.cpp:24:2: error: unknown type name 'off_t'
off_t byte_size = off_t(128 << size);
^
/zs/tingo/work/emul/CLK/Storage/Disk/DiskImage/Formats/Utility/ImplicitSectors.cpp:24:20: error: use of undeclared identifier 'off_t'
off_t byte_size = off_t(128 << size);
^
/zs/tingo/work/emul/CLK/Storage/Disk/DiskImage/Formats/Utility/ImplicitSectors.cpp:25:2: error: unknown type name 'off_t'
off_t source_pointer = 0;
^
3 errors generated.
scons: *** [/zs/tingo/work/emul/CLK/Storage/Disk/DiskImage/Formats/Utility/ImplicitSectors.o] Error 1
scons: building terminated because of errors.