跳到內容
  • 版面
  • 最新
  • 標籤
  • 熱門
  • 使用者
  • 群組
  • 搜尋
  • Get Qt Extensions
  • Unsolved
Collapse
品牌標誌
  1. 首頁
  2. Qt Development
  3. Mobile and Embedded
  4. Problems with GStreamer- video player (with phonon) on embedded Linux (Qt 4.8.4)
Forum Updated to NodeBB v4.3 + New Features

Problems with GStreamer- video player (with phonon) on embedded Linux (Qt 4.8.4)

已排程 已置頂 已鎖定 已移動 Mobile and Embedded
30 貼文 4 Posters 16.4k 瀏覽 1 Watching
  • 從舊到新
  • 從新到舊
  • 最多點贊
回覆
  • 在新貼文中回覆
登入後回覆
此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
  • S 離線
    S 離線
    SirToby
    寫於 最後由 編輯
    #8

    Thanks again

    But I didn't solve my problem yet.

    I tried ldd on my plugin ( libphonon_gstreamer.so): look okay right? libphonon.so.4 => /lib/libphonon.so.4 (0x4036c000)
    libQtGui.so.4 => /lib/libQtGui.so.4 (0x403bb000)
    libQtNetwork.so.4 => /lib/libQtNetwork.so.4 (0x40d05000)
    libQtCore.so.4 => /lib/libQtCore.so.4 (0x40dfb000)
    libpthread.so.0 => /lib/libpthread.so.0 (0x41150000)
    libstdc++.so.6 => /lib/libstdc++.so.6 (0x41172000)
    libm.so.6 => /lib/libm.so.6 (0x41244000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x412e7000)
    libc.so.6 => /lib/libc.so.6 (0x41310000)
    libdl.so.2 => /lib/libdl.so.2 (0x4144d000)
    librt.so.1 => /lib/librt.so.1 (0x4145b000)
    /lib/ld-linux.so.3 (0x2a000000)

    Btw in included the plugin, libffi and libgstreamer-0.10 like this , is that okay?

    LIBS += -L/usr/local/Trolltech/QtEmbedded-4.8.4-arm/plugins/phonon_backend/ -lphonon_gstreamer

    LIBS += -L/opt/x/lib/ -lffi -lgstreamer-0.10 -lgstbase-0.10

    I also included after i read shrikantds post libgstbase (good and bad are optional for the gstreamer aren't they?) but sadly nothing...

    I am really sorry I didn't figured it out yet...

    1 條回覆 最後回覆
    0
    • SGaistS 離線
      SGaistS 離線
      SGaist
      Lifetime Qt Champion
      寫於 最後由 編輯
      #9

      You should rather have copied your QtEmbedded in the same folders on your arm device (libs and plugins and fonts). Meaning in /usr/local/Trolltech/QtEmbbeded-4.8.4.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 條回覆 最後回覆
      0
      • S 離線
        S 離線
        SirToby
        寫於 最後由 編輯
        #10

        thank your I copied my libs to /usr/local/Trolltech/QtEmbedded-4.8.4/lib but my application still isn't able to find the gstreamer plugin...

        1 條回覆 最後回覆
        0
        • SGaistS 離線
          SGaistS 離線
          SGaist
          Lifetime Qt Champion
          寫於 最後由 編輯
          #11

          You also have to copy the plugins dir (at least the content that you use)

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 條回覆 最後回覆
          0
          • S 離線
            S 離線
            SirToby
            寫於 最後由 編輯
            #12

            thanks but i already copied the complied plugin folder, the folder /usr/local/Trolltech/QtEmbedded-4.8.4/plugin I found on my development PC to my device.

            1 條回覆 最後回覆
            0
            • SGaistS 離線
              SGaistS 離線
              SGaist
              Lifetime Qt Champion
              寫於 最後由 編輯
              #13

              Just to be sure: did you made a typo here with "plugin" ? Otherwise it's "plugins"

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 條回覆 最後回覆
              0
              • S 離線
                S 離線
                SirToby
                寫於 最後由 編輯
                #14

                jep I'm sorry that's a typo, so for examle the libphonon_gstreamer.so is copied at:
                /usr/local/Trolltech/QtEmbedded-4.8.4-arm/plugins/phonon_backend

                1 條回覆 最後回覆
                0
                • SGaistS 離線
                  SGaistS 離線
                  SGaist
                  Lifetime Qt Champion
                  寫於 最後由 編輯
                  #15

                  Ok, then next step:
                  set this
                  @QT_DEBUG_PLUGINS=1@
                  on your command line before starting your application, that should give you the plugin loading error

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 條回覆 最後回覆
                  0
                  • S 離線
                    S 離線
                    SirToby
                    寫於 最後由 編輯
                    #16

                    First of all thank you very much for your help SGaist, that's really great and very nice :)

                    But I tried export QT_DEBUG_PLUGINS=1 befor starting my application, but nothing special happens (i also tried on my deveopment system, nothing, too)

                    QT_DEBUG_PLUGINS=1

                    ./phon -qws

                    If I check that enviroment variable, it's set ...
                    echo $QT_DEBUG_PLUGINS
                    1

                    1 條回覆 最後回覆
                    0
                    • SGaistS 離線
                      SGaistS 離線
                      SGaist
                      Lifetime Qt Champion
                      寫於 最後由 編輯
                      #17

                      Are you running a debug or release build of your application (Right now i'm not sure whether this could change the output when using QT_DEBUG_PLUGIN) ?

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 條回覆 最後回覆
                      0
                      • S 離線
                        S 離線
                        SirToby
                        寫於 最後由 編輯
                        #18

                        mh I had release build but i changed to debug (CONFIG += debug) but QT_DEBUG_PLUGINS dosen't work..

                        1 條回覆 最後回覆
                        0
                        • SGaistS 離線
                          SGaistS 離線
                          SGaist
                          Lifetime Qt Champion
                          寫於 最後由 編輯
                          #19

                          Do you also have the debug lib from Qt on your target ?

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 條回覆 最後回覆
                          0
                          • S 離線
                            S 離線
                            SirToby
                            寫於 最後由 編輯
                            #20

                            I wan't in town yesterday so I couldn't test that yesterday - sorry for that

                            I'm sorry but I can't find the debug lib...I crosscompild my Qt again and added the option - debug... but no debug lib was created- and also with the libs I compiled with the debug options, the QT_DEBUG_PLUGINS dosn't work

                            BTW I also set the PluginPath with QT_PLUGIN_PATH=... but that wasn't successful neither.

                            Also included: qDebug()<<QLibraryInfo::location(QLibraryInfo::PluginsPath);
                            It shows the correct Path("/usr/local/Trolltech/QtEmbedded-4.8.4-arm/plugins"
                            ), where the plugin is installed...

                            1 條回覆 最後回覆
                            0
                            • SGaistS 離線
                              SGaistS 離線
                              SGaist
                              Lifetime Qt Champion
                              寫於 最後由 編輯
                              #21

                              Did you do a clean build ?

                              Interested in AI ? www.idiap.ch
                              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                              1 條回覆 最後回覆
                              0
                              • S 離線
                                S 離線
                                SirToby
                                寫於 最後由 編輯
                                #22

                                Yes I did...

                                1 條回覆 最後回覆
                                0
                                • SGaistS 離線
                                  SGaistS 離線
                                  SGaist
                                  Lifetime Qt Champion
                                  寫於 最後由 編輯
                                  #23

                                  Just to be on the safe side, did you check the output of the configure script to see if it was a debug or release build ?

                                  Interested in AI ? www.idiap.ch
                                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  1 條回覆 最後回覆
                                  0
                                  • S 離線
                                    S 離線
                                    SirToby
                                    寫於 最後由 編輯
                                    #24

                                    If i checked the right file ist says DEBUG=auto, however the libs I compiled with the debug options are pretty big so I think they are build during debug build

                                    1 條回覆 最後回覆
                                    0
                                    • SGaistS 離線
                                      SGaistS 離線
                                      SGaist
                                      Lifetime Qt Champion
                                      寫於 最後由 編輯
                                      #25

                                      so if you call

                                      @QT_DEBUG_PLUGINS=1 ./myApplication -qws@

                                      You don't have any output ?

                                      Interested in AI ? www.idiap.ch
                                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                      1 條回覆 最後回覆
                                      0
                                      • S 離線
                                        S 離線
                                        SirToby
                                        寫於 最後由 編輯
                                        #26

                                        mhh I compiled everthing again und copied all libs und plugins on USB.-now the application aborted.. but may thats because of the USB and not gstreamer??

                                        (process:673): GLib-GObject-WARNING **: cannot register existing type 'gchar'
                                        **
                                        GLib-GObject:ERROR:gvaluetypes.c:457:_g_value_types_init: assertion failed: (type == G_TYPE_CHAR)
                                        Aborted

                                        And thanks again for helping me :)

                                        1 條回覆 最後回覆
                                        0
                                        • SGaistS 離線
                                          SGaistS 離線
                                          SGaist
                                          Lifetime Qt Champion
                                          寫於 最後由 編輯
                                          #27

                                          It's getting strange...

                                          What do you mean by "because of the USB" ? What do you have exactly there ?

                                          Interested in AI ? www.idiap.ch
                                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                          1 條回覆 最後回覆
                                          0

                                          • 登入

                                          • Login or register to search.
                                          • 第一個貼文
                                            最後的貼文
                                          0
                                          • 版面
                                          • 最新
                                          • 標籤
                                          • 熱門
                                          • 使用者
                                          • 群組
                                          • 搜尋
                                          • Get Qt Extensions
                                          • Unsolved