![]() ![]() The package zlib is compatible with built-in CMake targets: doneĮlapsed time for package zlib:圆4-windows: 28.35 s Installing: D:/Dev/vcpkg/packages/zlib_圆4-windows/share/zlib/copyrightīuilding package zlib:圆4-windows. Using source at D:/Dev/vcpkg/buildtrees/zlib/src/1.2.11-deec42f53b Applying patch cmake_dont_build_more_than_needed.patch Extracting source D:/Dev/vcpkg/downloads/ The following packages will be built and installed:īuilding package zlib:圆4-windows. #include īased on the ouput from vcpkg when installing any new package: Computing installation plan. However, when trying to include the header files (or anything else see code snippet), visual studio does not seem to link the library correctly as it will result in the error message: cannot open source file "gdal/gdal.h". I've already downloaded the 圆4-windows version of the library ( vcpkg install gdal:圆4-windows) in order to build for the right architecture and made it available via vcpkg integrate install on a user-wide scope.Īfter some trial and error, everything works fine now, the toolchain gets included accordingly and the library is found automatically, resulting in a configuration like that: Moreover, visual studio should also automatically include the gdal library once i have set it up with vcpkg correctly. In the CMakeLists.txt it says find_library(GDAL gdal) after doing some research i found, that visual studio can open cmake files by default as mention in this thread. More specifically I am trying to use the gdal library in this project. ![]() I have been trying to build a cmake c++ project. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |