could not initialize supporting library
-
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 M2Please help me.
-
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. -
@Omkareshwar it looks like when using the script, the supporting library is not available in the path the application is using...
-
@Pablo-J-Rogina I tired exporting the LD_LIBRARY_PATH but it doesn't worked .
-
@Omkareshwar Does it work if you use your script via serial console (instead of ./myMusicPlayer)? Also, wha tlibrary is it which cannot be initialised?
-
@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.
-
@Omkareshwar Does your device have an UI? If so, maybe you should start your app when the UI is initialised?
-
@jsulm I have customized linux and there is no default UI for it.
-
Hi,
Do you have an X server running ?
At what level are you starting your application ? -
Then are you sure that wayland is started before your application ?
-
@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 ?
-
@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
-
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.