gpt4 book ai didi

c++ - 执行示例项目时出现 libvlc-qt 错误

转载 作者:太空宇宙 更新时间:2023-11-04 11:52:15 25 4
gpt4 key购买 nike

我正在使用 qt5 和 ubuntu 13.04

我克隆了 git 存储库 (git clone git://github.com/ntadej/vlc-qt.git),然后按照自述文件中的步骤操作,这是输出:

tdsxv@tdsxv-M52S-S3P:~/VLCLibrary$ mkdir build
tdsxv@tdsxv-M52S-S3P:~/VLCLibrary$ cd build/
tdsxv@tdsxv-M52S-S3P:~/VLCLibrary/build$ cmake .. -DCMAKE_INSTALL_PREFIX=prefix
-- The C compiler identification is GNU 4.7.3
-- The CXX compiler identification is GNU 4.7.3
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Warning at /usr/share/cmake-2.8/Modules/FindQt4.cmake:615 (message):
/usr/bin/qmake reported QT_INSTALL_LIBS as "/usr/lib/i386-linux-gnu" but
QtCore could not be found there. Qt is NOT installed correctly for the
target build environment.
Call Stack (most recent call first):
CMakeLists.txt:92 (FIND_PACKAGE)


-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found unsuitable Qt version "5.0.1" from /usr/bin/qmake
VLC-Qt: Build with Qt5
VLC-Qt: Build with Widgets: ON
VLC-Qt: Build with QML: OFF
VLC-Qt: Build statically: OFF
-- Found LibVLC include-dir path: /usr/include
-- Found LibVLC library path:/usr/lib/libvlc.so
-- Found LibVLCcore library path:/usr/lib/libvlccore.so

VLC-Qt: You are compiling libvlc-qt 0.9.0

-- Git Version Patch: 8fb8b88

VLC-Qt: Build tests: OFF

-- Configuring done
-- Generating done
-- Build files have been written to: /home/tdsxv/VLCLibrary/build
tdsxv@tdsxv-M52S-S3P:~/VLCLibrary/build$ make
/usr/bin/cmake -H/home/tdsxv/VLCLibrary -B/home/tdsxv/VLCLibrary/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/tdsxv/VLCLibrary/build/CMakeFiles /home/tdsxv/VLCLibrary/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: ingresso nella directory "/home/tdsxv/VLCLibrary/build"
make -f src/core/CMakeFiles/vlc-qt_automoc.dir/build.make src/core/CMakeFiles/vlc-qt_automoc.dir/depend
make[2]: ingresso nella directory "/home/tdsxv/VLCLibrary/build"
cd /home/tdsxv/VLCLibrary/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tdsxv/VLCLibrary /home/tdsxv/VLCLibrary/src/core /home/tdsxv/VLCLibrary/build /home/tdsxv/VLCLibrary/build/src/core /home/tdsxv/VLCLibrary/build/src/core/CMakeFiles/vlc-qt_automoc.dir/DependInfo.cmake --color=
Scanning dependencies of target vlc-qt_automoc
make[2]: uscita dalla directory "/home/tdsxv/VLCLibrary/build"
make -f src/core/CMakeFiles/vlc-qt_automoc.dir/build.make src/core/CMakeFiles/vlc-qt_automoc.dir/build
make[2]: ingresso nella directory "/home/tdsxv/VLCLibrary/build"
/usr/bin/cmake -E cmake_progress_report /home/tdsxv/VLCLibrary/build/CMakeFiles 24
[ 4%] Automoc for target vlc-qt
cd /home/tdsxv/VLCLibrary/build/src/core && /usr/bin/cmake -E cmake_automoc /home/tdsxv/VLCLibrary/build/src/core/CMakeFiles/vlc-qt_automoc.dir/
Generating moc_Audio.cpp
Generating moc_Instance.cpp
Generating moc_Media.cpp
Generating moc_MediaList.cpp
Generating moc_MediaListPlayer.cpp
Generating moc_MediaPlayer.cpp
Generating moc_Video.cpp
make[2]: uscita dalla directory "/home/tdsxv/VLCLibrary/build"
/usr/bin/cmake -E cmake_progress_report /home/tdsxv/VLCLibrary/build/CMakeFiles 24
[ 4%] Built target vlc-qt_automoc
make -f src/core/CMakeFiles/vlc-qt.dir/build.make src/core/CMakeFiles/vlc-qt.dir/depend
make[2]: ingresso nella directory "/home/tdsxv/VLCLibrary/build"
/usr/bin/cmake -E cmake_progress_report /home/tdsxv/VLCLibrary/build/CMakeFiles 1
[ 8%] Generating qrc_logo.cpp
cd /home/tdsxv/VLCLibrary/build/src/core && /usr/lib/i386-linux-gnu/qt5/bin/rcc -name logo -o /home/tdsxv/VLCLibrary/build/src/core/qrc_logo.cpp /home/tdsxv/VLCLibrary/data/logo.qrc

...

/usr/bin/cmake -E cmake_progress_report /home/tdsxv/VLCLibrary/build/CMakeFiles 14
[ 62%] Building CXX object src/core/CMakeFiles/vlc-qt.dir/VideoMemoryStream.cpp.o
cd /home/tdsxv/VLCLibrary/build/src/core && /usr/bin/c++ -DQT_CORE_LIB -DQT_SHARED -DVLCQT_CORE_LIBRARY -D_REENTRANT -Dvlc_qt_EXPORTS -fPIE -fPIC -I/usr/include/vlc/plugins -I/home/tdsxv/VLCLibrary/src -I/home/tdsxv/VLCLibrary/src/core -I/home/tdsxv/VLCLibrary/build/src -I/usr/include/qt5 -I/usr/include/qt5/QtCore -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o CMakeFiles/vlc-qt.dir/VideoMemoryStream.cpp.o -c /home/tdsxv/VLCLibrary/src/core/VideoMemoryStream.cpp
/usr/bin/cmake -E cmake_progress_report /home/tdsxv/VLCLibrary/build/CMakeFiles 15
[ 66%] Building CXX object src/core/CMakeFiles/vlc-qt.dir/qrc_logo.cpp.o
cd /home/tdsxv/VLCLibrary/build/src/core && /usr/bin/c++ -DQT_CORE_LIB -DQT_SHARED -DVLCQT_CORE_LIBRARY -D_REENTRANT -Dvlc_qt_EXPORTS -fPIE -fPIC -I/usr/include/vlc/plugins -I/home/tdsxv/VLCLibrary/src -I/home/tdsxv/VLCLibrary/src/core -I/home/tdsxv/VLCLibrary/build/src -I/usr/include/qt5 -I/usr/include/qt5/QtCore -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o CMakeFiles/vlc-qt.dir/qrc_logo.cpp.o -c /home/tdsxv/VLCLibrary/build/src/core/qrc_logo.cpp
/usr/bin/cmake -E cmake_progress_report /home/tdsxv/VLCLibrary/build/CMakeFiles 16
[ 70%] Building CXX object src/core/CMakeFiles/vlc-qt.dir/vlc-qt_automoc.cpp.o
cd /home/tdsxv/VLCLibrary/build/src/core && /usr/bin/c++ -DQT_CORE_LIB -DQT_SHARED -DVLCQT_CORE_LIBRARY -D_REENTRANT -Dvlc_qt_EXPORTS -fPIE -fPIC -I/usr/include/vlc/plugins -I/home/tdsxv/VLCLibrary/src -I/home/tdsxv/VLCLibrary/src/core -I/home/tdsxv/VLCLibrary/build/src -I/usr/include/qt5 -I/usr/include/qt5/QtCore -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o CMakeFiles/vlc-qt.dir/vlc-qt_automoc.cpp.o -c /home/tdsxv/VLCLibrary/build/src/core/vlc-qt_automoc.cpp
Linking CXX shared library libvlc-qt.so
cd /home/tdsxv/VLCLibrary/build/src/core && /usr/bin/cmake -E cmake_link_script CMakeFiles/vlc-qt.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -fPIE -shared -Wl,-soname,libvlc-qt.so.0.9 -o libvlc-qt.so.0.9.0 CMakeFiles/vlc-qt.dir/Audio.cpp.o CMakeFiles/vlc-qt.dir/Common.cpp.o CMakeFiles/vlc-qt.dir/Enums.cpp.o CMakeFiles/vlc-qt.dir/Error.cpp.o CMakeFiles/vlc-qt.dir/Instance.cpp.o CMakeFiles/vlc-qt.dir/Media.cpp.o CMakeFiles/vlc-qt.dir/MediaList.cpp.o CMakeFiles/vlc-qt.dir/MediaListPlayer.cpp.o CMakeFiles/vlc-qt.dir/MediaPlayer.cpp.o CMakeFiles/vlc-qt.dir/MetaManager.cpp.o CMakeFiles/vlc-qt.dir/Video.cpp.o CMakeFiles/vlc-qt.dir/VideoFrame.cpp.o CMakeFiles/vlc-qt.dir/VideoMemoryStream.cpp.o CMakeFiles/vlc-qt.dir/qrc_logo.cpp.o CMakeFiles/vlc-qt.dir/vlc-qt_automoc.cpp.o /usr/lib/i386-linux-gnu/libQt5Core.so.5.0.1 -lvlc -lvlccore
cd /home/tdsxv/VLCLibrary/build/src/core && /usr/bin/cmake -E cmake_symlink_library libvlc-qt.so.0.9.0 libvlc-qt.so.0.9 libvlc-qt.so
make[2]: uscita dalla directory "/home/tdsxv/VLCLibrary/build"
/usr/bin/cmake -E cmake_progress_report /home/tdsxv/VLCLibrary/build/CMakeFiles 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
[ 70%] Built target vlc-qt
make -f src/widgets/CMakeFiles/vlc-qt-widgets_automoc.dir/build.make src/widgets/CMakeFiles/vlc-qt-widgets_automoc.dir/depend
make[2]: ingresso nella directory "/home/tdsxv/VLCLibrary/build"
cd /home/tdsxv/VLCLibrary/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tdsxv/VLCLibrary /home/tdsxv/VLCLibrary/src/widgets /home/tdsxv/VLCLibrary/build /home/tdsxv/VLCLibrary/build/src/widgets /home/tdsxv/VLCLibrary/build/src/widgets/CMakeFiles/vlc-qt-widgets_automoc.dir/DependInfo.cmake --color=
Scanning dependencies of target vlc-qt-widgets_automoc
make[2]: uscita dalla directory "/home/tdsxv/VLCLibrary/build"
make -f src/widgets/CMakeFiles/vlc-qt-widgets_automoc.dir/build.make src/widgets/CMakeFiles/vlc-qt-widgets_automoc.dir/build
make[2]: ingresso nella directory "/home/tdsxv/VLCLibrary/build"
/usr/bin/cmake -E cmake_progress_report /home/tdsxv/VLCLibrary/build/CMakeFiles 23
[ 75%] Automoc for target vlc-qt-widgets
cd /home/tdsxv/VLCLibrary/build/src/widgets && /usr/bin/cmake -E cmake_automoc /home/tdsxv/VLCLibrary/build/src/widgets/CMakeFiles/vlc-qt-widgets_automoc.dir/
Generating moc_ControlAudio.cpp
Generating moc_ControlVideo.cpp
Generating moc_WidgetSeek.cpp
Generating moc_WidgetVideo.cpp
Generating moc_WidgetVolumeSlider.cpp
make[2]: uscita dalla directory "/home/tdsxv/VLCLibrary/build"
/usr/bin/cmake -E cmake_progress_report /home/tdsxv/VLCLibrary/build/CMakeFiles 23
[ 75%] Built target vlc-qt-widgets_automoc
make -f src/widgets/CMakeFiles/vlc-qt-widgets.dir/build.make src/widgets/CMakeFiles/vlc-qt-widgets.dir/depend
make[2]: ingresso nella directory "/home/tdsxv/VLCLibrary/build"
cd /home/tdsxv/VLCLibrary/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tdsxv/VLCLibrary /home/tdsxv/VLCLibrary/src/widgets /home/tdsxv/VLCLibrary/build /home/tdsxv/VLCLibrary/build/src/widgets /home/tdsxv/VLCLibrary/build/src/widgets/CMakeFiles/vlc-qt-widgets.dir/DependInfo.cmake --color=
Scanning dependencies of target vlc-qt-widgets
make[2]: uscita dalla directory "/home/tdsxv/VLCLibrary/build"
make -f src/widgets/CMakeFiles/vlc-qt-widgets.dir/build.make src/widgets/CMakeFiles/vlc-qt-widgets.dir/build
make[2]: ingresso nella directory "/home/tdsxv/VLCLibrary/build"
/usr/bin/cmake -E cmake_progress_report /home/tdsxv/VLCLibrary/build/CMakeFiles 17
[ 79%] Building CXX object src/widgets/CMakeFiles/vlc-qt-widgets.dir/ControlAudio.cpp.o
cd /home/tdsxv/VLCLibrary/build/src/widgets && /usr/bin/c++ -DQT_CORE_LIB -DQT_GUI_LIB -DQT_SHARED -DQT_WIDGETS_LIB -DVLCQT_WIDGETS_LIBRARY -D_REENTRANT -Dvlc_qt_widgets_EXPORTS -fPIE -fPIC -I/home/tdsxv/VLCLibrary/src -I/home/tdsxv/VLCLibrary/src/core -I/home/tdsxv/VLCLibrary/src/widgets -I/home/tdsxv/VLCLibrary/build/src -I/usr/include/qt5 -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o CMakeFiles/vlc-qt-widgets.dir/ControlAudio.cpp.o -c /home/tdsxv/VLCLibrary/src/widgets/ControlAudio.cpp
/usr/bin/cmake -E cmake_progress_report /home/tdsxv/VLCLibrary/build/CMakeFiles 18
[ 83%] Building CXX object src/widgets/CMakeFiles/vlc-qt-widgets.dir/ControlVideo.cpp.o
cd /home/tdsxv/VLCLibrary/build/src/widgets && /usr/bin/c++ -DQT_CORE_LIB -DQT_GUI_LIB -DQT_SHARED -DQT_WIDGETS_LIB -DVLCQT_WIDGETS_LIBRARY -D_REENTRANT -Dvlc_qt_widgets_EXPORTS -fPIE -fPIC -I/home/tdsxv/VLCLibrary/src -I/home/tdsxv/VLCLibrary/src/core -I/home/tdsxv/VLCLibrary/src/widgets -I/home/tdsxv/VLCLibrary/build/src -I/usr/include/qt5 -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o CMakeFiles/vlc-qt-widgets.dir/ControlVideo.cpp.o -c /home/tdsxv/VLCLibrary/src/widgets/ControlVideo.cpp
/usr/bin/cmake -E cmake_progress_report /home/tdsxv/VLCLibrary/build/CMakeFiles 19
[ 87%] Building CXX object src/widgets/CMakeFiles/vlc-qt-widgets.dir/WidgetSeek.cpp.o
cd /home/tdsxv/VLCLibrary/build/src/widgets && /usr/bin/c++ -DQT_CORE_LIB -DQT_GUI_LIB -DQT_SHARED -DQT_WIDGETS_LIB -DVLCQT_WIDGETS_LIBRARY -D_REENTRANT -Dvlc_qt_widgets_EXPORTS -fPIE -fPIC -I/home/tdsxv/VLCLibrary/src -I/home/tdsxv/VLCLibrary/src/core -I/home/tdsxv/VLCLibrary/src/widgets -I/home/tdsxv/VLCLibrary/build/src -I/usr/include/qt5 -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o CMakeFiles/vlc-qt-widgets.dir/WidgetSeek.cpp.o -c /home/tdsxv/VLCLibrary/src/widgets/WidgetSeek.cpp
/usr/bin/cmake -E cmake_progress_report /home/tdsxv/VLCLibrary/build/CMakeFiles 20
[ 91%] Building CXX object src/widgets/CMakeFiles/vlc-qt-widgets.dir/WidgetVideo.cpp.o
cd /home/tdsxv/VLCLibrary/build/src/widgets && /usr/bin/c++ -DQT_CORE_LIB -DQT_GUI_LIB -DQT_SHARED -DQT_WIDGETS_LIB -DVLCQT_WIDGETS_LIBRARY -D_REENTRANT -Dvlc_qt_widgets_EXPORTS -fPIE -fPIC -I/home/tdsxv/VLCLibrary/src -I/home/tdsxv/VLCLibrary/src/core -I/home/tdsxv/VLCLibrary/src/widgets -I/home/tdsxv/VLCLibrary/build/src -I/usr/include/qt5 -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o CMakeFiles/vlc-qt-widgets.dir/WidgetVideo.cpp.o -c /home/tdsxv/VLCLibrary/src/widgets/WidgetVideo.cpp
/usr/bin/cmake -E cmake_progress_report /home/tdsxv/VLCLibrary/build/CMakeFiles 21
[ 95%] Building CXX object src/widgets/CMakeFiles/vlc-qt-widgets.dir/WidgetVolumeSlider.cpp.o
cd /home/tdsxv/VLCLibrary/build/src/widgets && /usr/bin/c++ -DQT_CORE_LIB -DQT_GUI_LIB -DQT_SHARED -DQT_WIDGETS_LIB -DVLCQT_WIDGETS_LIBRARY -D_REENTRANT -Dvlc_qt_widgets_EXPORTS -fPIE -fPIC -I/home/tdsxv/VLCLibrary/src -I/home/tdsxv/VLCLibrary/src/core -I/home/tdsxv/VLCLibrary/src/widgets -I/home/tdsxv/VLCLibrary/build/src -I/usr/include/qt5 -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o CMakeFiles/vlc-qt-widgets.dir/WidgetVolumeSlider.cpp.o -c /home/tdsxv/VLCLibrary/src/widgets/WidgetVolumeSlider.cpp
/usr/bin/cmake -E cmake_progress_report /home/tdsxv/VLCLibrary/build/CMakeFiles 22
[100%] Building CXX object src/widgets/CMakeFiles/vlc-qt-widgets.dir/vlc-qt-widgets_automoc.cpp.o
cd /home/tdsxv/VLCLibrary/build/src/widgets && /usr/bin/c++ -DQT_CORE_LIB -DQT_GUI_LIB -DQT_SHARED -DQT_WIDGETS_LIB -DVLCQT_WIDGETS_LIBRARY -D_REENTRANT -Dvlc_qt_widgets_EXPORTS -fPIE -fPIC -I/home/tdsxv/VLCLibrary/src -I/home/tdsxv/VLCLibrary/src/core -I/home/tdsxv/VLCLibrary/src/widgets -I/home/tdsxv/VLCLibrary/build/src -I/usr/include/qt5 -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -o CMakeFiles/vlc-qt-widgets.dir/vlc-qt-widgets_automoc.cpp.o -c /home/tdsxv/VLCLibrary/build/src/widgets/vlc-qt-widgets_automoc.cpp
Linking CXX shared library libvlc-qt-widgets.so
cd /home/tdsxv/VLCLibrary/build/src/widgets && /usr/bin/cmake -E cmake_link_script CMakeFiles/vlc-qt-widgets.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -fPIE -shared -Wl,-soname,libvlc-qt-widgets.so.0.9 -o libvlc-qt-widgets.so.0.9.0 CMakeFiles/vlc-qt-widgets.dir/ControlAudio.cpp.o CMakeFiles/vlc-qt-widgets.dir/ControlVideo.cpp.o CMakeFiles/vlc-qt-widgets.dir/WidgetSeek.cpp.o CMakeFiles/vlc-qt-widgets.dir/WidgetVideo.cpp.o CMakeFiles/vlc-qt-widgets.dir/WidgetVolumeSlider.cpp.o CMakeFiles/vlc-qt-widgets.dir/vlc-qt-widgets_automoc.cpp.o -L/home/tdsxv/VLCLibrary/build/src/core /usr/lib/i386-linux-gnu/libQt5Widgets.so.5.0.1 -lvlc-qt /usr/lib/i386-linux-gnu/libQt5Gui.so.5.0.1 /usr/lib/i386-linux-gnu/libQt5Core.so.5.0.1 -Wl,-rpath,/home/tdsxv/VLCLibrary/build/src/core:
cd /home/tdsxv/VLCLibrary/build/src/widgets && /usr/bin/cmake -E cmake_symlink_library libvlc-qt-widgets.so.0.9.0 libvlc-qt-widgets.so.0.9 libvlc-qt-widgets.so
make[2]: uscita dalla directory "/home/tdsxv/VLCLibrary/build"
/usr/bin/cmake -E cmake_progress_report /home/tdsxv/VLCLibrary/build/CMakeFiles 17 18 19 20 21 22
[100%] Built target vlc-qt-widgets
make[1]: uscita dalla directory "/home/tdsxv/VLCLibrary/build"
/usr/bin/cmake -E cmake_progress_start /home/tdsxv/VLCLibrary/build/CMakeFiles 0
tdsxv@tdsxv-M52S-S3P:~/VLCLibrary/build$ make install
/usr/bin/cmake -H/home/tdsxv/VLCLibrary -B/home/tdsxv/VLCLibrary/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/tdsxv/VLCLibrary/build/CMakeFiles /home/tdsxv/VLCLibrary/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: ingresso nella directory "/home/tdsxv/VLCLibrary/build"
make -f src/core/CMakeFiles/vlc-qt_automoc.dir/build.make src/core/CMakeFiles/vlc-qt_automoc.dir/depend
make[2]: ingresso nella directory "/home/tdsxv/VLCLibrary/build"
cd /home/tdsxv/VLCLibrary/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tdsxv/VLCLibrary /home/tdsxv/VLCLibrary/src/core /home/tdsxv/VLCLibrary/build /home/tdsxv/VLCLibrary/build/src/core /home/tdsxv/VLCLibrary/build/src/core/CMakeFiles/vlc-qt_automoc.dir/DependInfo.cmake --color=
make[2]: uscita dalla directory "/home/tdsxv/VLCLibrary/build"
make -f src/core/CMakeFiles/vlc-qt_automoc.dir/build.make src/core/CMakeFiles/vlc-qt_automoc.dir/build
make[2]: ingresso nella directory "/home/tdsxv/VLCLibrary/build"
/usr/bin/cmake -E cmake_progress_report /home/tdsxv/VLCLibrary/build/CMakeFiles 24
[ 4%] Automoc for target vlc-qt
cd /home/tdsxv/VLCLibrary/build/src/core && /usr/bin/cmake -E cmake_automoc /home/tdsxv/VLCLibrary/build/src/core/CMakeFiles/vlc-qt_automoc.dir/
make[2]: uscita dalla directory "/home/tdsxv/VLCLibrary/build"
/usr/bin/cmake -E cmake_progress_report /home/tdsxv/VLCLibrary/build/CMakeFiles 24
[ 4%] Built target vlc-qt_automoc
make -f src/core/CMakeFiles/vlc-qt.dir/build.make src/core/CMakeFiles/vlc-qt.dir/depend
make[2]: ingresso nella directory "/home/tdsxv/VLCLibrary/build"
cd /home/tdsxv/VLCLibrary/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tdsxv/VLCLibrary /home/tdsxv/VLCLibrary/src/core /home/tdsxv/VLCLibrary/build /home/tdsxv/VLCLibrary/build/src/core /home/tdsxv/VLCLibrary/build/src/core/CMakeFiles/vlc-qt.dir/DependInfo.cmake --color=
make[2]: uscita dalla directory "/home/tdsxv/VLCLibrary/build"
make -f src/core/CMakeFiles/vlc-qt.dir/build.make src/core/CMakeFiles/vlc-qt.dir/build
make[2]: ingresso nella directory "/home/tdsxv/VLCLibrary/build"
make[2]: Nessuna operazione da eseguire per "src/core/CMakeFiles/vlc-qt.dir/build".
make[2]: uscita dalla directory "/home/tdsxv/VLCLibrary/build"
/usr/bin/cmake -E cmake_progress_report /home/tdsxv/VLCLibrary/build/CMakeFiles 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
[ 70%] Built target vlc-qt
make -f src/widgets/CMakeFiles/vlc-qt-widgets_automoc.dir/build.make src/widgets/CMakeFiles/vlc-qt-widgets_automoc.dir/depend
make[2]: ingresso nella directory "/home/tdsxv/VLCLibrary/build"
cd /home/tdsxv/VLCLibrary/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tdsxv/VLCLibrary /home/tdsxv/VLCLibrary/src/widgets /home/tdsxv/VLCLibrary/build /home/tdsxv/VLCLibrary/build/src/widgets /home/tdsxv/VLCLibrary/build/src/widgets/CMakeFiles/vlc-qt-widgets_automoc.dir/DependInfo.cmake --color=
make[2]: uscita dalla directory "/home/tdsxv/VLCLibrary/build"
make -f src/widgets/CMakeFiles/vlc-qt-widgets_automoc.dir/build.make src/widgets/CMakeFiles/vlc-qt-widgets_automoc.dir/build
make[2]: ingresso nella directory "/home/tdsxv/VLCLibrary/build"
/usr/bin/cmake -E cmake_progress_report /home/tdsxv/VLCLibrary/build/CMakeFiles 23
[ 75%] Automoc for target vlc-qt-widgets
cd /home/tdsxv/VLCLibrary/build/src/widgets && /usr/bin/cmake -E cmake_automoc /home/tdsxv/VLCLibrary/build/src/widgets/CMakeFiles/vlc-qt-widgets_automoc.dir/
make[2]: uscita dalla directory "/home/tdsxv/VLCLibrary/build"
/usr/bin/cmake -E cmake_progress_report /home/tdsxv/VLCLibrary/build/CMakeFiles 23
[ 75%] Built target vlc-qt-widgets_automoc
make -f src/widgets/CMakeFiles/vlc-qt-widgets.dir/build.make src/widgets/CMakeFiles/vlc-qt-widgets.dir/depend
make[2]: ingresso nella directory "/home/tdsxv/VLCLibrary/build"
cd /home/tdsxv/VLCLibrary/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tdsxv/VLCLibrary /home/tdsxv/VLCLibrary/src/widgets /home/tdsxv/VLCLibrary/build /home/tdsxv/VLCLibrary/build/src/widgets /home/tdsxv/VLCLibrary/build/src/widgets/CMakeFiles/vlc-qt-widgets.dir/DependInfo.cmake --color=
make[2]: uscita dalla directory "/home/tdsxv/VLCLibrary/build"
make -f src/widgets/CMakeFiles/vlc-qt-widgets.dir/build.make src/widgets/CMakeFiles/vlc-qt-widgets.dir/build
make[2]: ingresso nella directory "/home/tdsxv/VLCLibrary/build"
make[2]: Nessuna operazione da eseguire per "src/widgets/CMakeFiles/vlc-qt-widgets.dir/build".
make[2]: uscita dalla directory "/home/tdsxv/VLCLibrary/build"
/usr/bin/cmake -E cmake_progress_report /home/tdsxv/VLCLibrary/build/CMakeFiles 17 18 19 20 21 22
[100%] Built target vlc-qt-widgets
make[1]: uscita dalla directory "/home/tdsxv/VLCLibrary/build"
/usr/bin/cmake -E cmake_progress_start /home/tdsxv/VLCLibrary/build/CMakeFiles 0
make -f CMakeFiles/Makefile2 preinstall
make[1]: ingresso nella directory "/home/tdsxv/VLCLibrary/build"
make[1]: Nessuna operazione da eseguire per "preinstall".
make[1]: uscita dalla directory "/home/tdsxv/VLCLibrary/build"
Install the project...
/usr/bin/cmake -P cmake_install.cmake
-- Install configuration: ""
-- Installing: /home/tdsxv/VLCLibrary/build/prefix/lib/libvlc-qt.so.0.9.0
-- Installing: /home/tdsxv/VLCLibrary/build/prefix/lib/libvlc-qt.so.0.9
-- Installing: /home/tdsxv/VLCLibrary/build/prefix/lib/libvlc-qt.so
-- Installing: /home/tdsxv/VLCLibrary/build/prefix/include/vlc-qt/Audio.h
-- Installing: /home/tdsxv/VLCLibrary/build/prefix/include/vlc-qt/Common.h
-- Installing: /home/tdsxv/VLCLibrary/build/prefix/include/vlc-qt/Enums.h
-- Installing: /home/tdsxv/VLCLibrary/build/prefix/include/vlc-qt/Error.h
-- Installing: /home/tdsxv/VLCLibrary/build/prefix/include/vlc-qt/Instance.h
-- Installing: /home/tdsxv/VLCLibrary/build/prefix/include/vlc-qt/Media.h
-- Installing: /home/tdsxv/VLCLibrary/build/prefix/include/vlc-qt/MediaList.h
-- Installing: /home/tdsxv/VLCLibrary/build/prefix/include/vlc-qt/MediaListPlayer.h
-- Installing: /home/tdsxv/VLCLibrary/build/prefix/include/vlc-qt/MediaPlayer.h
-- Installing: /home/tdsxv/VLCLibrary/build/prefix/include/vlc-qt/MetaManager.h
-- Installing: /home/tdsxv/VLCLibrary/build/prefix/include/vlc-qt/SharedExportCore.h
-- Installing: /home/tdsxv/VLCLibrary/build/prefix/include/vlc-qt/Video.h
-- Installing: /home/tdsxv/VLCLibrary/build/prefix/include/vlc-qt/VideoDelegate.h
-- Installing: /home/tdsxv/VLCLibrary/build/prefix/include/vlc-qt/VideoFrame.h
-- Installing: /home/tdsxv/VLCLibrary/build/prefix/include/vlc-qt/VideoMemoryStream.h
-- Installing: /home/tdsxv/VLCLibrary/build/prefix/include/vlc-qt/Config.h
-- Installing: /home/tdsxv/VLCLibrary/build/prefix/lib/libvlc-qt-widgets.so.0.9.0
-- Installing: /home/tdsxv/VLCLibrary/build/prefix/lib/libvlc-qt-widgets.so.0.9
-- Installing: /home/tdsxv/VLCLibrary/build/prefix/lib/libvlc-qt-widgets.so
-- Removed runtime path from "/home/tdsxv/VLCLibrary/build/prefix/lib/libvlc-qt-widgets.so.0.9.0"
-- Installing: /home/tdsxv/VLCLibrary/build/prefix/include/vlc-qt/ControlAudio.h
-- Installing: /home/tdsxv/VLCLibrary/build/prefix/include/vlc-qt/ControlVideo.h
-- Installing: /home/tdsxv/VLCLibrary/build/prefix/include/vlc-qt/SharedExportWidgets.h
-- Installing: /home/tdsxv/VLCLibrary/build/prefix/include/vlc-qt/WidgetSeek.h
-- Installing: /home/tdsxv/VLCLibrary/build/prefix/include/vlc-qt/WidgetVideo.h
-- Installing: /home/tdsxv/VLCLibrary/build/prefix/include/vlc-qt/WidgetVolumeSlider.h
-- Installing: /home/tdsxv/VLCLibrary/build/prefix/lib/pkgconfig/libvlc-qt.pc
tdsxv@tdsxv-M52S-S3P:~/VLCLibrary/build$

然后我用 qtcreator 打开示例(演示播放器)。我编译它但是当我尝试执行时出现错误:

Starting /home/tdsxv/VLCLibrary/examples/demo-player-Debug/src/demo-player...
The program has unexpectedly finished.
/home/tdsxv/VLCLibrary/examples/demo-player-Debug/src/demo-player exited with code 0

如果我尝试在 Debug模式下运行它,我会得到错误:

The inferior stopped because it received a signal from the Operating System.

Signal name :
SIGSEGV
Signal meaning :
Segmentation fault

这是 .pro 文件:

TARGET      = demo-player
TEMPLATE = app

QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

SOURCES += main.cpp\
DemoPlayer.cpp

HEADERS += DemoPlayer.h

FORMS += DemoPlayer.ui

#LIBS += -lvlc-qt -lvlc-qt-widgets

# Edit below for custom library location
LIBS += -L/home/tdsxv/VLCLibrary/build/prefix/include/vlc-qt -lvlc-qt -lvlc-qt-widgets
INCLUDEPATH += /home/tdsxv/VLCLibrary/build/prefix/include/vlc-qt

为什么这个程序不起作用?

最佳答案

对于所有来自互联网的新手,以节省他们的时间。

当您使用 apt-get 安装 libvlc-qt* 时,您将拥有使用 QT4 编译的库(默认情况下)。
问题是您的应用试图同时使用 QT4 和 QT5。
我的解决方案:

    /li>
  1. sudo add-apt-repository ppa:videolan/stable-daily
    sudo apt-get update
    sudo aptitude install vlc vlc-datasudo aptitude install libvlc-dev libvlccore-dev

  2. 从官方 git 库下载 vlc-qt 库的源代码 https://github.com/ntadej/vlc-qt并使用 QT5 自行构建并运行 make install

  3. sudo ldconfig -v
    <强> ldconfig 创建必要的链接和缓存(供运行时链接器 ld.so 使用)到在命令行指定的目录中找到的最新共享库,在文件/etc/ld.so 中。 conf,并在受信任的目录(/usr/lib 和/lib)中。

  4. 重建过时的模块缓存并指向 Qt4 二进制文件。您可以在命令行上重置它:

     sudo /usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins/    

    或者传递给vlc选项:

    --reset-plugins-cache

经过这些步骤,它终于成功了。

关于c++ - 执行示例项目时出现 libvlc-qt 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17639891/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com