https://github.com/ortham/libstrings
A free software library for reading and writing TES V: Skyrim's .STRINGS, .DLSTRINGS and .ILSTRINGS files.
https://github.com/ortham/libstrings
Last synced: about 1 year ago
JSON representation
A free software library for reading and writing TES V: Skyrim's .STRINGS, .DLSTRINGS and .ILSTRINGS files.
- Host: GitHub
- URL: https://github.com/ortham/libstrings
- Owner: Ortham
- License: gpl-3.0
- Created: 2012-11-29T17:57:06.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-09-09T16:21:24.000Z (almost 13 years ago)
- Last Synced: 2025-03-26T14:53:16.537Z (about 1 year ago)
- Language: C++
- Size: 246 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Libstrings
Libstrings is a free software library for reading and writing TES V: Skyrim's
.STRINGS, .DLSTRINGS and .ILSTRINGS files.
## Build Instructions
Libstrings uses [CMake](http://cmake.org) v2.8.9 or later for cross-platform building support, though development takes place on Linux, and the instructions below reflect this. Building on Windows should be straightforward using analogous commands though.
Libstrings expects all libraries' folders to be present alongside the libstrings repository folder that contains this readme, or otherwise installed such that the compiler and linker used can find them without suppling additional paths. All paths below are relative to the folder(s) containing the libraries and libstrings.
### Requirements
* [CMake](http://cmake.org/) v2.8.9.
* [Boost](http://www.boost.org) v1.51.0.
* [UTF8-CPP](http://sourceforge.net/projects/utfcpp/) v2.3.2.
### Boost
```
./bootstrap.sh
echo "using gcc : 4.6.3 : i686-w64-mingw32-g++ : i686-w64-mingw32-windres i686-w64-mingw32-ar i686-w64-mingw32-ranlib ;" > tools/build/v2/user-config.jam
./b2 toolset=gcc-4.6.3 target-os=windows link=static variant=release address-model=32 cxxflags=-fPIC --with-filesystem --with-locale --with-regex --with-system --stagedir=stage-mingw-32
```
### Libstrings
```
mkdir build
cd build
cmake .. -DPROJECT_LIBS_DIR=.. -DPROJECT_ARCH=32 -DPROJECT_LINK=STATIC -DCMAKE_TOOLCHAIN_FILE=mingw-toolchain.cmake
make
```
If natively compiling, all the ```-DCMAKE_TOOLCHAIN_FILE``` arguments can be omitted, as can the ```echo``` line when building Boost.
To build a shared library, swap ```-DPROJECT_LINK=STATIC``` with ```-DPROJECT_LINK=SHARED```.
To build a 64 bit library, swap all instances of ```i686``` with ```x86_64``` and ```32``` with ```64```.