Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Multiple issues with examples
Qt 6.11 is out! See what's new in the release blog

Multiple issues with examples

Scheduled Pinned Locked Moved Unsolved General and Desktop
16 Posts 3 Posters 5.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    macermak
    wrote on last edited by
    #4

    Aight, first part of the problem solved (partially)... It was Wayland causing the black screen, in a moment I switched to X11, it was okay.
    But still having troubles with the audio. The 'Audio Visualizer' example neither loads the song, nor plays any sound. Also I can't stop it or pause it.

    Marek Cermak, Student of Computer Science

    jsulmJ 1 Reply Last reply
    0
    • M macermak

      Aight, first part of the problem solved (partially)... It was Wayland causing the black screen, in a moment I switched to X11, it was okay.
      But still having troubles with the audio. The 'Audio Visualizer' example neither loads the song, nor plays any sound. Also I can't stop it or pause it.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #5

      @macermak For media like audio you need to install GStreamer libraries.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        macermak
        wrote on last edited by
        #6

        @jsulm Thank you for your response,
        I know, as I mentioned before, I believe I have all of them installed. Both 1 and 0.10.
        I found a bug that describes similiar thing on Windows (no solution): https://bugreports.qt.io/browse/QTBUG-58125?jql=text ~ "audio visualizer"

        PS: Enclosing output of $rpm -qa | grep gstreamer
        [0_1502774628239_output-gstreamer.txt](Uploading 100%)

        Marek Cermak, Student of Computer Science

        jsulmJ 1 Reply Last reply
        1
        • M macermak

          @jsulm Thank you for your response,
          I know, as I mentioned before, I believe I have all of them installed. Both 1 and 0.10.
          I found a bug that describes similiar thing on Windows (no solution): https://bugreports.qt.io/browse/QTBUG-58125?jql=text ~ "audio visualizer"

          PS: Enclosing output of $rpm -qa | grep gstreamer
          [0_1502774628239_output-gstreamer.txt](Uploading 100%)

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #7

          @macermak You can try to start the example with QT_DEBUG_PLUGINS set to 1 to see what exactly happens when plug-ins are loaded

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          2
          • M Offline
            M Offline
            macermak
            wrote on last edited by
            #8

            @jsulm That is a great advice! At least I can trace it somehow.
            I can see an issue:
            Cannot load library /home/macermak/Qt/5.9.1/gcc_64/plugins/imageformats/libqjp2.so: (libjasper.so.1: cannot open shared object file: No such file or directory)
            QLibraryPrivate::loadPlugin failed on "/home/macermak/Qt/5.9.1/gcc_64/plugins/imageformats/libqjp2.so" : "Cannot load library /home/macermak/Qt/5.9.1/gcc_64/plugins/imageformats/libqjp2.so: (libjasper.so.1: cannot open shared object file: No such file or directory)"

            $rpm -q qt5-qtimageformats
            qt5-qtimageformats-5.7.1-5.fc26.x86_64
            $sudo find / -name libjasper*
            /usr/lib64/libjasper.so
            /usr/lib64/libjasper.so.4
            /usr/lib64/libjasper.so.4.0.0

            Marek Cermak, Student of Computer Science

            jsulmJ 1 Reply Last reply
            0
            • M macermak

              @jsulm That is a great advice! At least I can trace it somehow.
              I can see an issue:
              Cannot load library /home/macermak/Qt/5.9.1/gcc_64/plugins/imageformats/libqjp2.so: (libjasper.so.1: cannot open shared object file: No such file or directory)
              QLibraryPrivate::loadPlugin failed on "/home/macermak/Qt/5.9.1/gcc_64/plugins/imageformats/libqjp2.so" : "Cannot load library /home/macermak/Qt/5.9.1/gcc_64/plugins/imageformats/libqjp2.so: (libjasper.so.1: cannot open shared object file: No such file or directory)"

              $rpm -q qt5-qtimageformats
              qt5-qtimageformats-5.7.1-5.fc26.x86_64
              $sudo find / -name libjasper*
              /usr/lib64/libjasper.so
              /usr/lib64/libjasper.so.4
              /usr/lib64/libjasper.so.4.0.0

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #9

              @macermak Well, this is JPEG - not related to audio

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1
              • M Offline
                M Offline
                macermak
                wrote on last edited by
                #10

                @jsulm Yes, I agree, but it is the only issue I can see in the debug output. Plus, I don't know how to solve at least this, since there is no libjasper.so.1 in jasper-libs anymore. Any idea?

                Marek Cermak, Student of Computer Science

                jsulmJ 1 Reply Last reply
                0
                • M macermak

                  @jsulm Yes, I agree, but it is the only issue I can see in the debug output. Plus, I don't know how to solve at least this, since there is no libjasper.so.1 in jasper-libs anymore. Any idea?

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #11

                  @macermak On Ubuntu you need to install libjasper1 package.

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  2
                  • M Offline
                    M Offline
                    macermak
                    wrote on last edited by
                    #12

                    @jsulm Yes, but I am on Fedora 26, which is using libjasper.so.4

                    Marek Cermak, Student of Computer Science

                    jsulmJ 1 Reply Last reply
                    0
                    • M macermak

                      @jsulm Yes, but I am on Fedora 26, which is using libjasper.so.4

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #13

                      @macermak Could be that it provides an older version of the lib as well, or you could try to hack a bit and create a symbolic link:

                      ln -s libjasper.so.1 libjasper.so.4
                      

                      :-)
                      But this will not work if these two versions are not compatible.

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      2
                      • M Offline
                        M Offline
                        macermak
                        wrote on last edited by
                        #14

                        @jsulm Thanks, this is kinda brilliant, it did satisfied the debug message! Did not solve the problem with the audio visualizer tho. Should I report it as a bug?

                        BTW as far as the text to speech example is concerned, I found https://bugreports.qt.io/browse/QTBUG-58461 .. seems like a current problem that is being worked on.

                        For future reference, if someone wants to fix this as well, the command is vice versa:
                        $ ln -s libjasper.so.4 libjasper.so.1

                        Marek Cermak, Student of Computer Science

                        jsulmJ 1 Reply Last reply
                        0
                        • M macermak

                          @jsulm Thanks, this is kinda brilliant, it did satisfied the debug message! Did not solve the problem with the audio visualizer tho. Should I report it as a bug?

                          BTW as far as the text to speech example is concerned, I found https://bugreports.qt.io/browse/QTBUG-58461 .. seems like a current problem that is being worked on.

                          For future reference, if someone wants to fix this as well, the command is vice versa:
                          $ ln -s libjasper.so.4 libjasper.so.1

                          jsulmJ Offline
                          jsulmJ Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on last edited by
                          #15

                          @macermak Yes, symbolic link can be very handy :-)
                          You can report it as bug but you should first search there - maybe it is already reported.

                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          2
                          • M Offline
                            M Offline
                            macermak
                            wrote on last edited by
                            #16

                            @jsulm Ye, I found some similar bugs that have already been reported. Lets hope for the fix soon. Thank you for the help anyway.

                            Mark.

                            Marek Cermak, Student of Computer Science

                            1 Reply Last reply
                            0

                            • Login

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups
                            • Search
                            • Get Qt Extensions
                            • Unsolved