QT Linux executable generation



  • I am using QT 5.8.0 and 5.2.1 on nVidia TX1 embedded board.
    I have made one test application qith Qtgstreamer and QML.
    https://drive.google.com/open?id=0B8d7zQv-G71oM1JONzlpR2t1OWc

    I can successfully run this app with Qt creator. But when i tried to run this app from terminal by
    ./qmlplayer2 in build-xxx-debug directory i got following error

    QML debugging is enabled. Only use this in a safe environment.
    Failed to create qtquick2videosink. Make sure it is installed correctly
    
    (qmlplayer2:8517): GStreamer-CRITICAL **: gst_bin_add: assertion 'GST_IS_ELEMENT (element)' failed
    
    (qmlplayer2:8517): GStreamer-CRITICAL **: gst_element_link_pads_filtered: assertion 'GST_IS_ELEMENT (dest)' failed
    

    So what is missing?
    i also tried adding LD_LIBRARY_PATH in project Build Environment setting but still getting this error.



  • @RiteshPanchal

    Qtcreator sets up an environment with all the required Qt libraries, but your distro may not have them installed for general use by default.

    Run ldd on your executable and that will tell you if you are missing any libraries.

    Mike



  • Thanks for the Reply.
    here is output of ldd

    ldd qmlplayer2 
    	linux-vdso32.so.1 =>  (0xf7449000)
    	libQt5GStreamerQuick-1.0.so.0 => /usr/lib/arm-linux-gnueabihf/libQt5GStreamerQuick-1.0.so.0 (0xf7412000)
    	libQt5Qml.so.5 => /usr/local/lib/libQt5Qml.so.5 (0xf7184000)
    	libQt5GStreamer-1.0.so.0 => /usr/lib/arm-linux-gnueabihf/libQt5GStreamer-1.0.so.0 (0xf7133000)
    	libQt5GLib-2.0.so.0 => /usr/lib/arm-linux-gnueabihf/libQt5GLib-2.0.so.0 (0xf710a000)
    	libQt5Gui.so.5 => /usr/local/lib/libQt5Gui.so.5 (0xf6db1000)
    	libQt5Core.so.5 => /usr/local/lib/libQt5Core.so.5 (0xf699b000)
    	libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0xf68f0000)
    	libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xf68cf000)
    	libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xf67f1000)
    	libQt5Quick.so.5 => /usr/local/lib/libQt5Quick.so.5 (0xf6556000)
    	libQt5Network.so.5 => /usr/local/lib/libQt5Network.so.5 (0xf648f000)
    	libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xf6473000)
    	libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xf6407000)
    	/lib/ld-linux-armhf.so.3 (0xab17d000)
    	libgobject-2.0.so.0 => /usr/lib/arm-linux-gnueabihf/libgobject-2.0.so.0 (0xf63ca000)
    	libglib-2.0.so.0 => /lib/arm-linux-gnueabihf/libglib-2.0.so.0 (0xf6302000)
    	libgstreamer-1.0.so.0 => /usr/lib/arm-linux-gnueabihf/libgstreamer-1.0.so.0 (0xf6249000)
    	libgstaudio-1.0.so.0 => /usr/lib/arm-linux-gnueabihf/libgstaudio-1.0.so.0 (0xf620a000)
    	libgstvideo-1.0.so.0 => /usr/lib/arm-linux-gnueabihf/libgstvideo-1.0.so.0 (0xf61d2000)
    	libgstpbutils-1.0.so.0 => /usr/lib/arm-linux-gnueabihf/libgstpbutils-1.0.so.0 (0xf61af000)
    	libpng12.so.0 => /lib/arm-linux-gnueabihf/libpng12.so.0 (0xf618f000)
    	libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0xf6174000)
    	libGL.so.1 => /usr/lib/arm-linux-gnueabihf/tegra/libGL.so.1 (0xf60cb000)
    	libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xf60c0000)
    	librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xf60b2000)
    	libffi.so.6 => /usr/lib/arm-linux-gnueabihf/libffi.so.6 (0xf60a4000)
    	libpcre.so.3 => /lib/arm-linux-gnueabihf/libpcre.so.3 (0xf606c000)
    	libgmodule-2.0.so.0 => /usr/lib/arm-linux-gnueabihf/libgmodule-2.0.so.0 (0xf6060000)
    	libgsttag-1.0.so.0 => /usr/lib/arm-linux-gnueabihf/libgsttag-1.0.so.0 (0xf602f000)
    	libgstbase-1.0.so.0 => /usr/lib/arm-linux-gnueabihf/libgstbase-1.0.so.0 (0xf5fed000)
    	liborc-0.4.so.0 => /usr/lib/arm-linux-gnueabihf/liborc-0.4.so.0 (0xf5f95000)
    	libnvidia-tls.so.23.2.0 => /usr/lib/arm-linux-gnueabihf/tegra/libnvidia-tls.so.23.2.0 (0xf5f89000)
    	libnvidia-glcore.so.23.2.0 => /usr/lib/arm-linux-gnueabihf/tegra/libnvidia-glcore.so.23.2.0 (0xf4a0a000)
    	libX11.so.6 => /usr/lib/arm-linux-gnueabihf/libX11.so.6 (0xf4924000)
    	libXext.so.6 => /usr/lib/arm-linux-gnueabihf/libXext.so.6 (0xf4912000)
    	libnvidia-rmapi-tegra.so.23.2.0 => /usr/lib/arm-linux-gnueabihf/tegra/libnvidia-rmapi-tegra.so.23.2.0 (0xf48fe000)
    	libxcb.so.1 => /usr/lib/arm-linux-gnueabihf/libxcb.so.1 (0xf48e4000)
    	libnvrm_gpu.so => /usr/lib/arm-linux-gnueabihf/tegra/libnvrm_gpu.so (0xf48cc000)
    	libXau.so.6 => /usr/lib/arm-linux-gnueabihf/libXau.so.6 (0xf48c1000)
    	libXdmcp.so.6 => /usr/lib/arm-linux-gnueabihf/libXdmcp.so.6 (0xf48b5000)
    	libnvrm.so => /usr/lib/arm-linux-gnueabihf/tegra/libnvrm.so (0xf4899000)
    	libnvos.so => /usr/lib/arm-linux-gnueabihf/tegra/libnvos.so (0xf4882000)
    

    But i don't understand which library i am missing for this error?



  • @RiteshPanchal

    My mistake, everything is there. Sorry, I shouldn't be offering advice when I'm as tired as I was last night.

    Looking closer at your error message, you are getting an assertion triggered in gst_bin_add and another in gst_element_link_pads_filtered.

    I've never used gstreamer, so you'll have to wait for someone else to point out something relevant. I'd look into whatever you're feeding it if it was me though.

    Mike


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.