Msys2安裝
下載Msys2
修改國內清華鏡像
https://mirrors.tuna.tsinghua.edu.cn/help/msys2/
Msys2配置環(huán)境
Window-》系統(tǒng)屬性-》高級-》環(huán)境變量-》Path-》添加以下內容
c:\msys64\mingw64\bin
c:\msys64\usr\bin
安裝MSYS2依賴庫
#安裝依賴庫
pacman -S base-devel tar patch autoconf autoconf-archive automake make git unzip zip p7zip pkg-config gnupg mingw-w64-x86_64-nasm mingw-w64-x86_64-toolchain mingw-w64-x86_64-libtool mingw-w64-x86_64-gcc mingw-w64-i686-gcc mingw-w64-x86_64-gcc-fortran mingw-w64-i686-gcc-fortran mingw-w64-x86_64-libwinpthread-git mingw-w64-i686-libwinpthread-git mingw-w64-x86_64-SDL mingw-w64-i686-SDL mingw-w64-x86_64-ragel
#安裝依賴庫
pacman -S nasm yasm diffutils cmake
#pacman包管理網站https://packages.msys2.org/package/mingw-w64-x86_64-libwinpthread-git?repo=mingw64
MSYS2開啟MSVC環(huán)境支持
將msys2_shell.cmd 文件中的rem set MSYS2_PATH_TYPE=inherit 設置為set MSYS2_PATH_TYPE=inherit
將mingw32.ini文件中#MSYS2_PATH_TYPE=inherit設置為MSYS2_PATH_TYPE=inherit
將mingw64.ini文件中#MSYS2_PATH_TYPE=inherit設置為MSYS2_PATH_TYPE=inherit
安裝WindowSDK
https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/
安裝MSVC
下載 Visual Studio Tools - 免費安裝 Windows丘逸、Mac熏版、Linux (microsoft.com)
配置MSVC系統(tǒng)環(huán)境
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build
JAVACPP文檔
環(huán)境
https://github.com/bytedeco/javacpp-presets/wiki/Build-Environments
https://github.com/bytedeco/javacpp-presets/wiki/Building-on-Windows
預設模板
https://github.com/bytedeco/javacpp-presets/wiki/Create-New-Presets
https://github.com/bytedeco/javacpp-presets/tree/helloworld/helloworld
https://github.com/bytedeco/javacpp-presets/tree/zlib/zlib