Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to build blender

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?

like image 781
fbence Avatar asked Dec 03 '15 11:12

fbence


1 Answers

For compilation, you have to point to Python3:

cmake -DPYTHON_LIBRARY=/usr/bin/python3.4m -DPYTHON_INCLUDE_DIR=/usr/include/python3.4m ..
like image 168
Miro Iliaš Avatar answered Sep 27 '22 17:09

Miro Iliaš