linuxdeployqt icon indicating copy to clipboard operation
linuxdeployqt copied to clipboard

Since I include webEngine in my project I can't get a working appImage

Open obiwankennedy opened this issue 7 years ago • 13 comments

I saw the bug #34 , but the solution is not clear. Does linuxdeployqt received the fix or do we have to copy stuff manually ?

I created my image on Ubuntu 16.04, I can start my AppImage on the computer which made it. On my Ubuntu 18.04 is not working.

On another 16.04, I get Could not find QtWebEngineProcess

I use linuxdeployqt (download it 3 hours ago), and my application is compiled with Qt5.10.1.

Is there a way to produce AppImage with webengine ?

obiwankennedy avatar Aug 13 '18 10:08 obiwankennedy

At the moment, we're moving on to https://github.com/linuxdeploy/linuxdeploy https://github.com/linuxdeploy/linuxdeploy-plugin-qt. Please try those, and let us know if you have issues. AFAIK people have used linuxdeploy to build AppImages containing the Qt5 web engine.

CC @azubieta.

TheAssassin avatar Aug 13 '18 12:08 TheAssassin

@obiwankennedy as I wrote there,

Possibly fixed in 3415b30, please confirm

So you are saying it was not actually fixed. Hmm. Then you can try the manual workaround described in #34.

@TheAssassin well, "moving on" is perhaps a bit much said at this time. (But at some point in the future we might eventually want to.)

probonopd avatar Aug 14 '18 20:08 probonopd

@probonopd you should maybe just try out linuxdeploy sometime soon. You'll see that it's ready to replace linuxdeployqt.

TheAssassin avatar Aug 14 '18 22:08 TheAssassin

For me it is when I have something to copy and paste like https://github.com/probonopd/linuxdeployqt#using-linuxdeployqt-with-travis-ci

So maybe all that is missing is some documentation (copy-and-paste example).

probonopd avatar Aug 15 '18 17:08 probonopd

My opinion: Copy-paste examples are what create issues like "I have no clue what I'm doing but it stopped working and I am too lazy to read the documentation". linuxdeploy is a really simple, intuitive and iterative tool for creating AppImages.

But as not only you but also others request these things, I decided to write some example scripts (nothing like an "example Travis script", as Travis isn't used by everyone, but some shell scripts that should run everywhere, including the local computer, Travis and other public CI services). They will soon be available on https://docs.appimage.org.

TheAssassin avatar Aug 15 '18 17:08 TheAssassin

@obiwankennedy here you will find a working example of how to build an AppImage that makes use QWebEngine.

azubieta avatar Aug 15 '18 19:08 azubieta

@probonopd: https://docs.appimage.org/packaging-guide/native-binaries.html#examples

TheAssassin avatar Aug 16 '18 00:08 TheAssassin

Hello, Sorry for late answer.

I'm feeling some disturbance in the force, here. As we are here on linuxdeployqt github page. I would like to keep talking about it. Thanks for the other answers. I will try both solutions and I will make some feedbacks to both projects.

The #34 is a bit unclear to read. I think the QtWebEngineProcess is there but it may not have all its dependencies or it may be in a wrong place.

May be the issue is on my side. I know that my qmake install rules are not really standard (or at least frequently tested). I don't know. I have to try again and see. I will try to give you some detailed logs.

Btw, copy-and-paste examples are greats. To be honest, there are many tools to make packages. I selected the simplest in my point of view. As I'm used to work with official qt tools to deploy on windows and macos. I was glad to find a similar tool on linux. The parameters are the same (or try to be) so it sounds like a good plan. I don't have the time to care understanding all the tools I use. I need to understand what they need to work and that's all.

It was easy to make my first AppImage. It worked like a charm for a while. Then, I add webengine in my project and everything goes wrong. I know that Qt integrated it as good as they could but it is not like the other qt module. I guess there are plenty workarounds and dirt under that. So I look for help with proper keyword and my friend google find the #34. I was surprised to see it was opened in 2016. I saw there is a commit to fix the bug. I make sure to test with the latest version and it still does not worked. I open this bug as It may be a new one. The first answer send me to another project. I follow the instructions, I don't know it you are all in a team or something. So I tested the new "version", and find some problems too. I'll be glad if my case helps to improve both projects (about documentation, features or bugs..).

obiwankennedy avatar Aug 16 '18 15:08 obiwankennedy

Btw, copy-and-paste examples are greats. To be honest, there are many tools to make packages. I selected the simplest in my point of view. As I'm used to work with official qt tools to deploy on windows and macos. I was glad to find a similar tool on linux. The parameters are the same (or try to be) so it sounds like a good plan. I don't have the time to care understanding all the tools I use. I need to understand what they need to work and that's all.

I can feel with you! Life is too short to read and understand X,000 tools and options. Stuff should "just work" in the way one expects it to work :-)

Unfortunately I don't have time to work on linuxdeployqt much these days and the other team members rather wanted to rewrite it from scratch (I admit that the linuxdeployqt code is a bit messy since I had inherited it from macdeployqt).

probonopd avatar Aug 16 '18 18:08 probonopd

@obiwankennedy here you will find a working example of how to build an AppImage that makes use QWebEngine.

That actually doesn't work on Ubuntu 18.04 32-bit.

linuxdeploy-plugin-qt-x86_64.AppImage 100%[=================================================================================================>] 4.83M 8.84MB/s in 0.5s

2018-11-08 09:06:27 (8.84 MB/s) - ‘linuxdeploy-plugin-qt-x86_64.AppImage’ saved [5066120/5066120]

[code] ~/linuxdeploy-plugin-qt-examples-master/QtQuickControls2Application ~/linuxdeploy-plugin-qt-examples-master ~/linuxdeploy-plugin-qt-examples-master/QtQuickControls2Application/build ~/linuxdeploy-plugin-qt-examples-master/QtQuickControls2Application ~/linuxdeploy-plugin-qt-examples-master ./build_appimages.sh: line 41: cmake: command not found roland@roland-Mate-18-04-32-bit-VirtualBox:~/linuxdeploy-plugin-qt-examples-master$ [/code]

RolandHughes avatar Nov 08 '18 15:11 RolandHughes

@RolandHughes mind to open an issue at https://github.com/linuxdeploy/linuxdeploy-plugin-qt. Please provide sources or download link of the AppImage for inspection if possible.

azubieta avatar Nov 08 '18 15:11 azubieta

@RolandHughes this is the wrong project. You should report it in the right issue tracker, otherwise it will get lost. See @azubieta's comment for more information.

TheAssassin avatar Nov 08 '18 16:11 TheAssassin

I was just pointing out that it is a bad example.

  1. It uses cmake which isn't installed by default.
  2. It "assumes" a 64-bit build platform and pulls down the wrong
    version of libdeployqt when run on a 32-bit system.

Quoting TheAssassin [email protected]:

@RolandHughes this is the wrong project. You should report it in the
right issue tracker, otherwise it will get lost. See @azubieta's
comment for more information.

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/probonopd/linuxdeployqt/issues/311#issuecomment-437076880

-- Roland Hughes, President Logikal Solutions (630) 205-1593

http://www.theminimumyouneedtoknow.com http://www.infiniteexposure.net http://www.johnsmith-book.com http://www.logikalblog.com http://www.interestingauthors.com/blog http://lesedi.us

RolandHughes avatar Nov 08 '18 17:11 RolandHughes