-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_openusd
executable file
·60 lines (53 loc) · 1.7 KB
/
install_openusd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
# Function to install dependencies for Debian/Ubuntu
install_debian() {
sudo apt update
sudo apt install build-essential cmake git python3 python3-pip
}
# Function to install dependencies for Rocky Linux
install_rocky() {
sudo dnf groupinstall "Development Tools"
sudo dnf install cmake git python3 python3-pip doxygen python3-pyopengl libXt-devel ncurses-compat-libs
pip install PySide6 PyOpenGL
}
# Function to install dependencies for Arch Linux
install_arch() {
sudo pacman -S --needed base-devel cmake git python python-pip python-opengl pyside6 pyside6-tools python-distutils-extra
yay -S --needed pyside6-tools-wrappers
}
# Function to clone and build OpenUSD
build_opendusd() {
git clone https://github.com/PixarAnimationStudios/OpenUSD.git
cd OpenUSD
python build_scripts/build_usd.py --ptex \
--openvdb --prman --prman-location /mnt/repository/software/install/linux/pixar/RenderManProServer-25.2 \
--openimageio --opencolorio --alembic --hdf5 --materialx /mnt/repository/software/install/linux/pixar/OpenUSD
}
# Detect the OS
if [ -f /etc/os-release ]; then
. /etc/os-release
case $ID in
debian|ubuntu)
install_debian
;;
rocky)
export PATH=$PATH:$HOME/.local/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/.local/lib
export INCLUDE_PATH=$INCLUDE_PATH:$HOME/.local/include
install_rocky
;;
arch)
install_arch
;;
*)
echo "Unsupported OS: $ID"
exit 1
;;
esac
else
echo "OS not supported."
exit 1
fi
# Build OpenUSD
build_opendusd
echo "OpenUSD installation completed."