OpenCV3.1+ubuntu14.04 x86_64:
cmake -DPYTHON_INCLUDE_DIR2=/usr/include/python2.7 \
-DPYTHON_INCLUDE_DIR2=/usr/include/x86_64-linux-gnu/python2.7 \
-DPYTHON_LIBRARY=/usr/lib/python2.7/config-x86_64-linux-gnu/libpython2.7.so \
-DBUILD_opencv_python2=ON \
-DBUILD_opencv_python3=OFF \
.. >cmake_log.txt
# cmake -DPYTHON_INCLUDE_DIR2=`python-config --includes | cut -f2 -d' '|cut -c3-` -DPYTHON_LIBRARY=/usr/lib/python2.7/config-x86_64-linux-gnu/libpython2.7.so .. >cmake_log.txt
make