An open API service indexing awesome lists of open source software.

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.

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```.