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

Build AppImage on Ubuntu Trusty 14.04 beause it is still supported #75

Closed
evpo opened this issue Feb 11, 2018 · 11 comments
Closed

Build AppImage on Ubuntu Trusty 14.04 beause it is still supported #75

evpo opened this issue Feb 11, 2018 · 11 comments

Comments

@evpo
Copy link
Owner

evpo commented Feb 11, 2018

See #71 for more details

@evpo
Copy link
Owner Author

evpo commented Feb 11, 2018

Add gpg signature for the AppImage file

@evpo
Copy link
Owner Author

evpo commented Feb 12, 2018

@probonopd, I've updated the AppImage and added a signature. Could you please restart your build?

@probonopd
Copy link
Contributor

@evpo
Copy link
Owner Author

evpo commented Feb 13, 2018

When I run it on a clean Trusty, it fails with:

./encryptpad0_4_0_2.AppImage: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory

@evpo
Copy link
Owner Author

evpo commented Feb 13, 2018

The app runs fine after installing:

sudo apt install libgl1-mesa-glx

@evpo
Copy link
Owner Author

evpo commented Feb 13, 2018

@probonopd, should it be part of AppImage?

linuxdeployqt ./AppDir/encryptpad -bundle-non-qt-libs
appimagetool ./AppDir encryptpad.AppImage

the above commands didn't include libGL.so.1 by default. I will investigate more when I have access to my build environment.

@evpo
Copy link
Owner Author

evpo commented Feb 13, 2018

The build environment already contains libgl1-mesa-glx, which is pulled as a dependency to libgl1-mesa-dev. libGL.so.1 is not the problem. @probonopd, what's the technology that identifies if there is a window?

@evpo
Copy link
Owner Author

evpo commented Feb 14, 2018

I progressed a bit further. encryptpad works fine in the real screen environment and segfaults under:

Xvfb :99 -screen 0 800x600x24 &

when I run it as below:

DISPLAY=:99 ./encryptpad0_4_0_2.AppImage &

@evpo
Copy link
Owner Author

evpo commented Feb 14, 2018

Next step

I built EncryptPad on this machine and ran under Xvfb:

ubuntu@demo-trusty:~/EncryptPad$ DISPLAY=:99 ./bin/release/encryptpad &
[2] 15677
ubuntu@demo-trusty:~/EncryptPad$
ubuntu@demo-trusty:~/EncryptPad$ jobs
[1]-  Running                 Xvfb :99 -screen 0 800x600x24 &  (wd: ~)
[2]+  Running                 DISPLAY=:99 ./bin/release/encryptpad &
ubuntu@demo-trusty:~/EncryptPad$ DISPLAY=:99 xwininfo -tree -root

xwininfo: Window id: 0x169 (the root window) "EncryptPad"

  Root window id: 0x169 (the root window) "EncryptPad"
  Parent window id: 0x0 (none)
     4 children:
     0x200006 "untitled.epd": ("encryptpad" "EncryptPad")  685x453+891+396  +891+396
     0x200005 (has no name): ()  3x3+0+0  +0+0
     0x200004 (has no name): ()  1x1+0+0  +0+0
     0x200002 (has no name): ()  1x1+0+0  +0+0

It works.

@evpo
Copy link
Owner Author

evpo commented Feb 16, 2018

I installed Xvfb on trusty on which I built Qt 5.10 and tried to run a few example Qt applications such as calculator and tetris. I got the same:

ubuntu@trusty-for-appimage:~/qt-everywhere-src-5.10.0/qtbase/examples/widgets/widgets/tetrix$ DISPLAY=:99 ./tetrix &
[1] 5926
ubuntu@trusty-for-appimage:~/qt-everywhere-src-5.10.0/qtbase/examples/widgets/widgets/tetrix$ QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-ubuntu'

[1]+  Segmentation fault      (core dumped) DISPLAY=:99 ./tetrix

It seems there is a general problem with Qt 5.10 interacting with Xvfb on Trusty. At the same time those applications work with the normal X server.

@probonopd
Copy link
Contributor

It seems there is a general problem with Qt 5.10 interacting with Xvfb on Trusty. At the same time those applications work with the normal X server.

Interesting. Thanks for letting me know.

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

2 participants