compile pyPandora with ubuntu 12.04

21 views
Skip to first unread message

Albert Jornet Puig

unread,
Jul 7, 2014, 12:13:18 PM7/7/14
to pandor...@googlegroups.com
Hi,

I am trying to compile pyPandora with ubuntu 12.04 but it seems that i have an error with i am not able to solve.

It seems to me there is something with the compiler or my libs are outdated.


In file included from /usr/include/boost/bind/mem_fn.hpp:25:0,
                 from /usr/include/boost/mem_fn.hpp:22,
                 from /usr/include/boost/function/detail/prologue.hpp:18,
                 from /usr/include/boost/function/function_template.hpp:13,
                 from /usr/include/boost/function/detail/maybe_include.hpp:13,
                 from /usr/include/boost/function/function0.hpp:11,
                 from /usr/include/boost/python/errors.hpp:13,
                 from /usr/include/boost/python/handle.hpp:11,
                 from /usr/include/boost/python/args_fwd.hpp:10,
                 from /usr/include/boost/python/args.hpp:10,
                 from /usr/include/boost/python.hpp:11,
                 from build_py/pyPandora/pyBindings.cxx:23:
/usr/include/boost/get_pointer.hpp:18:23: note: template<class T> T* boost::get_pointer(T*)
 template<class T> T * get_pointer(T * p)
                       ^
/usr/include/boost/get_pointer.hpp:18:23: note:   template argument deduction/substitution failed:
In file included from /usr/include/boost/python/to_python_indirect.hpp:10:0,
                 from /usr/include/boost/python/converter/arg_to_python.hpp:10,
                 from /usr/include/boost/python/call.hpp:15,
                 from /usr/include/boost/python/object_core.hpp:14,
                 from /usr/include/boost/python/args.hpp:25,
                 from /usr/include/boost/python.hpp:11,
                 from build_py/pyPandora/pyBindings.cxx:23:
/usr/include/boost/python/object/pointer_holder.hpp:138:32: note:   mismatched types ‘T*’ and ‘std::shared_ptr<Engine::StaticRaster>’
         = get_pointer(this->m_p)
                                ^
In file included from /usr/include/boost/function/function_base.hpp:29:0,
                 from /usr/include/boost/function/detail/prologue.hpp:17,
                 from /usr/include/boost/function/function_template.hpp:13,
                 from /usr/include/boost/function/detail/maybe_include.hpp:13,
                 from /usr/include/boost/function/function0.hpp:11,
                 from /usr/include/boost/python/errors.hpp:13,
                 from /usr/include/boost/python/handle.hpp:11,
                 from /usr/include/boost/python/args_fwd.hpp:10,
                 from /usr/include/boost/python/args.hpp:10,
                 from /usr/include/boost/python.hpp:11,
                 from build_py/pyPandora/pyBindings.cxx:23:
/usr/include/boost/ref.hpp:182:29: note: template<class T> T* boost::get_pointer(const boost::reference_wrapper<T>&)
 template<class T> inline T* get_pointer( reference_wrapper<T> const & r )
                             ^
/usr/include/boost/ref.hpp:182:29: note:   template argument deduction/substitution failed:
In file included from /usr/include/boost/python/to_python_indirect.hpp:10:0,
                 from /usr/include/boost/python/converter/arg_to_python.hpp:10,
                 from /usr/include/boost/python/call.hpp:15,
                 from /usr/include/boost/python/object_core.hpp:14,
                 from /usr/include/boost/python/args.hpp:25,
                 from /usr/include/boost/python.hpp:11,
                 from build_py/pyPandora/pyBindings.cxx:23:
/usr/include/boost/python/object/pointer_holder.hpp:138:32: note:   ‘std::shared_ptr<Engine::StaticRaster>’ is not derived from ‘const boost::reference_wrapper<T>’
         = get_pointer(this->m_p)
                                ^
scons: *** [build_py/pyPandora/pyBindings.os] Error 1
scons: building terminated because of errors.



Do you know where the problem might be? is there any version requirement in the libs or the compiler?

Thanks in advance

Xavier Rubio

unread,
Jul 7, 2014, 12:35:40 PM7/7/14
to Albert Jornet Puig, pandor...@googlegroups.com
Dear Albert, the current version is compiled using Linux Mint 17 and
Linux Mint 16 (corresponding to Ubuntu 14.04 and 13.10). This could be
related to the gcc version (4.7 instead of 4.8). In addition it uses
boost 1.55, so the error must be related to the different versions.
Take a look at this similar issue, with a "dirty" hack to solve the problem:
https://github.com/cpp-netlib/cpp-netlib/issues/189

All best,

Xavi
> --
> You received this message because you are subscribed to the Google Groups
> "Pandora users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pandora_user...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Albert Jornet Puig

unread,
Jul 8, 2014, 5:06:31 AM7/8/14
to pandor...@googlegroups.com, jur...@gmail.com
Following your doc:

https://github.com/xrubio/pandora/blob/master/docs/tutorials/00_installing.txt

It is outdated. With the answer, now it makes sense to me.

Regards,
Albert

El dilluns 7 de juliol de 2014 18:35:40 UTC+2, Xavier Rubio va escriure:

Xavier Rubio

unread,
Jul 8, 2014, 5:11:37 AM7/8/14
to Albert Jornet Puig, pandor...@googlegroups.com
You are right! I've fixed the version.

all best,

Xavi

jorn_et

unread,
Jul 8, 2014, 5:13:10 AM7/8/14
to Xavier Rubio, pandor...@googlegroups.com
Nice!

Any idea about for how many agents at maximum pandora might still work?
Reply all
Reply to author
Forward
0 new messages