Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error - lua.hpp: No such file or directory #11

Open
andre-paris opened this issue Nov 27, 2019 · 2 comments
Open

Compile error - lua.hpp: No such file or directory #11

andre-paris opened this issue Nov 27, 2019 · 2 comments

Comments

@andre-paris
Copy link

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
@ComputerNerd
Copy link
Owner

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?

@tmator
Copy link

tmator commented Feb 11, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants