Skip to content

Instantly share code, notes, and snippets.

@sntulix
Last active April 17, 2021 08:57
Show Gist options
  • Save sntulix/e59562f222150c29faddc3ebd645cc69 to your computer and use it in GitHub Desktop.
Save sntulix/e59562f222150c29faddc3ebd645cc69 to your computer and use it in GitHub Desktop.
blender v2.83-release (ubuntu arm64. when using jetson nano, you may need chroot) bulid commands from source
#based from https://gist.github.com/sntulix/6de8daf9178548fbb89186a59f3e9430
#https://wiki.blender.org/wiki/Building_Blender/Linux/Ubuntu
apt update
apt install -y sudo ###
apt install -y gcc g++ make cmake
apt install -y git subversion
apt install -y libx11-dev libxxf86vm-dev libxcursor-dev libxi-dev libxrandr-dev libxinerama-dev libglew-dev
# Download and install cmake 3.18.
mkdir ~/blender-git
cd ~/blender-git
git clone https://git.blender.org/blender.git
cd ~/blender-git
#install_deps.shの実行前に./blender/CMakeLists.txtのWITH_CYCLES_EMBREEをOFFにする。
#※使いたい場合はhttps://developer.blender.org/D9505を参考にembree-aarch64を入れるみたい。
# edit ./blender/CMakeLists.txt
#WITH_CYCLES_EMBREE OFF
#install_deps.shの実行前にinstall_deps.shのSRCとINSTを絶対パスで書く
#install_deps.shの実行前にinstall_deps.shのOIIOのビルドのところでSSE2を使うようにしているのを削除する。
- cmake_d="$cmake_d -D USE_SIMD=sse2"
#install_deps.shの実行前にinstall_deps.shのOCIOのビルドのところにOCIO_USE_SSE=OFFを定義。
./blender/build_files/build_environment/install_deps.sh:1573
+ cmake_d="$cmake_d -D OCIO_USE_SSE=OFF"
#install_deps.shの実行前にinstall_deps.shのOSLのビルドのところでSSE2を使うようにしているのを削除する。
- cmake_d="$cmake_d -D USE_SIMD=sse2"
PATH=~/cmake-3.19.0/bin:$PATH ./blender/build_files/build_environment/install_deps.sh -t 4 --no-confirm --with-opencollada --skip-usd
touch ./blender/release/datafiles/locale/languages
make update
make
rm ../build_linux/bin/2.92/python/lib/python3.7/site-packages/numpy
cp -pr /opt/lib/numpy-1.17.5/lib/python3.7/site-packages/numpy ../build_linux/bin/2.92/python/lib/python3.7/site-packages
# start blender
# some loading errors remained.
# mantaflow functioned.
# full gpu acclerated is unknown.
../build_linux/bin/blender
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment