Link qt mediaplayer with vlc library instead of gstreamer



  • I want to play my video using vlc library instead of the gstreamer library in my qml application
    How can I add the vlc library as a plugin to use in qml application


  • Lifetime Qt Champion

    Hi,

    Take a look at the VLC Qt project and example.



  • In that project I cannot make use of the library installed. It says cannot open libVLCQtCore.so


  • Lifetime Qt Champion

    What is the exact error ?

    Where do you have that library located ?



  • error while loading shared libraries: libVLCQtCore.so.1.1: cannot open shared object file: No such file or directory

    In my pro file I have included
    INCLUDEPATH += /usr/include/vlc
    LIBS += -L /usr/local/lib/ -lVLCQtCore -lVLCQtWidgets -lVLCQtQml

    I have my libraries like

    lrwxrwxrwx 1 root root 19 Aug 30 13:49 libVLCQtCore.so -> libVLCQtCore.so.1.1
    lrwxrwxrwx 1 root root 21 Aug 30 13:49 libVLCQtCore.so.1.1 -> libVLCQtCore.so.1.1.0
    -rw-r--r-- 1 root root 3137487 Aug 26 15:44 libVLCQtCore.so.1.1.0
    lrwxrwxrwx 1 root root 18 Aug 30 13:49 libVLCQtQml.so -> libVLCQtQml.so.1.1
    lrwxrwxrwx 1 root root 20 Aug 30 13:49 libVLCQtQml.so.1.1 -> libVLCQtQml.so.1.1.0
    -rw-r--r-- 1 root root 3071155 Aug 26 15:44 libVLCQtQml.so.1.1.0
    lrwxrwxrwx 1 root root 22 Aug 30 13:49 libVLCQtWidgets.so -> libVLCQtWidgets.so.1.1
    lrwxrwxrwx 1 root root 24 Aug 30 13:49 libVLCQtWidgets.so.1.1 -> libVLCQtWidgets.so.1.1.0
    -rw-r--r-- 1 root root 1491671 Aug 30 13:43 libVLCQtWidgets.so.1.1.0


  • Lifetime Qt Champion

    There should be not space between -Land the path.

    To verify whether these libraries can be found at run time, call ldd your_app_name in a console.

    If it's not the case you can modify the LD_LIBRARY_PATH environment variable to add the path to your libraries to the loader search path.



  • I have corrected that and now I am not able to import VLCQt in my qml file


Log in to reply
 

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