我试图使用cmake在Windows-10中从源代码构建flann。在安装过程中,它说找不到liblz4。 我尝试了两种方法:
1)因此,我从此处(https://github.com/lz4/lz4/releases)下载了预构建版本lz4,并将C:\ XXXX \ Downloads \ lz4_v1_9_1_win64 \ dll放置到我的环境路径中。
2)我使用vcpkg首先安装了lz4。然后做了
C:\source\flann\build> cmake .. -DCMAKE_TOOLCHAIN_FILE=C:\XXXXXX\source\vcpkg\scripts\buildsystems\vcpkg.cmake -G "Visual Studio 15 2017 Win64"
。
以上两种方法均无效。我仍然无法找到liblz4错误。
-- Found PkgConfig: C:/XXXXXX/Downloads/cmake-3.13.3-win64-x64/bin/pkg-config.exe (found version "0.26") -- Checking for module 'liblz4' -- No package 'liblz4' found CMake Error at C:/Program Files/CMake/share/cmake-3.13/Modules/FindPkgConfig.cmake:452 (message): A required package was not found Call Stack (most recent call first): C:/Program Files/CMake/share/cmake-3.13/Modules/FindPkgConfig.cmake:622 (_pkg_check_modules_internal) CMakeLists.txt:150 (pkg_check_modules) -- Configuring incomplete, errors occurred! See also "C:/XXXXXXX/source/flann/build/CMakeFiles/CMakeOutput.log".
答案 0 :(得分:0)
您尝试执行以下操作吗?(https://github.com/lz4/lz4)
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh
./vcpkg integrate install
vcpkg install lz4