Retro-Graphics-Toolkit
Retro-Graphics-Toolkit copied to clipboard
Compile error - lua.hpp: No such file or directory
Trying to compile under Ubuntu 18.04
libfltk1.3:
Installed: 1.3.4-6
Candidate: 1.3.4-6
Version table:
*** 1.3.4-6 500
500 http://ubuntu.mirrors.tds.net/pub/ubuntu bionic/universe amd64 Packages
100 /var/lib/dpkg/status
libboost-all-dev:
Installed: 1.65.1.0ubuntu1
Candidate: 1.65.1.0ubuntu1
Version table:
*** 1.65.1.0ubuntu1 500
500 http://ubuntu.mirrors.tds.net/pub/ubuntu bionic/universe amd64 Packages
100 /var/lib/dpkg/status
liblua5.3-0:
Installed: 5.3.3-1ubuntu0.18.04.1
Candidate: 5.3.3-1ubuntu0.18.04.1
Version table:
*** 5.3.3-1ubuntu0.18.04.1 500
500 http://ubuntu.mirrors.tds.net/pub/ubuntu bionic-security/main amd64 Packages
500 http://ubuntu.mirrors.tds.net/pub/ubuntu bionic-updates/main amd64 Packages
100 /var/lib/dpkg/status
5.3.3-1 500
500 http://ubuntu.mirrors.tds.net/pub/ubuntu bionic/main amd64 Packages
$ make
g++ -DPACKAGE='"luaposix"' -DVERSION='"RGT"' -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -DHAVE_NET_IF_H=1 -D_DEFAULT_SOURCE -DUSE_IMAGES=1 -isystem /usr/include/fltk/ -Ilua/src -Imdcomp/include/ -IautogeneratedBindings/ -Iluaposix/ext/include -Iluaposix_headers -I. -c -march=native -flto -fuse-linker-plugin -s -O3 -pipe -march=native -fomit-frame-pointer -fno-rtti -std=gnu++14 project.cpp -o project.o
In file included from project.cpp:29:0:
luaconfig.h:18:10: fatal error: lua.hpp: No such file or directory
#include "lua.hpp"
^~~~~~~~~
compilation terminated.
Makefile:22: recipe for target 'project.o' failed
make: *** [project.o] Error 1
Please try the latest commit and let me know if it works. I changed it to <lua.hpp> so it should look in your system folders. Also do you have liblua5.3-dev installed?
Same problem for me on Debian, you need to modify the make file with (change 5.3 with your lua version) :
LDFLAGS := -flto -O3 -march=native -fuse-linker-plugin -s -fno-rtti -std=gnu++14 -L/usr/lib/fltk/ -lfltk_images -lfltk -lpng -ljpeg -lXft -lXext -lXinerama -lX11 -lz -s -L/usr/lib/x86_64-linux-gnu/ -llua5.3 -ldl
and makefile.common (change 5.3 with your lua version) :
CFLAGS := -isystem /usr/include/fltk/ -Imdcomp/include/ -IautogeneratedBindings/ -Iluaposix/ext/include -Iluaposix_headers -I/usr/include/lua5.3/ -I. -c