Skip to content
  • 0 Votes
    9 Posts
    389 Views
    K
    @Axel-Spoerl I tried the second option via: QProcess process(this); process.setProcessChannelMode(QProcess::ForwardedChannels); auto env = process.processEnvironment(); env.remove("LD_LIBRARY_PATH"); process.setProcessEnvironment(env); process.start("xdg-open", { "/" }); process.waitForFinished(-1); This still resulted in the same errors for some reason. But you pointed me in the right direction. I realized everything works correctly when the built files are executed outside of Qt Creator. (I should have tried this from the start.) I found the option "Add build library search path to LD_LIBRARY_PATH" in Qt Creator's run settings for the configuration. [image: f07a6410-6a93-421a-b5d4-53f03f11ed12.png] Unchecking that causes QDesktopServices::openUrl (and QProcess::start with xdg-open) to work correctly in my app even when launched from Qt Creator.
  • 0 Votes
    6 Posts
    6k Views
    SGaistS
    Glad you found out and thanks for sharing ! Since you have it working now, please mark the thread as solved using the "Topic Tool" button so that other forum users may know a solution has been found :)
  • 0 Votes
    4 Posts
    4k Views
    M
    I just re-install the NDK and it works fine now... Sometimes it's strange...
  • 1 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    22 Posts
    27k Views
    S
    guys, i have the same issue but with debian 11. When i run the player example, i get the following defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer" sherif@debian:~/sndmod$ sudo apt list --installed | grep gstreamer [sudo] password for sherif: WARNING: apt does not have a stable CLI interface. Use with caution in scripts. gir1.2-gstreamer-1.0/stable,now 1.18.4-2.1 amd64 [installed,automatic] gira-gstreamer-vanilla/testing,now 1.0.0-4 all [installed,automatic] gstreamer1.0-alsa/stable,now 1.18.4-2 amd64 [installed,automatic] gstreamer1.0-clutter-3.0/stable,now 3.0.27-2 amd64 [installed,automatic] gstreamer1.0-gl/stable,now 1.18.4-2 amd64 [installed,automatic] gstreamer1.0-gtk3/stable,now 1.18.4-2 amd64 [installed,automatic] gstreamer1.0-libav/stable,now 1.18.4-3 amd64 [installed] gstreamer1.0-packagekit/stable,now 1.2.2-2 amd64 [installed] gstreamer1.0-pipewire/stable,now 0.3.19-4 amd64 [installed,automatic] gstreamer1.0-plugins-bad/stable,now 1.18.4-3 amd64 [installed,automatic] gstreamer1.0-plugins-base/stable,now 1.18.4-2 amd64 [installed] gstreamer1.0-plugins-good/stable,now 1.18.4-2 amd64 [installed] gstreamer1.0-plugins-ugly/stable,now 1.18.4-2 amd64 [installed] gstreamer1.0-pulseaudio/stable,now 1.18.4-2 amd64 [installed] gstreamer1.0-tools/stable,now 1.18.4-2.1 amd64 [installed,automatic] gstreamer1.0-x/stable,now 1.18.4-2 amd64 [installed,automatic] libgstreamer-gl1.0-0/stable,now 1.18.4-2 amd64 [installed,automatic] libgstreamer-plugins-bad1.0-0/stable,now 1.18.4-3 amd64 [installed,automatic] libgstreamer-plugins-base1.0-0/stable,now 1.18.4-2 amd64 [installed,automatic] libgstreamer1.0-0/stable,now 1.18.4-2.1 amd64 [installed,automatic] libgstreamer1.0-dev/stable,now 1.18.4-2.1 amd64 [installed,automatic] qtgstreamer-plugins-qt5/stable,now 1.2.0-5.1 amd64 [installed,auto-removable] sherif@debian:~/sndmod$
  • 0 Votes
    20 Posts
    7k Views
    SGaistS
    AFAIC Qt Creator assumes that examples are self contained. These are a bit of a special case