C++ VlcQt中功能的未定义引用(安装后)

C++ VlcQt中功能的未定义引用(安装后),c++,qt,vlc-qt,C++,Qt,Vlc Qt,我最近为ubuntu 16.04安装了VlcQt库,但当我尝试使用它时,我得到的只是对“some_function()”的未定义引用 目前我正在尝试向QML公开视频播放器 Main.cpp #include <QGuiApplication> #include <VLCQtCore/Common.h> #include <VLCQtQml/QmlVideoPlayer.h> #include "Controller.h" int main(int argc

我最近为ubuntu 16.04安装了VlcQt库,但当我尝试使用它时,我得到的只是
对“some_function()”的未定义引用

目前我正在尝试向QML公开视频播放器

Main.cpp

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

#include "Controller.h"

int main(int argc, char *argv[])
{
    QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);

    QGuiApplication app(argc, argv);

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

    Controller controller;
    QQuickWindow *quickWindow = qobject_cast<QQuickWindow *>(controller.view());
    quickWindow->show();

    return app.exec();
}
//编辑: 这就是我在.pro文件中添加libs的方法,已经尝试过了
INCLUDEPATH

LIBS += -lvlccore -lvlc

Intellisense检测API,因为您包含了相应的标头。然而,这并不意味着你的链接器会找到这个库并链接到它。可能是@vahancho的重复。那么我该怎么做呢?我包含了一个包含.so文件的文件夹help@MikevanDyke不幸的是,我的.pro文件中已经有了这个问题,但不知何故,仍然存在同样的问题。已经尝试了该线程中链接的所有内容,但仍然不起作用
LIBS += -lvlccore -lvlc