how to build portable blender for linux

I am trying to build blender in a portable way for linux x64, as if I were downloading it from the official website, but with my personalizations.

As I read, it would be:

I download the source code using “git”
I use install_deps.sh to install the dependencies
Add to cmake the options WITH_STATIC_LIBS = ON and Boost_USE_STATIC_LIBS = TRUE
continuous with make -j8 && make install

With the previous instructions it is not compiled, it gives error.

Would you be so kind as to tell me the instructions on how to build blender in a portable way?

I’m afraid there is no easy well supported way to do it. The official builds are done in a specifically setup Linux install with old glibc and static libraries, but there’s no easy way to recreate that.

See also here:

Running make deps && make may give a working static build, but it’s not officially supported at the moment.