Skip to content
New issue

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

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

Already on GitHub? # to your account

libcairo.so.2: cannot open shared object file: No such file or directory #321

Closed
Calinou opened this issue Oct 6, 2018 · 7 comments
Closed

Comments

@Calinou
Copy link

Calinou commented Oct 6, 2018

I'm running into a missing dependency error when building Godot nightlies since October 5th:

squashfs-root/.DirIcon
squashfs-root/AppRun
squashfs-root/linuxdeployqt.desktop
squashfs-root/linuxdeployqt.svg
squashfs-root/usr
squashfs-root/usr/bin
squashfs-root/usr/bin/appimagetool
squashfs-root/usr/bin/desktop-file-validate
squashfs-root/usr/bin/linuxdeployqt
squashfs-root/usr/bin/patchelf
squashfs-root/usr/bin/qt.conf
squashfs-root/usr/bin/zsyncmake
squashfs-root/usr/lib
squashfs-root/usr/lib/appimagekit
squashfs-root/usr/lib/appimagekit/mksquashfs
squashfs-root/usr/lib/libQt5Core.so.5
squashfs-root/usr/lib/libicudata.so.52
squashfs-root/usr/lib/libicui18n.so.52
squashfs-root/usr/lib/libicuuc.so.52
squashfs-root/usr/lib/libpcre.so.3
squashfs-root/usr/share
squashfs-root/usr/share/doc
squashfs-root/usr/share/doc/libicu52
squashfs-root/usr/share/doc/libicu52/copyright
squashfs-root/usr/share/doc/libpcre3
squashfs-root/usr/share/doc/libpcre3/copyright
squashfs-root/usr/share/doc/qt59base
squashfs-root/usr/share/doc/qt59base/copyright
squashfs-root/usr/translations
linuxdeployqt 4 (commit 8b3ded6), build 570 built on 2018-10-05 10:34:00 UTC
Desktop file as first argument: "appdir/godot.desktop"
desktopExecEntry: "godot"
desktopIconEntry: "godot"
Found binary from desktop file: "/builds/Calinou/godot-builds-ci/godot/appdir/usr/bin/godot"
FHS-like mode with PREFIX, fhsPrefix: "/builds/Calinou/godot-builds-ci/godot/appdir/usr"
app-binary: "/builds/Calinou/godot-builds-ci/godot/appdir/usr/bin/godot"
appDirPath: "/builds/Calinou/godot-builds-ci/godot/appdir"
relativeBinPath: "usr/bin/godot"
Found icons from desktop file: ("/builds/Calinou/godot-builds-ci/godot/appdir/usr/share/icons/godot.svg")
iconToBeUsed: "/builds/Calinou/godot-builds-ci/godot/appdir/usr/share/icons/godot.svg"
Copied "/builds/Calinou/godot-builds-ci/godot/appdir/usr/share/icons/godot.svg" to "/builds/Calinou/godot-builds-ci/godot/appdir/godot.svg"
appimagetool: error while loading shared libraries: libcairo.so.2: cannot open shared object file: No such file or directory

Full build log on GitLab CI

Build script

@a12e
Copy link

a12e commented Oct 7, 2018

Same issue here.

It seems that a new dependency libcairo is needed : https://github.com/AppImage/libappimage/blob/master/cmake/dependencies.cmake#L13

@TheAssassin
Copy link
Collaborator

@a12e the line just shows the dependency is searched for, but it's not linked (or at least not supposed to be linked) into appimagetool. It's only required for libappimage.

Will look into it.

@Calinou
Copy link
Author

Calinou commented Oct 7, 2018

It's possible to install libcairo2 from system repositories to work around this issue, so I've done that in my daily builds system for now. Of course, it should still be fixed as to not require any system dependencies that are not present on base distributions 🙂

@TheAssassin
Copy link
Collaborator

@Calinou working it. We have to move some code around a bit, and then will be able to get rid of this unused dependency.

@TheAssassin
Copy link
Collaborator

By the way: this is more of an AppImageKit issue. I am working on it code wise, so please any of you open an issue over there and link to it from here. When it's fixed there, we'll rebuild linuxdeployqt's AppImage with the new appimagetool binary, and can close it here, too.

@probonopd
Copy link
Owner

Thanks for solving this @TheAssassin

@TheAssassin
Copy link
Collaborator

Oh right, that issue is still open. I already had Travis create a new release with up to date binaries.

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

No branches or pull requests

4 participants