Local install from source (Linux)

I need a local install of Blender in order to use an add-on that uses a shared library installed on my system. this library can’t be detected by the add-on if I use a portable version of Blender.

I also need the latest version of Blender which is not provided by my distro’s repositories so I’m trying to install Blender from source except not as a portable install. I tried setting WITH_INSTALL_PORTABLE to OFF in CMakeLists.txt and running the long make command generated by install_deps.sh and then sudo make install but it doesn’t seem to make any difference with when the WITH_INSTALL_PORTABLE was set to ON. I still don’t have the files in my system folders (e.g the blender executable in /usr/bin/).

What am I doing wrong?

The install command for builds doesn’t mean that it installs to your system. It simply copies the runtime libraries into the build folder.

I see… so how would I go about installing it on my system? Where is the documentation for that?

No documentation that I am aware of, since it isn’t intended to install software this way in a *nix system. The proper way would be to install the executable into /opt.

That’s not going to work. The add-on needs a system install (same as repository install) to detect the 3rd-party library installed on my system.

Well if you want to replicate the way your package manager does it I’d do a index of / before and after an managed install. Remove it again and copy the files by hand according to a diff of those indexes. Or you could build your own package and install via your pm. But that might be overkill.

good idea, I’ll try that. Thanks