mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Mostly just search/replace, will need to be read over later to make sure I didn't miss anything.
2.2 KiB
2.2 KiB
Build Instructions using Microsoft Visual C++
These instructions were used to build LOOT using Microsoft Visual Studio Express 2013 for Desktop, though they should also apply to other versions of MSVC. LOOT's CMake configuration builds an executable that can be run on Windows XP, but this support has only been implemented for MSVC 2013 - other versions may require editing of LOOT's CMakeLists.txt file.
Boost
bootstrap.bat
b2 toolset=msvc-12.0 threadapi=win32 link=static variant=release address-model=32 --with-log --with-date_time --with-thread --with-filesystem --with-locale --with-regex --with-system --with-iostreams --stagedir=stage-32
wxWidgets
Just build the solution provided by wxWidgets.
zlib
- Add
/safesehto both lines incontrib\masmx86\bld_ml32.bat. - Build the solution in
contrib\vstudio. - Copy
build\zconf.hto.\zconf.h.
yaml-cpp
- Set CMake up so that it builds the binaries in the
buildsubdirectory of the yaml-cpp folder. - Define
BOOST_ROOTto point to where the Boost folder is. - Configure CMake, then generate a build system for Visual Studio 12.
- Open the generated solution file, and build it.
Libloadorder
Follow the instructions in libloadorder's README.md to build it as a static library.
Libgit2
- Set CMake up so that it builds the binaries in the
buildsubdirectory of the libgit2 folder. - Configure CMake.
- Undefine
BUILD_SHARED_LIBS. - Generate a build system for Visual Studio 12.
- Open the generated solution file, and build it.
You may need to make sure that the configuration properties for the Visual Studio project are set to use the multithreaded DLL runtime library (C/C++->Code Generation).
LOOT
- Set CMake up so that it builds the binaries in the
buildsubdirectory of the LOOT folder. - Define
PROJECT_ARCH=32orPROJECT_ARCH=64to build 32 or 64 bit executables respectively. - Define
PROJECT_LINK=STATICto build a static API, orPROJECT_LINK=SHAREDto build a DLL API. - Define
PROEJCT_LIBS_DIRto point to the folder holding all the required libraries' folders. - Configure CMake, then generate a build system for Visual Studio 12.
- Open the generated solution file, and build it.