From 9f495fb5e7493431d172dff6e77548ca1dff836f Mon Sep 17 00:00:00 2001 From: z411 Date: Mon, 13 Dec 2021 19:59:54 +0000 Subject: [PATCH] Adding libogg instructions --- Shared-libraries-(buildfiles).md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Shared-libraries-(buildfiles).md b/Shared-libraries-(buildfiles).md index 4b9a463..746be32 100644 --- a/Shared-libraries-(buildfiles).md +++ b/Shared-libraries-(buildfiles).md @@ -183,6 +183,23 @@ Obtainment instructions: * download MSYS2 Package [1] in x86 and x64 versions: https://packages.msys2.org/base/mingw-w64-libogg * use dll from `bin` folder +Cross-compiling: + +``` +OGGVER="v1.3.5" +git clone -b $OGGVER https://gitlab.xiph.org/xiph/ogg.git +curl -o x86_64-w64-mingw32.cmake https://raw.githubusercontent.com/zyga/cmake-toolchains/master/Toolchain-Ubuntu-mingw64.cmake +d0=$(pwd) +rm -rf build +mkdir build +cd build +cmake -DCMAKE_TOOLCHAIN_FILE="$d0/x86_64-w64-mingw32.cmake" -DBUILD_SHARED_LIBS=true -DCMAKE_SYSTEM_PROCESSOR=x86_64 -DCMAKE_INSTALL_PREFIX="$d0/out" -G"Unix Makefiles" "$d0/ogg" +make +make install +cd "$d0" +cp out/bin/libogg.dll ~/Games/xonotic/misc/buildfiles/win64/libogg.dll +``` + ### macOS Darkplaces loads `libogg.dylib` -- 2.39.2