Official GitHub repository of the StormLib library created by Ladislav Zezula (author)
Official GitHub repository of the StormLib library created by Ladislav Zezula (author)
This is official repository for the StormLib library, an open-source project that can work with Blizzard MPQ archives.
StormLib.sln in Visual Studio 2017/2019/2022.\bin\Win32 and .\bin\x64Note that you can also build the library using newer toolset, such as v143. To do that, you need to retarget the projects. Right-click on the solution, then choose "Retarget solution" and pick your desired toolset version.
StormLib_vs08.sln in Visual Studio 2008.\bin\Win32 and .\bin\x64You can open the appropriate Visual Studio cmd prompt or launch regular cmd and load the necessary environment as specified below.
Change your VS version as needed.
amd64
"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvarsall.bat" x64
cmake -G "Visual Studio 17 2022" -B build_amd64 -D BUILD_SHARED_LIBS=ON
cmake --build build --config Releasex86
"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvarsall.bat" x86
cmake -G "Visual Studio 17 2022" -B build_x86 -D BUILD_SHARED_LIBS=ON#include git clone https://github.com/ladislav-zezula/StormLib.git
cd StormLib && git checkout
cmake -B build -D BUILD_SHARED_LIBS=ON
cmake --build build --config Release
sudo cmake --install buildInclude StormLib in your project: #include
Make sure you compile your project with -lstorm -lz -lbz2
To produce deb/rpm packages:
cd build
cpack -G "DEB" -D CPACK_PACKAGE_FILE_NAME=libstorm-dev_v9.30_amd64
cpack -G "RPM" -D CPACK_PACKAGE_FILE_NAME=libstorm-devel-v9.30.x86_64Conan can automatically resolve and build all dependencies (zlib, bzip2, libtommath) on any platform.
conan install . -of build -s build_type=Release --build=missing
cmake -B build -DCMAKE_BUILD_TYPE=Release -DSTORM_USE_BUNDLED_LIBRARIES=OFF -DWITH_BUNDLED_LIBTOMCRYPT=ON -DCMAKE_TOOLCHAIN_FILE=build/conan_toolchain.cmake
cmake --build build --config Release-DWITH_BUNDLED_LIBTOMCRYPT=ON is required because libtomcrypt is not yet packaged in Conan Index.
For a 32-bit build on Windows, add -s:h arch=x86 to the conan install command.
| Option Name | Description | Default |
|---|---|---|
BUILD_SHARED_LIBS |
Compile shared libraries | OFF |
STORM_UNICODE |
Unicode or ANSI support | OFF |
STORM_SKIP_INSTALL |
Skip installing files | OFF |
STORM_USE_BUNDLED_LIBRARIES |
Force use of bundled dependencies instead of system libraries | OFF |
WITH_BUNDLED_LIBTOMMATH |
Bundle libtommath even when STORM_USE_BUNDLED_LIBRARIES is OFF |
OFF |
WITH_BUNDLED_LIBTOMCRYPT |
Bundle libtomcrypt even when STORM_USE_BUNDLED_LIBRARIES is OFF |
OFF |
STORM_BUILD_TESTS |
Compile StormLib test application | OFF |
STORMTEST_USE_OLD_PATHS |
Uses hardcoded paths for test files, OFF uses build_folder/work |
ON |
No open issues yet, or sync has not completed.