我正在使用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打开示例(demo-player)。我编译它,但当我尝试执行时,我得到错误:
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
如果我尝试在调试模式下运行它,我会收到错误:
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
为什么这个程序不起作用?
答案 0 :(得分:1)
对于所有来自互联网的新人来说,节省他们的时间。
使用 apt-get 安装libvlc-qt *时,您将使用QT4编译库(默认情况下)。
问题是你的应用程序试图同时使用QT4和QT5
我的解决方案:
sudo aptitude install qtbase5-dev qt5-default qtdeclarative5-dev qt5-qmake libqt5opengl5-dev libqt5gui5 libqt5quickwidgets5 libqt5widgets5 libqt5x11extras5-dev libqt5location5 libqt5core5a libqt53d5
sudo add-apt-repository ppa:videolan/stable-daily
sudo apt-get update
sudo aptitude install vlc vlc-data
sudo aptitude install libvlc-dev libvlccore-dev
从官方git reporitory https://github.com/ntadej/vlc-qt下载vlc-qt库的源代码
并使用QT5自行构建并运行make install
sudo ldconfig -v
ldconfig 创建必要的链接和缓存(供运行时链接程序ld.so使用)到命令行中指定的目录中找到的最新共享库,文件/etc/ld.so.conf,以及可信目录(/ usr / lib和/ lib)。
重建过时的模块缓存,指向Qt4二进制文件。您可以在命令行上重置它:
sudo /usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins/
或者将选项传递给vlc:
--reset-plugins-cache
完成这些步骤后,它终于有效了。