mirror of
https://github.com/ladislav-zezula/StormLib.git
synced 2026-01-16 05:10:32 +01:00
a50eaacb1309f4c1e11bf63a20cef3499a47b6ca
StormLib
This is official repository for the StormLib library, an open-source project that can work with Blizzard MPQ archives.
Installation and basic usage
Windows (Visual Studio 2022)
- Make sure you have the toolset for Visual Studio 2017 - Windows XP installed
- Download the latest release of StormLib
- Open the solution file
StormLib.slnin Visual Studio 2017/2019/2022 - Choose "Build / Batch Build" and select every build of "StormLib"
- Choose "Rebuild"
- The result libraries are in
.\bin\Win32and.\bin\x64
Note 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.
Windows (Visual Studio 2008)
- Download the latest release of StormLib
- Open the solution file
StormLib_vs08.slnin Visual Studio 2008 - Choose "Build / Batch Build" and select every build of "StormLib"
- Choose "Rebuild"
- The result libraries are in
.\bin\Win32and.\bin\x64
Windows (Test Project)
- Include the main StormLib header:
#include <StormLib.h> - Set the correct library directory for StormLibXYZ.lib:
- X: D = Debug, R = Release
- Y: A = ANSI build, U = Unicode build
- Z: S = Using static CRT library, D = Using Dynamic CRT library
- Rebuild
Linux
- Download latest release
- Install StormLib:
$ cd <path-to-StormLib>
$ cmake CMakeLists.txt
$ make
$ make install
- Include StormLib in your project:
#include <StormLib.h> - Make sure you compile your project with
-lstorm -lz -lbz2
Description
Languages
C
59.7%
C++
39.2%
CMake
0.7%
Batchfile
0.3%
Lua
0.1%