Open deric opened 3 years ago
Hey, I am getting the error you included at the beginning of you post. How can I resolve this?
@andrew-manger As the message say, lua files aren't on any of searched location. You've probably moved the main binary lite
out out project's main directory.
I didn't move anything. I built the program and then copied 'lite' to /bin/bash/ and it gave me this error. I'm trying to figure out how to fix it, not what I did wrong.
That's pretty much the same, you can create a symlink to your build directory:
ln -s /home/yourdir/src/lite /usr/local/bin/lite
I've added a simple
Makefile
but I'm struggling a bit project structure. E.g. when installing to/usr/local
Lua files could be placed in/usr/local/share/lua/5.2/core.lua
. It would be nicer to put also package name on path, so that Lite's files won't collide with some other Lua package, e.g./usr/local/share/lua/5.2/lite/core.lua
Also, fonts are currently hard-coded relatively to executable:
but this would be for another PR. Is it ok to modify this path?
A Linux program structure might look like
Currently all files needs to be placed relatively to e.g.
/usr/local/bin/lite
file, in/usr/local/bin/lite/data/
directory which isn't nice.