Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PATH=${HOME}/gitrepos/blender/extern/python/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin:/usr/lib/llvm/17/bin:/usr/lib/llvm/16/bin:/usr/lib/llvm/15/bin:/opt/cuda/bin
- git clone --recursive --branch="v3.6.5" https://projects.blender.org/blender/blender.git ${HOME}/gitrepos/blender
- git clone --recursive --branch="v3.12.1" https://github.com/python/cpython.git ${HOME}/gitrepos/cpython
- cd ${HOME}/gitrepos/cpython
- ./configure --enable-optimizations --prefix=${HOME}/gitrepos/blender/extern/python
- make ; sudo make install
- sudo ${HOME}/gitrepos/blender/extern/python/bin/python3.12 -m pip install --upgrade pip
- sudo ${HOME}/gitrepos/blender/extern/python/bin/pip3.12 install requests zstandard numpy brotli pyblas numpy --target ${HOME}/gitrepos/blender/extern/python/lib/python3.12/site-packages
- git clone --recursive --branch="v3.6.5" https://projects.blender.org/blender/blender-addons.git ${HOME}/gitrepos/blender/scripts/addons
- wget http://developer.download.nvidia.com/cg/Cg_3.1/Cg-3.1_April2012_x86_64.tgz -P /usr/tmp/Cg-3.1
- mkdir -p ${HOME}/gitrepos/blender/extern/nvcgc
- tar zxf /usr/tmp/Cg-3.1/Cg-3.1_April2012_x86_64.tgz -C ${HOME}/gitrepos/blender/extern/nvcgc
- git clone --recursive --branch="release-1.0.33" https://github.com/KhronosGroup/OpenXR-SDK.git ${HOME}/gitrepos/OpenXR-SDK
- cd ${HOME}/gitrepos/OpenXR-SDK
- PATH=${HOME}/gitrepos/blender/extern/python/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin:/usr/lib/llvm/17/bin:/usr/lib/llvm/16/bin:/usr/lib/llvm/15/bin:/opt/cuda/bin
- mkdir build; cd build
- ccmake .. \
- -DPYTHON_EXECUTABLE=${HOME}/gitrepos/blender/extern/python/bin/python3.12 \
- -DCMAKE_INSTALL_PREFIX=${HOME}/gitrepos/blender/extern/openxr-sdk \
- -DGLSLANG_VALIDATOR=${HOME}/.local/opt/glslang/bin/glslang \
- -DGLSL_COMPILER=${HOME}/gitrepos/blender/extern/nvcgc/usr/bin/cgc
- ccmake .. \
- -DPYTHON_EXECUTABLE=${HOME}/gitrepos/blender/extern/python/bin/python3.12 \
- -DCMAKE_INSTALL_PREFIX=${HOME}/gitrepos/blender/extern/openxr-sdk \
- -DGLSLANG_VALIDATOR=${HOME}/.local/opt/glslang/bin/glslang \
- -DGLSL_COMPILER=${HOME}/gitrepos/blender/extern/nvcgc/usr/bin/cgc
- make; sudo make install
- cd ${HOME}/github/blender
- mkdir build; cd build
- ccmake ..
- (
- PATH=${HOME}/gitrepos/blender/extern:/usr/local/sbin:/opt/bin:/usr/lib/llvm/17/bin:/usr/lib/llvm/16/bin:/usr/lib/llvm/15/bin:/opt/cuda/bin
- cd ${HOME}/gitrepos/blender
- mkdir build; cd build
- ccmake .. \
- -DPYTHON_EXECUTABLE=${HOME}/gitrepos/blender/extern/python/python3.12 \
- -DPYTHON_INCLUDE_DIR=${HOME}/gitrepos/blender/extern/python/include \
- -DPYTHON_LIBRARY=${HOME}/gitrepos/blender/extern/python/lib/libpython3.12.a \
- -DPYTHON_LIBPATH=${HOME}/gitrepos/blender/extern/python/lib \
- -DPYTHON_EXECUTABLE:FILEPATH=${HOME}/gitrepos/blender/extern/python/bin/python3.12 \
- -DPYTHON_SITE_PACKAGES=${HOME}/gitrepos/blender/extern/python/lib/python3.12/site-packages \
- -DPYTHON_INCLUDE_DIR=${HOME}/gitrepos/blender/extern/python/include/python3.12 \
- -DPYTHON_INCLUDE_CONFIG_DIR=${HOME}/gitrepos/blender/extern/python/include/python3.12 \
- -DPYTHON_NUMPY_PATH=${HOME}/gitrepos/blender/extern/python/lib/python3.12/site-packages/numpy \
- -DPYTHON_NUMPY_INCLUDE_DIRS=${HOME}/gitrepos/blender/extern/python/lib/python3.12/site-packages/numpy/core/include/numpy/ \
- -DPYTHON_ZSTANDARD_PATH=${HOME}/gitrepos/blender/extern/python/lib/python3.12/site-packages/zstandard \
- -DPYTHON_REQUESTS_PATH=${HOME}/gitrepos/blender/extern/python/lib/python3.12/site-packages/requests \
- -DXR_OPENXR_SDK_INCLUDE_DIR=${HOME}/gitrepos/blender/extern/openxr-sdk/include/ \
- -DXR_OPENXR_SDK_LOADER_LIBRARY=${HOME}/gitrepos/blender/extern/openxr-sdk/lib64/libopenxr_loader.so
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement