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

ZLIB_1.2.9 missing #2

Closed
yohannd1 opened this issue Jan 23, 2020 · 11 comments
Closed

ZLIB_1.2.9 missing #2

yohannd1 opened this issue Jan 23, 2020 · 11 comments

Comments

@yohannd1
Copy link

yohannd1 commented Jan 23, 2020

I've been trying to load Loenn since a while, but I always get this error:

Error

error loading module 'nfd' from file './nfd.so':
/tmp/.mount_Du1T6E/usr/../lib/x86_64-linux-gnu/libz.so.1: version `ZLIB_1.2.9' not found (required by /lib/x86_64-linux-gnu/libpng16.so.16)


Traceback

[C]: at 0x7fdc683402e0
[C]: in function 'require'
filesystem.lua:2: in function 'f'
selene/selene/wrappers/searcher/love2d/searcher.lua:27: in function <selene/selene/wrappers/searcher/love2d/searcher.lua:22>
[C]: in function 'require'
utils.lua:2: in function 'f'
selene/selene/wrappers/searcher/love2d/searcher.lua:27: in function <selene/selene/wrappers/searcher/love2d/searcher.lua:22>
[C]: in function 'require'
meta.lua:1: in function 'f'
selene/selene/wrappers/searcher/love2d/searcher.lua:27: in function <selene/selene/wrappers/searcher/love2d/searcher.lua:22>
[C]: in function 'require'
selene_main.lua:3: in function 'f'
selene/selene/wrappers/searcher/love2d/searcher.lua:27: in function <selene/selene/wrappers/searcher/love2d/searcher.lua:22>
[C]: in function 'require'
main.lua:13: in function 'load'
[C]: in function 'xpcall'
[C]: in function 'xpcall'

Investigating the error message on the top, I've tried to install zlib1.2.9 and libpng1.6.37, but they didn't change the problem.

OS: Linux (Ubuntu 19.04)
Loenn version: v0.0.7 (It also happened with the previous version)

@Vexatos
Copy link
Member

Vexatos commented Jan 23, 2020

I mean it does look like nfd is linked against a different version of zlib. Installing the right zlib version (this issue has plenty of hits in search engines) should do it. Alternatively, you can compile nfd yourself.
Lönn does not directly interface with zlib or libpng at all, and nfd doesn't either as far as I know, so it shouldn't contain any links to it. libgtk-3 should be the only direct dependency. Are you sure your gtk installation is correct?

@yohannd1
Copy link
Author

yohannd1 commented Jan 23, 2020

I've tried compiling your fork of nfd (and it was recognized by Loenn), and also tried to fix the problem with this link, but none of these tries worked - the error is the same and the only thing that seems to have changed is the location where Loenn is finding nfd.so (which is now /usr/local/lib/lua/5.1/nfd.so, where I installed it)

In /lib/x86_64-linux-gnu/ (where LOVE seems to find by mounting a temp folder like /tmp/.mount_Du1T6E/usr/../lib/x86_64-linux-gnu/libz.so.1) I've put a symlink to /usr/local/lib/libz.so.1.2.9 called libz.so.1, but that didn't work.

Also, I believe my libgtk-3 installation is correct, but I also have libgtk-2:

libgtk-3-0/eoan,now 3.24.12-1ubuntu1 amd64 [installed,automatic]
libgtk-3-bin/eoan,now 3.24.12-1ubuntu1 amd64 [installed,automatic]
libgtk-3-common/eoan,eoan,now 3.24.12-1ubuntu1 all [installed,automatic]
libgtk-3-dev/eoan,now 3.24.12-1ubuntu1 amd64 [installed]
libgtk-vnc-2.0-0/eoan,now 0.9.0-1.1 amd64 [installed,automatic]
libgtk2.0-0/eoan,now 2.24.32-4ubuntu1 amd64 [installed,automatic]
libgtk2.0-0/eoan,now 2.24.32-4ubuntu1 i386 [installed,automatic]
libgtk2.0-bin/eoan,now 2.24.32-4ubuntu1 amd64 [installed,automatic]
libgtk2.0-common/eoan,eoan,now 2.24.32-4ubuntu1 all [installed,automatic]
libgtk3-perl/eoan,eoan,now 0.036-1 all [installed,automatic]

@Vexatos
Copy link
Member

Vexatos commented Jan 24, 2020

You aren't supposed to install nfd anywhere, it goes in the directory next to the .love file.

@yohannd1
Copy link
Author

I knew that, and because of that I renamed the nfd.so file in the folder to nfd.so.old to see if it loaded my installed one - and it loaded, but the same error appeared.
And I've tried now to put the new nfd file I built on the Loenn folder and it still didn't change anything.

@Vexatos
Copy link
Member

Vexatos commented Jan 24, 2020

Not sure I can help you with that, it really looks like your GTK installation may be messed up somehow.

@yohannd1
Copy link
Author

Okay, but thanks for trying anyway. I actually was going to re-install my OS in some days (or weeks). When I do it I'll try running Ahorn again and post updates here.

@yohannd1
Copy link
Author

yohannd1 commented Mar 6, 2020

So, I've reinstalled my OS some weeks ago, and Loenn still didn't work.

I'll try next disabling whatever links to nfd.so in the code to see if it works, there only seems to be references to it in src/filesystem.lua.

@yohannd1
Copy link
Author

I've been trying to run Loenn via its source code but, when I try to init the submodules (git submodule update --init), it says that there is no giraffe submodule in .gitmodules. In fact there isn't any declaration of it there, and here in GitHub the src/giraffe folder has a submodule icon, but can't be acessed, where src/selene is also a submodule but can be acessed.

@Vexatos
Copy link
Member

Vexatos commented Mar 19, 2020

Looks like Cruor did a dumb. Fixed that in 5ae1dce.

@yohannd1
Copy link
Author

yohannd1 commented Mar 19, 2020

Finally I got it to run!

Just another thing - currently there's only the navigation is available, right? I'm not sure if it's glitched for me, but it's the only thing I can do.

image

It looks pretty good and is running smooth!

@Vexatos
Copy link
Member

Vexatos commented Mar 19, 2020

Indeed, this looks correct. #1 works on a basic UI, and we're working on a solution as well, but it's taking time. Ahorn is the only fully-featured editor right now.

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

No branches or pull requests

2 participants