OpenImageIO/oiio — Issue #197: Build agains Python 3
Author: bartoszek
Created: 2011-11-22 16:13:06+00:00
State: open

I can not build oiio with python 3 support on openSUSE 12.1
I tried 'make PYTHON_VERSION=3.2'
Was not work - fall back to python2.7
Manually edited cmake configuration (python executable/include/lib plus boost_python3.so) results in compilation error.

[CODE]
Linking CXX executable iv
[ 95%] Built target iv
Scanning dependencies of target PyOpenImageIO
[ 96%] Building CXX object python/CMakeFiles/PyOpenImageIO.dir/py_imageinput.cpp.o
[ 96%] Building CXX object python/CMakeFiles/PyOpenImageIO.dir/py_imageoutput.cpp.o
[ 97%] Building CXX object python/CMakeFiles/PyOpenImageIO.dir/py_imagecache.cpp.o
[ 98%] Building CXX object python/CMakeFiles/PyOpenImageIO.dir/py_imagespec.cpp.o
/home/bartus/src/OpenImageIO-svn/src/python/py_imagespec.cpp: In function ‘boost::python::api::object PyOpenImageIO::ImageSpec_get_channelnames(const OpenImageIO::v0_11::ImageSpec&)’:
/home/bartus/src/OpenImageIO-svn/src/python/py_imagespec.cpp:44:89: error: ‘PyString_FromString’ was not declared in this scope
make[2]: *** [python/CMakeFiles/PyOpenImageIO.dir/py_imagespec.cpp.o] Błąd 1
make[1]: *** [python/CMakeFiles/PyOpenImageIO.dir/all] Błąd 2
make: *** [all] Błąd 2
[/CODE]