- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在使用 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。
我的解决方案:
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 库下载 vlc-qt 库的源代码 https://github.com/ntadej/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
经过这些步骤,它终于成功了。
关于c++ - 执行示例项目时出现 libvlc-qt 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17639891/
我正在使用 Qt 语言学家翻译一个 ui 文件。我使用 lupdate 获取了它的 ts 文件,并翻译了这些单词和短语。现在我想将它添加到我的代码中,但我从它的教程中发现我似乎必须将 tr() 添加到
我想在 Qt Creator 中创建下面的简单控制台应用程序: #include int main(int argc, char* argv[]) { std::cout #include
我想将 libQtGui.so.4 libQtNetwork.so.4 和 libQtCore.so.4 包含在与我的应用程序所在的目录相同的目录中。我如何让 Qt 理解这一点? y 目的是拥有一个使
我有一个充满 QPushButtons 和 QLabels 以及各种其他有趣的 QWidget 的窗口,所有这些都使用各种 QLayout 对象动态布局...而我想做的是偶尔制作一些这些小部件变得不可
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 这个问题似乎与 help center 中定义的范围内的编程无关。 . 关闭 7 年前。 Improve
我想知道 Qt 是否将下面代码的“版本 1”之类的东西放在堆上?在版本 1 中,Qt 会将 dirStuff 放在堆栈上还是堆上?我问是因为我有一种感觉,Java 将所有数据结构放在堆上......不
这个问题是关于 Qt Installer Framework 2.0 版的。 在这一点上,使用 Qt 安装程序框架的人都知道,如果不进行自定义,您根本无法通过安装程序覆盖现有安装。这样做显然是为了解决
关闭。这个问题是off-topic .它目前不接受答案。 想改善这个问题吗? Update the question所以它是 on-topic对于堆栈溢出。 8年前关闭。 Improve this q
因为我在我的计算机上安装了 Qt 4.8.4 和 Qt 5.1,所以我遇到了问题。 当只有 Qt 4.8.4 存在时,一切都很好。 当我添加 Qt 5.1 时,这个工作正常,但 Qt 4.8.4 给了
我无法在我的 Ubuntu 12 中安装更多软件包。我尝试了 apt-get install -f ,以及许多其他类似的技巧,但在找到解决方案方面没有进展。 这是属于 Qt 的损坏包: 以下包具有未满
我正在尝试使用 Virtual Box 中的 Ubuntu 机器复制我们目前在物理 Ubuntu 服务器上运行的应用程序。它是一个 QT 应用程序,但在服务器上我们使用 NPM 的 pm2 运行它。安
问题: Qt Creator 是用 Qt Creator 构建的吗? 同样,Qt Designer 是用 Qt Designer 构建的吗? 顺便说一句,为什么有两个 Qt IDE?他们是竞争对手吗?
当我使用 QWidget设计用户界面时,我总是对它的大小属性有点困惑。有size policy , geometry和 hintSize . 我只知道size policy之间的关系和 hintSiz
就目前而言,这个问题不适合我们的问答形式。我们希望答案得到事实、引用资料或专业知识的支持,但这个问题可能会引发辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visit the
我想知道是否有一种很好的方法可以让用户像 LabView 一样创建节点图(有限制)。 像这样的东西: 我见过http://www.pyqtgraph.org/ ,这似乎有类似的东西,我确实打算使用 P
在 Qt 中是否有一种跨平台的方式来获得用户喜欢的固定宽度和比例字体? 例如,在 cocoa 中,有 NSFont *proportional = [NSFont userFontOfSize:12.
我想使用 Qt 和 C++ 制作这样的交互式图表:http://jsxgraph.uni-bayreuth.de/wiki/index.php/Cubic_spline_interpolation 关
我正在编写一个嵌入式设备屏幕的模拟(其中包含主 QWidget 顶部的自定义小部件),虽然屏幕的原始尺寸是 800x600,但我希望能够按比例放大和缩小它拖动窗口的角。如果不使用网格布局和担架(不会向
在下面的示例中,我是否必须从堆中删除对象?如果是的话,怎么办? #include #include #include #include #include int main(int argc,
来自 Web 开发背景,我现在进入 QT 应用程序开发。 使用 QFonts 我已经看到我显然只有两个选择,在 QT 中定义字体大小;按像素大小或点大小。 在制作网页布局时,我习惯于以相对方式定义所有
我是一名优秀的程序员,十分优秀!