- cmake
- gcc 14.1.0 x86_64-w64-mingw32
- libharu
在Windows下使用vcpkg进行包管理,首先安装依赖项。
下载地址:https://cmake.org/download/
下载最新版,按照指示安装即可。
下载地址:https://winlibs.com/#download-release
下载后,将mingw64文件夹解压至D:,并将D:\mingw64\bin加入环境变量$Path
git clone https://github.com/microsoft/vcpkg.git E:\dev
cd E:\dev\vcpkg;.\bootstrap-vcpkg.bat将E:\dev\vcpkg\加入环境变量$Path;
vcpkg integrate install进行全局集成,可以在cmake和vs项目中自动使用vcpkg中的包。
vcpkg install libharu
使用vscode cmake插件进行编译。
emf2pdf /path/to/emf