Unable to build a blender

I am trying to build blender to use it directly from python and going through this tutorial and I am stuck in 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 a python system installation (3.4.3 and 2.7.6). Should I manually specify these environment variables (if any)? Or is it something else? If the first, what are the standard ways for them?

+5
source share
4 answers

This will solve your problem.

 sudo apt-get build-dep blender 

similar problems with compile-time dependency for other applications can be solved by doing this build-dep trick

If you select cherries from the list of packages above cmd you need to install, you probably only need these:

 sudo apt-get install libpython3-dev libpython3.4-dev 

although build-dep cmd permission will work, otherwise functions that you might want in blender will be disabled

to use

+1
source

To compile you must point to Python3:

 cmake -DPYTHON_LIBRARY=/usr/bin/python3.4m -DPYTHON_INCLUDE_DIR=/usr/include/python3.4m .. 
+2
source

You may be missing python development libraries

 apt-get install python-dev 

??

0
source

If it does not find the python files, you will need to indicate where they are.

If you checked the current wizard, then it will look for python 3.5, since recently it has been installed by default for the next version, you can still set it to 3.4, since I do not think that 3.5 certain code changes have occurred. If you downloaded the tarball, then it should look for 3.4 (if you don't have the old source copy)

0
source

Source: https://habr.com/ru/post/1237325/


All Articles