I am trying to build blender
so that I can use it directly from python and was going through this tutorial and I got stuck on the very first make
command giving me
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message): Could NOT find PythonLibsUnix (missing: PYTHON_LIBRARY PYTHON_LIBPATH PYTHON_INCLUDE_DIR PYTHON_INCLUDE_CONFIG_DIR)
I am using Ubuntu 14.04, with the system python installs (3.4.3 and 2.7.6). I am expected to specify manually these environment variables (if they are that)? Or it’s something else? If the former, what are the standard paths for these?
Advertisement
Answer
This will solve your issue
sudo apt-get build-dep blender
similar compile time dependency problems for other applications can be solved by doing this build-dep
trick
By cherry picking from the list of packages above cmd wants to install, you probably need just these :
sudo apt-get install libpython3-dev libpython3.4-dev
although allowing the build-dep
cmd to run will jack up otherwise disabled features you may want in blender
enjoy