c:build:build-taglib-statically-on-windows-vs2017
Table of Contents
Build Taglib statically with Visual Studio 2017
- 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
- 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
- Download Taglib archive and extract it (ex D:\OpenSource\taglib)
- Open 'Developer Command Prompt for VS 2017' console
- cd D:\OpenSource\taglib
Build debug configuration
- 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 .
- Open taglib.sln file with VS2017 (D:\OpenSource\taglib\taglib.sln)
- Set configuration on Debug win32
- Rebuild all solution
- Rebuild INSTALL solution. It will generate all files to D:\Taglib
Build release configuration
- 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 .
- Open taglib.sln file with VS2017 (D:\OpenSource\taglib\taglib.sln)
- Set configuration on Release win32
- Rebuild all solution
- 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