From d463002a970fd7a72cfad047a944861e3df6a4e9 Mon Sep 17 00:00:00 2001 From: Kevin Harrison Date: Fri, 5 Apr 2019 17:24:48 -0400 Subject: [PATCH] Fix build scripts and instructions for Linux builds --- README.md | 2 +- cmake/FindLuaJIT.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fe9758d..17b1061 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ Next, you need to compile the code to a native Lua module. ### Compiling with CMake on Linux -1. First, ensure you have the `cmake` and `luajit` packages installed. +1. First, ensure you have the `cmake` and `luajit` packages installed, as well as `libluajit-5.1-dev` if your distro has this package. 2. Create a new folder next to `love-nuklear` called `love-nuklear-build`. 3. Open a terminal inside `love-nuklear-build`. 4. Compile the library with diff --git a/cmake/FindLuaJIT.cmake b/cmake/FindLuaJIT.cmake index e8384e2..cf996e0 100644 --- a/cmake/FindLuaJIT.cmake +++ b/cmake/FindLuaJIT.cmake @@ -11,7 +11,7 @@ find_path(LUA_INCLUDE_DIR luajit.h HINTS ENV LUA_DIR - PATH_SUFFIXES include/luajit-2.0 include + PATH_SUFFIXES include/luajit-2.0 include/luajit-2.1 include PATHS ~/Library/Frameworks /Library/Frameworks