User Tools

Site Tools


c:build:build-taglib-statically-on-windows-vs2017

Build Taglib statically with Visual Studio 2017

  1. Install cmake for windows (https://cmake.org/download/) - x64. Installer will ask to add the cmake exe folder to the PATH variable - use this option
  2. Build zlib statically on Windows using Visual Studio 2017 (it is needed by Taglib). In the below example we'll consider that the zlib folder is D:\OpenSource\zlib
  3. Download Taglib archive and extract it (ex D:\OpenSource\taglib)
  4. Open 'Developer Command Prompt for VS 2017' console
  5. cd D:\OpenSource\taglib

Build debug configuration

  1. Build debug VS2017 files
cmake -DZLIB_INCLUDE_DIR=D:\OpenSource\zlib -DZLIB_LIBRARY=D:\OpenSource\zlib\zlib.lib -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=OFF -DENABLE_STATIC_RUNTIME=ON -DWITH_ASF=ON -DWITH_MP4=ON -DBUILD_EXAMPLES=OFF -DCMAKE_INSTALL_PREFIX=D:\Taglib .
  1. Open taglib.sln file with VS2017 (D:\OpenSource\taglib\taglib.sln)
  2. Set configuration on Debug win32
  3. Rebuild all solution
  4. Rebuild INSTALL solution. It will generate all files to D:\Taglib

Build release configuration

  1. Build release VS2017 files
cmake -DZLIB_INCLUDE_DIR=D:\OpenSource\zlib -DZLIB_LIBRARY=D:\OpenSource\zlib\zlib.lib -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DENABLE_STATIC_RUNTIME=ON -DWITH_ASF=ON -DWITH_MP4=ON -DBUILD_EXAMPLES=OFF -DCMAKE_INSTALL_PREFIX=D:\Taglib .
  1. Open taglib.sln file with VS2017 (D:\OpenSource\taglib\taglib.sln)
  2. Set configuration on Release win32
  3. Rebuild all solution
  4. Rebuild INSTALL solution. It will generate all files to D:\Taglib
c/build/build-taglib-statically-on-windows-vs2017.txt · Last modified: 2023/07/04 19:36 by 127.0.0.1