Open choleesh opened 6 months ago
问题 1: include\vlc\libvlc_media.h(368): error C2065: “libvlc_media_read_cb”: 未声明的标识符 原因:在 Windows 下使用 VLC 时需要 SSIZE_T 。 解决方案:
typedef SSIZE_T ssize_t;
问题 2: vlc_threads.h(90): error C3861: “poll”: 找不到标识符 原因:未正确定义 poll 。 解决方案:将 vlc_threads.h 中的 # define poll(u,n,t) vlc_poll(u, n, t) 提到函数前面。
你的是不是文件编码不对?子仓库没更新?
可以看我fork修改的版本,https://github.com/winsoft666/vlc-qt2
Window 11 using / when i ninja output is like here and there is error in Media.h but the header code is same on the download
C:\Users\user\Downloads\vlc-qt-master\build>ninja [1/88] Automatic MOC and UIC for target Core FAILED: src/core/CMakeFiles/Core_autogen src/core/Core_autogen/mocs_compilation.cpp C:/Users/user/Downloads/vlc-qt-master/build/src/core/CMakeFiles/Core_autogen C:/Users/user/Downloads/vlc-qt-master/build/src/core/Core_autogen/mocs_compilation.cpp cmd.exe /C "cd /D C:\Users\user\Downloads\vlc-qt-master\build\src\core && "C:\Program Files\CMake\bin\cmake.exe" -E cmake_autogen C:/Users/user/Downloads/vlc-qt-master/build/src/core/CMakeFiles/Core_autogen.dir/AutogenInfo.json Debug"
AutoMoc subprocess error
The moc process failed to compile "SRC:/src/core/Media.h" into "SRC:/build/src/core/Core_autogen/EWIEGA46WW/moc_Media.cpp" Process failed with return value 1
Command
C:/Qt/5.14.2/msvc2017_64/bin/moc.exe -DCore_EXPORTS -DQT_CORE_LIB -DQT_SHARED -DVLCQT_CORE_LIBRARY -D_REENTRANT -IC:/Users/user/Downloads/vlc-qt-master/libvlc-headers/include -IC:/Users/user/Downloads/vlc-qt-master/libvlc-headers/include/vlc/plugins "-IC:/Program Files/VideoLAN/VLC/sdk/include" "-IC:/Program Files/VideoLAN/VLC/sdk/include/vlc/plugins" -IC:/Users/user/Downloads/vlc-qt-master/src -IC:/Users/user/Downloads/vlc-qt-master/src/core -IC:/Users/user/Downloads/vlc-qt-master/build/src -IC:/Qt/5.14.2/msvc2017_64/include -IC:/Qt/5.14.2/msvc2017_64/include/QtCore -IC:/Qt/5.14.2/msvc2017_64/mkspecs/win32-msvc -IC:/MinGW/lib/gcc/mingw32/6.3.0/include/c++ -IC:/MinGW/lib/gcc/mingw32/6.3.0/include/c++/mingw32 -IC:/MinGW/lib/gcc/mingw32/6.3.0/include/c++/backward -IC:/MinGW/lib/gcc/mingw32/6.3.0/include -IC:/MinGW/include -IC:/MinGW/lib/gcc/mingw32/6.3.0/include-fixed -IC:/MinGW/mingw32/include --include C:/Users/user/Downloads/vlc-qt-master/build/src/core/Core_autogen/moc_predefs.h -o C:/Users/user/Downloads/vlc-qt-master/build/src/core/Core_autogen/EWIEGA46WW/moc_Media.cpp C:/Users/user/Downloads/vlc-qt-master/src/core/Media.h
Output
C:/Users/user/Downloads/vlc-qt-master/src/core/Media.h(321): Parse error at ";"
ninja: build stopped: subcommand failed.