[gdal-dev] cmake status update - 99% good news!

dg0yt at darc.de dg0yt at darc.de
Wed Jan 26 11:36:57 PST 2022


> ninja: error: 'ws2_32.lib', needed by 'gdal_w64.dll', missing and no known rule to make it

'ws2_32.lib' is neither the name of a CMake target nor a flag ('-l'). So it is taken as a file by Ninja. However, Ninja is not the linker and so it doesn't find that file. Solutions:
- '-lws2_32' (assuming mingw)
- 'find_library(...)'

Kai


More information about the gdal-dev mailing list