ubuntu linux 18.04(arm64)でblender v2.92のビルドメモ

以下を変更。

CMakeLists.txt
WITH_CYCLES_EMBREE OFF
※使いたい場合はhttps://developer.blender.org/D9505を参考にembree-aarch64を入れる

/blender/build_files/build_environment/install_deps.sh:2069(USE_SIMD=sse2)行目をコメントアウト

./blender/build_files/build_environment/install_deps.sh:2337(USE_SIMD=sse2)行目をコメントアウト

install_deps.shの実行前にOPENEXR_ROOTを定義。
export OPENEXR_ROOT=/opt/lib/openexr
(./blender-deps/OpenImageIO-2.1.15.0/src/cmake/modules/FindOpenEXR.cmakeのバグ?)

そしてこれがビルドスクリプト

#!/bin/sh

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 

###
cd ~/
wget https://github.com/Kitware/CMake/releases/download/v3.19.0/cmake-3.19.0.tar.gz
tar xvzf cmake-3.19.0.tar.gz
cd cmake-3.19.0
./bootstrap && make

mkdir ~/blender-git
cd ~/blender-git
git clone https://git.blender.org/blender.git

export OPENEXR_ROOT=/opt/lib/openexr ### Because of BUG of./blender-deps/OpenImageIO-2.1.15.0/src/cmake/modules/FindOpenEXR.cmake

PATH=~/cmake-3.19.0/bin:$PATH ./blender/build_files/build_environment/install_deps.sh -t 4 --no-confirm --with-opencollada

cd ~/blender-git/blender
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

#../build_linux/bin/blender

下はchrootしてビルドしたバイナリのときの実行コマンド(jetson nanoで確認)

# This is when chroot build.
LD_LIBRARY_PATH=\
~/document/ubuntu-base-18.04-base-arm64/opt/lib/openvdb-7.0/lib\
:~/document/ubuntu-base-18.04-base-arm64/opt/lib/osl-1.10/lib\
:~/document/ubuntu-base-18.04-base-arm64/opt/lib/oiio-2.1/lib\
:~/document/ubuntu-base-18.04-base-arm64/opt/lib/blosc-1.16.0/lib\
:~/document/ubuntu-base-18.04-base-arm64/opt/lib/tbb-2019/lib\
 ~/document/ubuntu-base-18.04-base-arm64/home/build_linux/bin/blender

VirtualGLから起動するときのスクリプト
(blender_291_vgl.shは上のコマンドの実行)

#!/bin/sh

/opt/VirtualGL/bin/vglconnect -e ./blender_291_vgl.sh <host>

配布
https://www.futuregadget.com/file/unofficial_blender292_build-ubuntu-arm64.tgz
※cd blender292-build; ./blender.shで起動

コメントをどうぞ

メールアドレスが公開されることはありません。 が付いている欄は必須項目です