简介 vcpck install的主要工作是"构建(如果需要)和安装依赖包",是vcpkg中最关键、也是使用者感知最明显的环节,有必要对其流程有一个更底层的理解,这样对一些问题的理解也将更加深
vcpkg要解决什么问题 C++语言的历史非常悠久,导致其在某些方面的使用体验非常差,比如三方库的依赖。 比如要引入一个skia库,我们大概有以下办法: 源码集成,会有几个问题 但Skia的构建是GN组织的,
我们的项目通过vcpkg依赖了icu,但在构建Android平台的icu制品时,却失败了。 Installing 15/45 icu:arm-neon-android@73.1#1... Building icu:arm-neon-android@73.1#1... /root/.cache/vcpkg/registries/git-trees/eaccfc7689fb55d4badf3d2321a8be62ae5be84e: info: installing overlay port from here -- Downloading https://github.com/unicode-org/icu/releases/download/release-73-1/icu4c-73_1-src.tgz -> icu4c-73_1-src.tgz... -- Extracting source /data/landun/workspace/tdf_build_env/.vcpkg/downloads/icu4c-73_1-src.tgz -- Applying patch disable-escapestr-tool.patch -- Applying patch remove-MD-from-configure.patch -- Applying patch fix_parallel_build_on_windows.patch -- Applying patch fix-extra.patch -- Applying patch mingw-dll-install.patch -- Applying patch disable-static-prefix.patch -- Applying patch fix-win-build.patch -- Using source at /data/landun/workspace/tdf_build_env/.vcpkg/buildtrees/icu/src/c-73_1-src-72ff750ba0.clean --
工作中遇到的一个问题,如果没有多VCPKG比较深入的理解,处理这个问题还是会比较棘手的。 本身来说,开启多线程在emscripten体系下还比较简单的,开启-pthread即可。详见Pthreads support 问