首先,我是这个领域的所有新手,所以如果我要事先提出一些愚蠢或毫无道理的事情,对不起,那么让我们说清楚一点吧...我正在尝试向ffmpeg添加功能,以及我要说些什么。知道我必须修改CONTROL文件和portfile.cmake,但似乎还不够,我不理解错误,而且我无法在互联网上获得有关此信息的更多信息,因此,如果您能给我一些信息,如何正确地做到这一点,就已经准备就绪了对我来说很重要我将保留部分代码和错误文件
**portfile.cmake:**
if("libxml2" IN_LIST FEATURES)
set(OPTIONS "${OPTIONS} --enable-libxml2")
endif()
**CONTROL:**
Feature: libxml2
Description: Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform)
Build-Depends: zlib, libiconv, liblzma
**Command Prompt after (vcpkg install ffmpeg[libxml2]:x64-windows)**
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:72 (message):
Command failed: C:/vcpkg/downloads/tools/msys2/msys64/usr/bin/bash.exe --noprofile --norc C:/vcpkg/ports/ffmpeg\build.sh C:/vcpkg/buildtrees/ffmpeg/x64-windows-rel C:/vcpkg/buildtrees/ffmpeg/src/n4.2-02d8c63f80 C:/vcpkg/packages/ffmpeg_x64-windows "--enable-asm --enable-yasm --disable-doc --enable-debug --enable-runtime-cpudetect --enable-libxml2 --disable-openssl --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-libvpx --disable-libx264 --disable-opencl --disable-lzma --disable-bzlib --enable-avresample --disable-static --enable-shared --extra-cflags=-DHAVE_UNISTD_H=0 --extra-cflags=-MD --extra-cxxflags=-MD"
Working Directory: C:/vcpkg/buildtrees/ffmpeg/x64-windows-rel
Error code: 1
See logs for more information:
C:\vcpkg\buildtrees\ffmpeg\build-x64-windows-rel-out.log
Call Stack (most recent call first):
ports/ffmpeg/portfile.cmake:197 (vcpkg_execute_required_process)
scripts/ports.cmake:94 (include)
Error: Building package ffmpeg:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: ffmpeg:x64-windows
Vcpkg version: 2019.09.12-nohash**strong text**
**Log Error file:**
=== CONFIGURING === ERROR: libxml-2.0 not found using pkg-config
If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to the ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "ffbuild/config.log" produced by configure as this will help solve the problem.
感谢您的关注, 问候佩德罗·库尼亚!