QT += core guigreaterThan(QT_MAJOR_VERSION, 4): QT += widgetsTARGET = VLCProjectTEMPLATE = appINCLUDE += vlc-qtSOURCES += main.cpp\ widget.cppHEADERS += widget.hFORMS += widget.uiLIBS += -Llibvlc-qt#LIBS += libvlc-qt.dll#LIBS += libvlc-qt.dll.a
C:\Users\Leo\Documents\Projects\build-VLCProject-Desktop_Qt_5_0_2_MinGW_32bit-Debug\debug\widget.o:-1: In function `ZN6WidgetC2EP7QWidget':C:\Users\Leo\Documents\Projects\VLCProject\widget.cpp:18: ошибка: undefined reference to `_imp___ZN11VlcInstanceC1ERK11QStringListP7QObject'C:\Users\Leo\Documents\Projects\VLCProject\widget.cpp:19: ошибка: undefined reference to `_imp___ZN8VlcMediaC1ERK7QStringRKbP11VlcInstance'
:-1: ошибка: cannot find -lvlc-qt.dll:-1: ошибка: cannot find -lvlc-qt.dll.acollect2.exe:-1: ошибка: error: ld returned 1 exit status
VlcInstance *instance = new VlcInstance(args, this);VlcMedia *media = new VlcMedia("Techno-CandyDance.flv", true, instance);VlcMediaPlayer *player = new VlcMediaPlayer(instance);player->open(media);player->play();
LIBS += -llibvlc -llibvlc-qt -llibvlccore
:-1: ошибка: cannot find -llibvlc:-1: ошибка: cannot find -llibvlc-qt
LIBS += -Lpath/to/vlc/libs
QT += core gui widgets#greaterThan(QT_MAJOR_VERSION, 4): QT += widgetsTARGET = VLCProjectTEMPLATE = appSOURCES += main.cpp\ widget.cppHEADERS += widget.hFORMS += widget.uiLIBS += -lvlc-qt -lvlc-qt-widgetsINCLUDEPATH += C:/Users/Leo/Documents/Projects/VLCProject/vlc-qtLIBS += -LC:/Users/Leo/Documents/Projects/VLCProject/vlc-qt