Skip to content

Instantly share code, notes, and snippets.

@sehnryr
Last active December 5, 2025 10:43
Show Gist options
  • Select an option

  • Save sehnryr/ff4dacaa44b023a7cce1dbecc2648e09 to your computer and use it in GitHub Desktop.

Select an option

Save sehnryr/ff4dacaa44b023a7cce1dbecc2648e09 to your computer and use it in GitHub Desktop.
Install liboo2corelinux64 static and shared libraries in /usr/local/lib64

This script will install liboo2corelinux64 static and shared libraries in /usr/local/lib64. It will give you those files:

  • liboo2corelinux64.a (static)
  • liboo2corelinux64.so (soft link to shared)
  • liboo2corelinux64.so.9 (shared)

Dependencies

  • get_oodle_lib tool to download oodle libraries (source): pipx install git+https://github.com/sehnryr/get-oodle-lib
  • Commit.gitdeps.xml file from Unreal Engine source code (found here) which access can be granted by following the instructions at https://github.com/EpicGames/Signup.

You might also need to add /usr/local/lib64 in /etc/ld.so.conf or a file in /etc/ld.so.conf.d/ and reload the libraries cache with ldconfig (simply calling that command as root will reload the cache).

Usage

./install-liboo2corelinux64.sh <path to Commit.gitdeps.xml>

Or without downloading the script:

curl -sS https://gist.githubusercontent.com/sehnryr/ff4dacaa44b023a7cce1dbecc2648e09/raw | sh -s -- <path to Commit.gitdeps.xml>
#!/bin/sh
set -e
gitdeps_path=$1
tmp_dir=/tmp/liboo2corelinux64
library_dir=/usr/local/lib64
# Check if the gitdeps's path is valid and exists
if [ ! -f $gitdeps_path ]; then
echo "Invalid path to Commit.gitdeps.xml"
exit 1
fi
# Create directories
mkdir -p $tmp_dir
sudo mkdir -p $library_dir
# Retrieve the libraries from UE
get_oodle_lib --platform linux --output $tmp_dir $gitdeps_path
# Copy libraries
sudo cp $tmp_dir/liboo2corelinux64.a $library_dir
sudo cp $tmp_dir/liboo2corelinux64.so.9 $library_dir
# Set permissions
sudo chown root:root $library_dir/liboo2corelinux64.a
sudo chown root:root $library_dir/liboo2corelinux64.so.9
sudo chmod 644 $library_dir/liboo2corelinux64.a
sudo chmod 755 $library_dir/liboo2corelinux64.so.9
# Create soft link
sudo ln -s liboo2corelinux64.so.9 liboo2corelinux64.so
if [ $(pwd) != $library_dir ]; then
sudo mv liboo2corelinux64.so $library_dir
fi
# Remove temporary directory
rm -rd $tmp_dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment