The instructions here are depreciated. See the Design and Implementation of Retro 10 on http://retroforth.org for current instructions.
While Ngaro (Retro's VM) has been well represented on Linux, MacOS, and other Unix-like systems, support for Windows has lagged behind. Thanks to recent work, it is now possible to build a functional Ngaro on Windows. The exact method and tools used are given below. To actually use it you'll also need a copy of
font.bmp and
forth.image.
Prerequisites:
- Dev C++
- http://prdownloads.sourceforge.net/dev-cpp/devcpp-4.9.9.2_setup.exe
- libSDL Runtime
- http://libsdl.org/release/SDL-1.2.13-win32.zip
- libSDL Development Libraries (for mingw32)
- http://libsdl.org/release/SDL-devel-1.2.13-mingw32.tar.gz
- Retro Development Kit (rdev)
- Get the latest one from http://retroforth.org
Process:
- Install Dev C++
- Unzip the SDL runtime and copy SDL.dll to C:\WINDOWS
(This will allow the library to be used system wide) - Unzip the SDL development libraries and copy the contents of i386-mingw32msvc\include\SDL to C:\Dev-C++\Include
- Copy the libraries from the i386-mingw32msvc\lib to C:\Dev-C++\Lib
- Create a new empty Dev C++ project and add the following files from rdev\ngaro to it:
- endian.c
- functions.h
- loader.c
- ngaro_windows.c
- sdl_devices.c
- vm.c
- vm.h
- Go to Project -> Options and add the following to the Compiler commands text box:
-DUSE_SDL - Go to Project -> Options and add the following to the Linker commands:
-lmingw32 -lSDLmain -lSDL -mwindows - Compile everything