Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recommended boost version? #41

Closed
ssteinbach opened this issue Oct 24, 2012 · 4 comments
Closed

recommended boost version? #41

ssteinbach opened this issue Oct 24, 2012 · 4 comments

Comments

@ssteinbach
Copy link

Hi Guys,

I was wondering, is there a recommended version of boost for building the PyImath bindings? I'm trying to compile against boost 1.51.0 on mac os x (mountain lion). This is compiling on revision 2664764.

I'm seeing lots of build errors and assuming it has something to do with incompatible boost versions, but am not sure.

(pages like this):
/opt/local/include/boost/python/operators.hpp: In static member function 'static PyObject* boost::python::detail::operator_l<op_add>::apply<L, R>::execute(typename boost::python::detail::unwrap_wrapper_::type&, const typename boost::python::detail::unwrap_wrapper_::type&) [with L = PyImath::FixedArray2D, R = PyImath::FixedArray2D]':
/opt/local/include/boost/python/operators.hpp:152: instantiated from 'void boost::python::detail::operator_<id, L, R>::visit(ClassT&) const [with ClassT = boost::python::class_PyImath::FixedArray2D<int, boost::python::detail::not_specified, boost::python::detail::not_specified, boost::python::detail::not_specified>, boost::python::detail::operator_id id = op_add, L = boost::python::self_ns::self_t, R = boost::python::self_ns::self_t]'
/opt/local/include/boost/python/def_visitor.hpp:31: instantiated from 'static void boost::python::def_visitor_access::visit(const V&, classT&) [with V = boost::python::def_visitor<boost::python::detail::operator_<op_add, boost::python::self_ns::self_t, boost::python::self_ns::self_t> >, classT = boost::python::class_PyImath::FixedArray2D<int, boost::python::detail::not_specified, boost::python::detail::not_specified, boost::python::detail::not_specified>]'
/opt/local/include/boost/python/def_visitor.hpp:67: instantiated from 'void boost::python::def_visitor::visit(classT&) const [with classT = boost::python::class_PyImath::FixedArray2D<int, boost::python::detail::not_specified, boost::python::detail::not_specified, boost::python::detail::not_specified>, DerivedVisitor = boost::python::detail::operator_<op_add, boost::python::self_ns::self_t, boost::python::self_ns::self_t>]'
/opt/local/include/boost/python/class.hpp:226: instantiated from 'boost::python::class_<T, X1, X2, X3>& boost::python::class_<T, X1, X2, X3>::def(const boost::python::def_visitor&) [with Derived = boost::python::detail::operator_<op_add, boost::python::self_ns::self_t, boost::python::self_ns::self_t>, W = PyImath::FixedArray2D, X1 = boost::python::detail::not_specified, X2 = boost::python::detail::not_specified, X3 = boost::python::detail::not_specified]'
./PyImathFixedArray2D.h:651: instantiated from 'void PyImath::add_arithmetic_math_functions(boost::python::class_PyImath::FixedArray2D<T, boost::python::detail::not_specified, boost::python::detail::not_specified, boost::python::detail::not_specified>&) [with T = int]'
imathmodule.cpp:175: instantiated from here
/opt/local/include/boost/python/operators.hpp:212: error: no match for 'operator+' in 'l + r'

I may have missed it in the docs, sorry about that!

@pstanczyk
Copy link
Contributor

Hey,

Currently, boost 1.48 and below. We have some changes internally on the table that fix the build issues you are seeing ...

Cheers

Piotr


From: ssteinbach [[email protected]]
Sent: 24 October 2012 10:06
To: openexr/openexr
Subject: [openexr] reccomended boost version? (#41)

Hi Guys,

I was wondering, is there a recommended version of boost for building the PyImath bindings? I'm trying to compile against boost 1.51.0 on mac os x (mountain lion). This is compiling on revision 26647642664764.

I'm seeing lots of build errors and assuming it has something to do with incompatible boost versions, but am not sure.

(pages like this):
/opt/local/include/boost/python/operators.hpp: In static member function 'static PyObject* boost::python::detail::operator_l::apply::execute(typename boost::python::detail::unwrap_wrapper_::type&, const typename boost::python::detail::unwrap_wrapper_::type&) [with L = PyImath::FixedArray2D, R = PyImath::FixedArray2D]':
/opt/local/include/boost/python/operators.hpp:152: instantiated from 'void boost::python::detail::operator_::visit(ClassT&) const [with ClassT = boost::python::class_PyImath::FixedArray2D<int, boost::python::detail::not_specified, boost::python::detail::not_specified, boost::python::detail::not_specified>, boost::python::detail::operator_id id = op_add, L = boost::python::self_ns::self_t, R = boost::python::self_ns::self_t]'
/opt/local/include/boost/python/def_visitor.hpp:31: instantiated from 'static void boost::python::def_visitor_access::visit(const V&, classT&) [with V = boost::python::def_visitor >, classT = boost::python::class_PyImath::FixedArray2D<int, boost::python::detail::not_specified, boost::python::detail::not_specified, boost::python::detail::not_specified>]'
/opt/local/include/boost/python/def_visitor.hpp:67: instantiated from 'void boost::python::def_visitor::visit(classT&) const [with classT = boost::python::class_PyImath::FixedArray2D<int, boost::python::detail::not_specified, boost::python::detail::not_specified, boost::python::detail::not_specified>, DerivedVisitor = boost::python::detail::operator_]'
/opt/local/include/boost/python/class.hpp:226: instantiated from 'boost::python::class_& boost::python::class_::def(const boost::python::def_visitor&) [with Derived = boost::python::detail::operator_, W = PyImath::FixedArray2D, X1 = boost::python::detail::not_specified, X2 = boost::python::detail::not_specified, X3 = boost::python::detail::not_specified]'
./PyImathFixedArray2D.h:651: instantiated from 'void PyImath::add_arithmetic_math_functions(boost::python::class_PyImath::FixedArray2D<T, boost::python::detail::not_specified, boost::python::detail::not_specified, boost::python::detail::not_specified>&) [with T = int]'
imathmodule.cpp:175: instantiated from here
/opt/local/include/boost/python/operators.hpp:212: error: no match for 'operator+' in 'l + r'

I may have missed it in the docs, sorry about that!


Reply to this email directly or view it on GitHubhttps://github.com//issues/41.

@ssteinbach
Copy link
Author

Cool, Thanks Piotr! I figured it was something like that. I'll snag boost 1.48 for now.

cheers,
-Stephan.

@meshula
Copy link
Contributor

meshula commented Jan 22, 2015

Does a modern boost work now?

@Arturo-gutierrez
Copy link

soooo.... does it work yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants