Note that, despite what the title may imply, this hostkit builds on both Win32 and Linux, using separate makefiles for each platform.
The REBOL 3 Host Kit is property of REBOL Technologies. The REBOL name is a
registered trademark of REBOL Technologies. From info.txt
, part of the Host Kit distribution:
The license for the R3 Host-Kit is free for commercial, educational, and hobby uses with "free" meaning "no charge" for such usage. However, there are a few minor restrictions, so please read this document: http://www.rebol.com/r3/docs/concepts/host-kit.html
MD5 sums:
3fb8a82ae543ce6ff0a2174778ad8fac r3-host-kit-a102-linux.zip 9ed76cd5b43981bacc59e6177d7d1690 r3-host-kit-a102-linux-changes.zip 11205c9c1ce57afa91fdc9c053e3d2c3 r3-host-kit-a102-linux-patches.zip
The Linux build is controlled by a separate makefile: `makefile.linux`. Only core builds (w/o graphics) are supported on Linux at the moment. So to build a core binary, use:
$ make -f makefile.linux core
This will build the `r3core` binary and also copy `libr3.so` to your current working directory. To run the resulting binary use:
$ LD_LIBRARY_PATH=. ./r3core
commit 15cfb83919571a22306efc7412531d0d35489a4d Author: Andreas Bolka Date: Wed Jul 14 03:12:19 2010 +0200 Fix make-host-ext for Linux commit 92a003a11575af4a7cdc1c9a4dfb0b59c928674b Author: Andreas Bolka Date: Wed Jul 14 20:31:48 2010 +0200 Pass TO_* via compiler flag And get rid of reb-to.h. commit 7cf1f1cc5d1390250581ebc131dcbe0208c7cafb Author: Andreas Bolka Date: Fri Jul 30 10:00:34 2010 +0200 Incorporate Linux-x86 A102 core lib The main change in this patch is the conditional definition of HOST_LIB_SUM for the respective targets. As the currently available libr3.so uses an older host lib interface (requiring 32 functions, instead of 30 as the current r3lib.dll), host-lib.h is adapted accordingly. commit f610ed8f73159d826c499336463d897e30d921b2 Author: Andreas Bolka Date: Fri Jul 30 10:24:09 2010 +0200 Add makefile for Linux-x86 Main differences to the Windows-x86 makefile: - Made the struct packing requirements explicit by changing the -fpack-struct flag to -fpack-struct=4 (which effectively disables struct packing on x86, but not on e.g. amd64). This is necessary to avoid certain segfaults. - Removed dev-event.o and dev-clipboard.o from OBJS, as those don't exist yet for Linux. - Added host-readline.o to OBJS along with a compile rule. The readline functionality is needed by the Linux stdio device (dev-stdio.c). - Changed all compile rules for host-specific objects to use the sources from src/posix/ instead of src/win32/. - Adapted CFLAGS and LIBS. - Dropped the .exe suffix from binaries. - Adapted shell commands (cp/rm instead of copy/del).
Andreas Bolka, 2010-07-30, r3