Open lordSeaworth opened 7 years ago
Just compile it from source.
git clone https://github.com/slages/love-imgui.git
cd love-imgui/
cmake ./
make
mv imgui.so ~/.local/share/love/
I built imgui.so and tried to put it in my game's directory, but it doesn't seem to find it, whereas on windows, with the dll, it works perfectly. Do you have any idea of what could be wrong ? Built it on Linux-Fedora 26
Copy it to ~/.local/share/love
and see if that works...
Negative, i'll look more in details, i'm just missing time right now. It was just to notice that copying it in game's dir doesn't seem to work, on Fedora at least, even though blue screen says that it's looking for './imgui.so', when it is here, next to the imgui.dll. I'll see if i can find a place to put it :D
It's quite a bit later, but I had a similar problem on Windows (and not on Linux). I fixed it by running package.cpath = package.cpath .. ";.dll"
. Probably could be fixed for you by appending ".so"
instead.
the place that worked for me, without changing anything, was to place on:
/usr/local/lib/lua/5.1/imgui.so
here are my binaries:
Ubuntu 18.04 - x86_64 imgui.zip Ubuntu 16.04 - x86_64 imgui-ubuntu16.04.zip
They are a zip, with a tar.gz, with the .so inside. Github only allows zip, but zip doesn't always preserve permissions on Linux, so just extract it twice.
Can confirm. It looks for imgui.lua
in most dirs.
It only searches for imgui.so
in current dir, plus two other dirs:
./imgui.so
/usr/local/lib/lua/5.1/imgui.so
/usr/lib/x86_64-linux-gnu/lua/5.1/imgui.so
here's the full command to get it built & installed to a usable dir:
git clone https://github.com/slages/love-imgui.git && cd love-imgui
sed -i '7 a \ /usr/include/luajit-2.1' cmake/FindLuaJIT.cmake
cmake . && make
sudo mv imgui.so /usr/local/lib/lua/5.1/imgui.so
There a possilbilty to get some precompiled linux64 of the library for latest love2d?