From: z411 Date: Mon, 13 Dec 2021 19:59:54 +0000 (+0000) Subject: Adding libogg instructions X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9f495fb5e7493431d172dff6e77548ca1dff836f;p=xonotic%2Fxonotic.wiki.git Adding libogg instructions --- 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`