Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. could not initialize supporting library
Forum Updated to NodeBB v4.3 + New Features

could not initialize supporting library

Scheduled Pinned Locked Moved Solved Mobile and Embedded
14 Posts 4 Posters 2.0k Views 2 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.
  • O Offline
    O Offline
    Omkareshwar
    wrote on 12 Mar 2019, 14:08 last edited by
    #1

    Hello,

    I am making a music player for my embedded device. Application read the mp3 songs from usb drive. when I run my application serial console using command "./myMusicPlayer" it works fine. I have added a script to run it on boot up to run my music player on boot up. On boot up it gives the error "could not initialize supporting library" and set the error "QMediaPlayer::ResourceError"

    Qt version: QT 5.7.1
    Embedded Device: Porter M2

    Please help me.

    P 1 Reply Last reply 12 Mar 2019, 14:22
    0
    • O Offline
      O Offline
      Omkareshwar
      wrote on 18 Mar 2019, 12:58 last edited by Omkareshwar
      #14

      Hello everyone,
      I got solution for this issue. I got dump for environment variable from application. They were different in both case(on boot-up and from terminal). I just exported that variables in my script and output was as per exception. Thank you every one for support and valuable time.

      1 Reply Last reply
      1
      • O Omkareshwar
        12 Mar 2019, 14:08

        Hello,

        I am making a music player for my embedded device. Application read the mp3 songs from usb drive. when I run my application serial console using command "./myMusicPlayer" it works fine. I have added a script to run it on boot up to run my music player on boot up. On boot up it gives the error "could not initialize supporting library" and set the error "QMediaPlayer::ResourceError"

        Qt version: QT 5.7.1
        Embedded Device: Porter M2

        Please help me.

        P Offline
        P Offline
        Pablo J. Rogina
        wrote on 12 Mar 2019, 14:22 last edited by
        #2

        @Omkareshwar it looks like when using the script, the supporting library is not available in the path the application is using...

        Upvote the answer(s) that helped you solve the issue
        Use "Topic Tools" button to mark your post as Solved
        Add screenshots via postimage.org
        Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

        1 Reply Last reply
        1
        • O Offline
          O Offline
          Omkareshwar
          wrote on 13 Mar 2019, 06:22 last edited by
          #3

          @Pablo-J-Rogina I tired exporting the LD_LIBRARY_PATH but it doesn't worked .

          J 1 Reply Last reply 13 Mar 2019, 06:28
          0
          • O Omkareshwar
            13 Mar 2019, 06:22

            @Pablo-J-Rogina I tired exporting the LD_LIBRARY_PATH but it doesn't worked .

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 13 Mar 2019, 06:28 last edited by
            #4

            @Omkareshwar Does it work if you use your script via serial console (instead of ./myMusicPlayer)? Also, wha tlibrary is it which cannot be initialised?

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

            1 Reply Last reply
            0
            • O Offline
              O Offline
              Omkareshwar
              wrote on 13 Mar 2019, 06:35 last edited by
              #5

              @jsulm Yes if I run command "/etc/init.d/musicplayer.sh" the application work as per expectation. About library, not conformed but seems like gstreamer library cannot be initialised.

              J 1 Reply Last reply 13 Mar 2019, 06:37
              0
              • O Omkareshwar
                13 Mar 2019, 06:35

                @jsulm Yes if I run command "/etc/init.d/musicplayer.sh" the application work as per expectation. About library, not conformed but seems like gstreamer library cannot be initialised.

                J Offline
                J Offline
                jsulm
                Lifetime Qt Champion
                wrote on 13 Mar 2019, 06:37 last edited by
                #6

                @Omkareshwar Does your device have an UI? If so, maybe you should start your app when the UI is initialised?

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

                1 Reply Last reply
                0
                • O Offline
                  O Offline
                  Omkareshwar
                  wrote on 13 Mar 2019, 06:49 last edited by
                  #7

                  @jsulm I have customized linux and there is no default UI for it.

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 13 Mar 2019, 22:49 last edited by
                    #8

                    Hi,

                    Do you have an X server running ?
                    At what level are you starting your application ?

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

                    O 1 Reply Last reply 14 Mar 2019, 12:36
                    0
                    • S SGaist
                      13 Mar 2019, 22:49

                      Hi,

                      Do you have an X server running ?
                      At what level are you starting your application ?

                      O Offline
                      O Offline
                      Omkareshwar
                      wrote on 14 Mar 2019, 12:36 last edited by Omkareshwar
                      #9

                      @SGaist No I am using wayland. I have placed my script at "/etc/init.d/musicplayer.sh" and created a link for file at "/etc/rc3.d/S95musicplayer.sh".

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 14 Mar 2019, 21:53 last edited by
                        #10

                        Then are you sure that wayland is started before your application ?

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

                        O 1 Reply Last reply 16 Mar 2019, 06:18
                        0
                        • S SGaist
                          14 Mar 2019, 21:53

                          Then are you sure that wayland is started before your application ?

                          O Offline
                          O Offline
                          Omkareshwar
                          wrote on 16 Mar 2019, 06:18 last edited by
                          #11

                          @SGaist No we use to stop the weston server before starting the application and application is launched by platform EGLFS using eglfs plugins (KMS/DRM).

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on 16 Mar 2019, 22:30 last edited by
                            #12

                            @Omkareshwar said in could not initialize supporting library:

                            @SGaist No I am using wayland. I have placed my script at "/etc/init.d/musicplayer.sh" and created a link for file at "/etc/rc3.d/S95musicplayer.sh".

                            @Omkareshwar said in could not initialize supporting library:

                            @SGaist No we use to stop the weston server before starting the application and application is launched by platform EGLFS using eglfs plugins (KMS/DRM).

                            These two statements look contradictory. So what exactly are you doing with your device ?

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

                            O 1 Reply Last reply 18 Mar 2019, 05:55
                            0
                            • S SGaist
                              16 Mar 2019, 22:30

                              @Omkareshwar said in could not initialize supporting library:

                              @SGaist No I am using wayland. I have placed my script at "/etc/init.d/musicplayer.sh" and created a link for file at "/etc/rc3.d/S95musicplayer.sh".

                              @Omkareshwar said in could not initialize supporting library:

                              @SGaist No we use to stop the weston server before starting the application and application is launched by platform EGLFS using eglfs plugins (KMS/DRM).

                              These two statements look contradictory. So what exactly are you doing with your device ?

                              O Offline
                              O Offline
                              Omkareshwar
                              wrote on 18 Mar 2019, 05:55 last edited by
                              #13

                              @SGaist file system is for wayland, but we have compiled plugin for eglfs and we are using that plugin for qt application platform, without westorn server. It is launching via eglfs, and to start application on bootup we have created a script which will launch the application with eglfs platform. Now problem is when we mount USB and play music via it error comes , and if we launch application via directly script it works perfect

                              1 Reply Last reply
                              0
                              • O Offline
                                O Offline
                                Omkareshwar
                                wrote on 18 Mar 2019, 12:58 last edited by Omkareshwar
                                #14

                                Hello everyone,
                                I got solution for this issue. I got dump for environment variable from application. They were different in both case(on boot-up and from terminal). I just exported that variables in my script and output was as per exception. Thank you every one for support and valuable time.

                                1 Reply Last reply
                                1

                                8/14

                                13 Mar 2019, 22:49

                                • Login

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