Skip to content

QML module not found (VLCQt) in Qt_5_12_2_MSVC2015_64bit Windows 10 and VlcQmlVideoPlayer is deprecated #25

@inejose

Description

@inejose

Hi,

I am trying to integrate this VLCQt QML project but I am not able to recognize the library.

In the main.cpp I get the following warning on the "VlcQmlVideoPlayer::registerPlugin();":
VlcQmlVideoPlayer is deprecated

In the qml:
import VLCQt 1.1 //QML module not found (VLCQt)

Compiler and Qt:
Qt_5_12_2_MSVC2015_64bit

I downloaded VLC-Qt_1.1.0_win64_msvc2015 binaries and copied the content to my src/lib/vlcqt folder.

image

I also added to my \build-hmi-Desktop_Qt_5_12_2_MSVC2015_64bit-Debug\debug folder to be able to debug.

Please, has anyone managed to integrate the libraries without compiling the sources? I would be very grateful for an answer or a clear example, we have planned a project thinking about this utility and we have been several days without being able to advance, we do not have much experience integrating external libraries.

Thank you very much.

These are my source files:

hmi.pro

LIBS += -lVLCQtCore -lVLCQtQML
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/lib/vlcqt/lib/ -lVLCQtCore -lVLCQtQML
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/lib/vlcqt/lib/ -lVLCQtCored -lVLCQtQML
INCLUDEPATH += $$PWD/lib/vlcqt/include
DEPENDPATH += $$PWD/lib/vlcqt/include

main.cpp

#include <VLCQtCore/Common.h>
#include <VLCQtQml/QmlVideoPlayer.h>

int main(int argc, char *argv[])
{
    QQmlDebuggingEnabler enabler;
    QGuiApplication app(argc, argv);

    VlcCommon::setPluginPath(app.applicationDirPath() + "/plugins");
    VlcQmlVideoPlayer::registerPlugin();

    return app.exec();
}

widget.qml

import QtQuick 2.0
import VLCQt 1.1  //Creator shows an error here: QML module not found (VLCQt)

Item {
    VlcVideoPlayer {
        id: vidwidget
        anchors.fill: parent
        url: "https://movietrailers.apple.com/movies/paramount/the-contractor/the-contractor-trailer-1_h720p.mov"
    }
}

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions