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

prebuild linux64? #19

Open
lordSeaworth opened this issue Aug 18, 2017 · 8 comments
Open

prebuild linux64? #19

lordSeaworth opened this issue Aug 18, 2017 · 8 comments

Comments

@lordSeaworth
Copy link

There a possilbilty to get some precompiled linux64 of the library for latest love2d?

@taxilly
Copy link

taxilly commented Aug 18, 2017

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/

@FcTD4mN
Copy link

FcTD4mN commented Sep 18, 2017

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

@taxilly
Copy link

taxilly commented Sep 18, 2017

Copy it to ~/.local/share/love and see if that works...

@FcTD4mN
Copy link

FcTD4mN commented Sep 18, 2017

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

@ghost
Copy link

ghost commented Feb 16, 2018

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.

@ericoporto
Copy link

ericoporto commented Jan 20, 2019

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.

@doyousketch2
Copy link

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

@doyousketch2
Copy link

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

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

5 participants