mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Remove Linux build instructions.
They're hopelessly outdated, and not worth maintaining, as the .travis.yml really provides all the necessary info.
This commit is contained in:
@@ -27,7 +27,7 @@ LOOT uses [CMake](http://cmake.org) to generate build files, and requires the fo
|
||||
* [Libloadorder](http://github.com/WrinklyNinja/libloadorder)
|
||||
* [yaml-cpp](http://github.com/WrinklyNinja/yaml-cpp)
|
||||
|
||||
Alphanum and Libespm do not require any additional setup. The rest of the libraries must be built separately. Instructions for building them and LOOT itself using MSVC or MinGW are given in [docs/BUILD.MSVC.md](docs/BUILD.MSVC.md) and [docs/BUILD.MinGW.md](docs/BUILD.MinGW.md) respectively.
|
||||
Alphanum and Libespm do not require any additional setup. The rest of the libraries must be built separately. Instructions for building them and LOOT itself using Microsoft Visual Studio are given in [docs/BUILD.MSVC.md](docs/BUILD.MSVC.md).
|
||||
|
||||
Although LOOT uses a cross-platform build system and cross-platform libraries, it does rely on some Windows API functionality. Anyone wishing to port LOOT to other platforms will need to ensure equivalent functionality is implemented for their target platform. The Windows API code is wrapped in `#ifdef _WIN32` blocks so that it can be easily identified.
|
||||
|
||||
|
||||
@@ -1,42 +0,0 @@
|
||||
# Build Instructions using MinGW
|
||||
|
||||
These instructions were used to build LOOT using mingw-w64 on Ubuntu and Debian linux, though they should also apply to other similar environments.
|
||||
|
||||
#### Boost
|
||||
|
||||
```
|
||||
./bootstrap.sh
|
||||
echo "using gcc : 4.6.3 : i686-w64-mingw32-g++ : <rc>i686-w64-mingw32-windres <archiver>i686-w64-mingw32-ar <ranlib>i686-w64-mingw32-ranlib ;" > tools/build/v2/user-config.jam
|
||||
./b2 toolset=gcc-4.6.3 target-os=windows threadapi=win32 link=static runtime-link=static variant=release address-model=32 cxxflags=-fPIC --with-log --with-date_time --with-thread --with-filesystem --with-program_options --with-locale --with-regex --with-system --with-iostreams
|
||||
```
|
||||
|
||||
#### Chromium Embedded Framework
|
||||
|
||||
Most of the required binaries are pre-built, but the libcef_dll_wrapper dynamic library must be built.
|
||||
|
||||
#### yaml-cpp
|
||||
|
||||
```
|
||||
cmake . -DCMAKE_C_FLAGS=-m32 -DPROJECT_ARCH=32 -DCMAKE_TOOLCHAIN_FILE=../LOOT/mingw-toolchain.cmake -DBOOST_ROOT=../boost
|
||||
make
|
||||
```
|
||||
|
||||
#### Libloadorder
|
||||
|
||||
Follow the instructions in libloadorder's README.md to build it as a static library.
|
||||
|
||||
#### Libgit2
|
||||
|
||||
```
|
||||
mkdir build && cd build
|
||||
cmake .. -DBUILD_SHARED_LIBS=OFF -DOPENSSL_ROOT_DIR=../openssl -DCMAKE_C_FLAGS=-m32 -DPROJECT_ARCH=32 -DCMAKE_TOOLCHAIN_FILE=../LOOT/mingw-toolchain.cmake
|
||||
make
|
||||
```
|
||||
|
||||
#### LOOT
|
||||
|
||||
```
|
||||
mkdir build && cd build
|
||||
cmake .. -DPROJECT_LIBS_DIR=".." -DPROJECT_ARCH=32 -DPROJECT_LINK=STATIC -DCMAKE_TOOLCHAIN_FILE="mingw-toolchain.cmake"
|
||||
make
|
||||
```
|
||||
@@ -1,20 +0,0 @@
|
||||
# Cross-compiling from Linux to Windows.
|
||||
#
|
||||
# Takes the PROJECT_ARCH variable, with value "32" or "64".
|
||||
set (CMAKE_SYSTEM_NAME Windows)
|
||||
|
||||
IF (PROJECT_ARCH MATCHES "32")
|
||||
set (COMPILER_PREFIX i686-w64-mingw32)
|
||||
ELSE ()
|
||||
set (COMPILER_PREFIX x86_64-w64-mingw32)
|
||||
ENDIF ()
|
||||
|
||||
set (CMAKE_C_COMPILER ${COMPILER_PREFIX}-gcc)
|
||||
set (CMAKE_CXX_COMPILER ${COMPILER_PREFIX}-g++)
|
||||
IF (CMAKE_HOST_SYSTEM_NAME MATCHES "Windows")
|
||||
set (CMAKE_RC_COMPILER windres)
|
||||
set (CMAKE_RANLIB ${COMPILER_PREFIX}-gcc-ranlib)
|
||||
ELSE ()
|
||||
set (CMAKE_RC_COMPILER ${COMPILER_PREFIX}-windres)
|
||||
set (CMAKE_RANLIB ${COMPILER_PREFIX}-ranlib)
|
||||
ENDIF ()
|
||||
Reference in New Issue
Block a user