From 0b2aac8b526ced94e5dd08ef9a5d7d542decf295 Mon Sep 17 00:00:00 2001 From: paul eeepc Date: Wed, 5 Jul 2017 02:49:52 -0500 Subject: [PATCH] Fixing compilation on linux. Needed forward slashes on includes, and -lm for linking math libraries. Getting warning about lua's use of tmpnam, and to use mkstmp instead.. Not sure I care. --- host/Makefile | 2 +- host/source/inlprog.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/host/Makefile b/host/Makefile index 4d7d3cb..6a34b88 100644 --- a/host/Makefile +++ b/host/Makefile @@ -17,7 +17,7 @@ all: shared #unix build doesn't need winlib directory as libusb should be installed on OS. #sudo apt-get install libusb-1.0-0-dev unix: shared - $(CC) $(INCLUDE) $(SOURCES) -o $(TARGET) $(CFLAGS) $(LIBUSB) + $(CC) $(INCLUDE) $(SOURCES) -o $(TARGET) $(CFLAGS) -lm $(LIBUSB) # "make debug" will build program with debug print messages # -DDEBUG show debug logs diff --git a/host/source/inlprog.c b/host/source/inlprog.c index 2803816..c84f263 100644 --- a/host/source/inlprog.c +++ b/host/source/inlprog.c @@ -24,9 +24,9 @@ #include "shared_enums.h" //lua libraries -#include "lua\lua.h" -#include "lua\lauxlib.h" -#include "lua\lualib.h" +#include "lua/lua.h" +#include "lua/lauxlib.h" +#include "lua/lualib.h" void error (lua_State *L, const char *fmt, ...) { va_list argp;