visual-c++gdalvcproj

Using MrSID through vcpkg distribution of GDAL


my company uses GDAL with several additional dependencies. One of which is MrSID (the free reading SDK only).

Until now we've been manually downloading and building our 3rd party dependencies, but we're really hoping to move as much of that as possible to NuGet and/or vcpkg to simplify our upgrade process.

All of the additional GDAL dependencies we use, except for MrSID, are available through vcpkg. I haven't found any documentation through microsoft or GDAL on setting up a vcpkg installation to use MrSID.

Does anyone have any experience with this?


Solution

  • I was able to fix it by the following:

    I don't love changing the portfile.cmake since I'll have to redo the edit every time I want to update gdal; but I believe vcpkg is unable to distribute MrSID because of LizardTech's rules, and having a packagemanager is a significant upgrade for this process. I may make a script or custom vcpkg port to simplify this in the future.