Closed shaunlebron closed 9 years ago
It builds und runs fine for me on Debian unstable after installing liblua5.2-dev and applying the following changes.
diff --git a/engine/Makefile b/engine/Makefile
index 5b15aa8..9cb9a83 100644
--- a/engine/Makefile
+++ b/engine/Makefile
@@ -825,9 +825,9 @@ endif
QWSV_LFLAGS += -mconsole
endif
ifeq ($(TARGET_OS),UNIX)
-COMMON_CPPFLAGS += -DELF
+COMMON_CPPFLAGS += -DELF $(shell pkg-config --cflags lua5.2)
COMMON_OBJS += net_udp.o sys_unix.o
-COMMON_LIBS += m lua
+COMMON_LIBS += m lua5.2
NQCL_OBJS += net_bsd.o
# FIXME - stupid hack
Where's your LUA installation coming from? As it's installed in /usr/local so it's not from the official repo.
Thanks @thoemy. I was building Lua from source and using its make install
process. details here
Will give this a try and update the Makefile if all goes well. Are there any complications with distributing a binary like this to linux users? I'm not familiar with this space.
Built out of the box on Archlinux for me, dependencies were 'libxxf86vm' 'libxxf86dga' 'lua>=5.2'.
Thanks @thoemy! I just updated the Makefile to use your parameters if it detects Debian.
I'm going to close this and not create a binary for linux since users are used to building, and I'm not sure how to build a binary for all linux distros.
Can't seem to create a build on Ubuntu. I get linker errors saying that it can't find
dlclose
symbol in glibc. I addeddl
to libs, and still wasn't fixed: