Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

Use linuxdeployqt #182

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open

Use linuxdeployqt #182

wants to merge 24 commits into from

Conversation

probonopd
Copy link
Collaborator

Work-in-progress for using linuxdeployqt. Please only merge once we have a known good AppImage.

@probonopd probonopd mentioned this pull request Jul 7, 2017
#Copy qt plugins
mkdir -p ./usr/lib/qt5/plugis
cp -r /opt/qt58/plugins ./usr/lib/qt5/plugins

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not using 5.8?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you think so? It says qt58.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

linuxdeployqt should take care of the Qt plugins automatically

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@TheAssassin 58 is 5.8 without a dot. That's why.

@enoch85
Copy link
Member

enoch85 commented Jul 7, 2017

I'll leave the merge to you guys or when you approved this.

@TheAssassin
Copy link
Contributor

I'll test it thoroughly tomorrow morning, and will post feedback.

Copy link
Contributor

@TheAssassin TheAssassin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://travis-ci.org/nextcloud/client_theming/jobs/251359362#L2256-L2281
There are several problems with this PR, it does not produce a working AppImage. There's a wrong CMake command, and appimagetool shows this $ID.desktop file not found message that I thought we had fixed.

@@ -22,97 +24,58 @@ cd qtkeychain
git checkout v0.8.0
mkdir build
cd build
cmake -D CMAKE_INSTALL_PREFIX=/app ../
cmake cmake .. -DCMAKE_INSTALL_PREFIX=/usr
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can't work for obvious reasons.

@probonopd
Copy link
Collaborator Author

It is really annoying me that errors still result in a green Travis CI result. Something seems to ignore exit codes...

@TheAssassin
Copy link
Contributor

@probonopd try adding set -e somewhere near the top.

@probonopd
Copy link
Collaborator Author

Somehow I have the feeling that my edited linux/AppImage/build-appimage.sh isn't even what is being run... Clues, anyone?

@TheAssassin
Copy link
Contributor

The original script is called appimage-build.sh. Yours is called differently. You'd have to remove the other one and rename yours, or edit the Travis configuration.

@probonopd
Copy link
Collaborator Author

So indeed, I think the whole way how Travis is invoked is messy (distributed over several files) which makes it hard to see immediately what is going on.

@enoch85
Copy link
Member

enoch85 commented Jul 22, 2017

What's the status here?

@TheAssassin
Copy link
Contributor

So indeed, I think the whole way how Travis is invoked is messy (distributed over several files) which makes it hard to see immediately what is going on.

@probonopd while this might be true, it also means that your way of developing this feature (i.e. using the GitHub editor and Travis) doesn't work here. You might want to think about developing this feature locally.

@enoch85 @probonopd has been busy recently. It's still on track as far as I can tell.

@rullzer
Copy link
Member

rullzer commented Aug 1, 2017

@probonopd thnx a lot. However this AppImage doesn't work for me. It can't load the libnextcloudsync.so it seems the rpath for the binary does not contain it.

Same goes actually for the rpath of the libs (so if you look at the rpath of libnextcloudsync.so it can't find the libqtkeychain.so etc).

@probonopd
Copy link
Collaborator Author

Have quite some extras to do just because the libnextcloud* is installed into a subdirectory of the libraries directory. Makes it much harder than necessary. What is the reason for the subdirectory?

@probonopd
Copy link
Collaborator Author

probonopd commented Aug 1, 2017

@rullzer please try again. https://transfer.sh/uAeVm/Nextcloud-2.3.2-beta-x86_64.AppImage works for me now.

EDIT: Link corrected.

@enoch85
Copy link
Member

enoch85 commented Aug 1, 2017

@TheAssassin
Copy link
Contributor

@enoch85 Try https://transfer.sh/uAeVm/Nextcloud-2.3.2-beta-x86_64.AppImage, the second "AppImage" is not necessary.

@enoch85
Copy link
Member

enoch85 commented Aug 1, 2017

Aah that's better :)

@TheAssassin
Copy link
Contributor

It's called "common sense", you can get it in your local convenience store.

@enoch85
Copy link
Member

enoch85 commented Aug 1, 2017

Didn't read, just clicked, but yeah you're right.

@TheAssassin
Copy link
Contributor

Never mind, we've all been there.

@TheAssassin
Copy link
Contributor

I'd love to see the switch to linuxdeployqt, better sooner than later. This project is still using the deprecated functions.sh stuff. linuxdeployqt is really a superior solution, much cleaner, and probably faster.

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

Successfully merging this pull request may close these issues.

4 participants