QuasarApp / CQtDeployer

This project is used to deploy applications written using QML, qt or other С / С++ frameworks.
https://quasarapp.ddns.net:3031/docs/QuasarApp/CQtDeployer/latest/
GNU Lesser General Public License v3.0
578 stars 87 forks source link

Deploy project with QtAV - no video widget #682

Closed nicmorais closed 2 years ago

nicmorais commented 2 years ago

Describe the bug I'm trying to deploy a project that includes QtAv, which was succesfully built by Qt Creator. The copyright message shows on console, but there's no video widget. If i try to play something, the application crashes.

To Reproduce Steps to reproduce the behavior:

  1. cqtdeployer -bin build-YI-Hack-Player-Desktop_Qt_5_15_2_GCC_64bit-Release/YI-Hack-Player -name YI-Hack-Player -icon YI-Hack-Player/data/icons/logo.svg (tried also with -libDir)
  2. cd into DistributionKit
  3. ./YI-Hack-Player.sh
  4. Window shows up, with no video widget

Expected behavior The video widget to show up, completely black

Screenshots Desktop (please complete the following information):

nicmorais commented 2 years ago

Fixed by copying libc6.so and then running ./bin/YI-Hack-Player But this is not right, is it? In a different computer, the bug persists.

EndrII commented 2 years ago

If you want to share your app then you should be build on maximum old distribution for example ubuntu 18.04. If you build on ubuntu 21.10 then you distribution kit will works correctly only on Ubuntu 21.10. If Ubuntu 18.04 the you app works correctly on 18.04 - 21.10.

Why you app not works i don't known. maybe you QtAV lib not copied. Show me you deploy log please.

nicmorais commented 2 years ago

Hello Andrei So, both computers run the same version of Ubuntu now, and the bug is still the same https://pastebin.com/5nBWMdyZ

EndrII commented 2 years ago

i check you deploy log and i can't see copy QtAV lib into your distribution folder. Maybe you include the QtAV library as a plugin ?

if yes then you need to add -extraPlugin path/to/QtAV.so to deploy command and load this plugin using QLibraryInfo::PluginsPath

nicmorais commented 2 years ago

@EndrII Alright! But how do I load the plugin with such option? I mean, where and how do I put QLibraryInfo::PluginsPath? Also, my project is on Github if someone wants to inspect and/or try it.

nicmorais commented 2 years ago

@EndrII Andrei, it's solved! I deployed with: -extraPlugin /home/nicolas/Qt/5.15.2/gcc_64/lib/libQtAV.so.1,/home/nicolas/Qt/5.15.2/gcc_64/lib/libQtAVWidgets.so.1 And now it runs as expected on both computers! Thanks a lot, I wish a happy new year for you!