Advertisement
theguild42

blender build

Feb 1st, 2024
509
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.63 KB | None | 0 0
  1. 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
  2. git clone --recursive --branch="v3.6.5" https://projects.blender.org/blender/blender.git ${HOME}/gitrepos/blender
  3. git clone --recursive --branch="v3.12.1" https://github.com/python/cpython.git ${HOME}/gitrepos/cpython
  4. cd ${HOME}/gitrepos/cpython
  5. ./configure --enable-optimizations --prefix=${HOME}/gitrepos/blender/extern/python
  6. make ; sudo make install
  7. sudo ${HOME}/gitrepos/blender/extern/python/bin/python3.12 -m pip install --upgrade pip
  8. 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
  9. git clone --recursive --branch="v3.6.5" https://projects.blender.org/blender/blender-addons.git ${HOME}/gitrepos/blender/scripts/addons
  10.  
  11. wget http://developer.download.nvidia.com/cg/Cg_3.1/Cg-3.1_April2012_x86_64.tgz -P /usr/tmp/Cg-3.1
  12. mkdir -p ${HOME}/gitrepos/blender/extern/nvcgc
  13. tar zxf /usr/tmp/Cg-3.1/Cg-3.1_April2012_x86_64.tgz -C ${HOME}/gitrepos/blender/extern/nvcgc
  14.  
  15. git clone --recursive --branch="release-1.0.33" https://github.com/KhronosGroup/OpenXR-SDK.git  ${HOME}/gitrepos/OpenXR-SDK
  16. cd ${HOME}/gitrepos/OpenXR-SDK
  17.  
  18. 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
  19. mkdir build; cd build
  20. ccmake .. \
  21. -DPYTHON_EXECUTABLE=${HOME}/gitrepos/blender/extern/python/bin/python3.12 \
  22. -DCMAKE_INSTALL_PREFIX=${HOME}/gitrepos/blender/extern/openxr-sdk \
  23. -DGLSLANG_VALIDATOR=${HOME}/.local/opt/glslang/bin/glslang \
  24. -DGLSL_COMPILER=${HOME}/gitrepos/blender/extern/nvcgc/usr/bin/cgc
  25. ccmake .. \
  26. -DPYTHON_EXECUTABLE=${HOME}/gitrepos/blender/extern/python/bin/python3.12 \
  27. -DCMAKE_INSTALL_PREFIX=${HOME}/gitrepos/blender/extern/openxr-sdk \
  28. -DGLSLANG_VALIDATOR=${HOME}/.local/opt/glslang/bin/glslang \
  29. -DGLSL_COMPILER=${HOME}/gitrepos/blender/extern/nvcgc/usr/bin/cgc
  30. make; sudo make install
  31.  
  32. cd ${HOME}/github/blender
  33. mkdir build; cd build
  34. ccmake ..
  35.  
  36.  
  37. (
  38. 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
  39. cd ${HOME}/gitrepos/blender
  40. mkdir build; cd build
  41. ccmake .. \
  42.    -DPYTHON_EXECUTABLE=${HOME}/gitrepos/blender/extern/python/python3.12 \
  43.    -DPYTHON_INCLUDE_DIR=${HOME}/gitrepos/blender/extern/python/include \
  44.    -DPYTHON_LIBRARY=${HOME}/gitrepos/blender/extern/python/lib/libpython3.12.a \
  45.    -DPYTHON_LIBPATH=${HOME}/gitrepos/blender/extern/python/lib \
  46.    -DPYTHON_EXECUTABLE:FILEPATH=${HOME}/gitrepos/blender/extern/python/bin/python3.12 \
  47.    -DPYTHON_SITE_PACKAGES=${HOME}/gitrepos/blender/extern/python/lib/python3.12/site-packages \
  48.    -DPYTHON_INCLUDE_DIR=${HOME}/gitrepos/blender/extern/python/include/python3.12 \
  49.    -DPYTHON_INCLUDE_CONFIG_DIR=${HOME}/gitrepos/blender/extern/python/include/python3.12 \
  50.    -DPYTHON_NUMPY_PATH=${HOME}/gitrepos/blender/extern/python/lib/python3.12/site-packages/numpy \
  51.    -DPYTHON_NUMPY_INCLUDE_DIRS=${HOME}/gitrepos/blender/extern/python/lib/python3.12/site-packages/numpy/core/include/numpy/ \
  52.    -DPYTHON_ZSTANDARD_PATH=${HOME}/gitrepos/blender/extern/python/lib/python3.12/site-packages/zstandard \
  53.    -DPYTHON_REQUESTS_PATH=${HOME}/gitrepos/blender/extern/python/lib/python3.12/site-packages/requests \
  54.    -DXR_OPENXR_SDK_INCLUDE_DIR=${HOME}/gitrepos/blender/extern/openxr-sdk/include/ \
  55.    -DXR_OPENXR_SDK_LOADER_LIBRARY=${HOME}/gitrepos/blender/extern/openxr-sdk/lib64/libopenxr_loader.so
  56. )
  57.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement