From: Martin C. <cos...@wa...> - 2004-06-12 18:11:09
|
Jonathan Brandmeyer wrote: > VPython 2.9.4 is ready for download from > http://sourceforge.net/project/showfiles.php?group_id=6013 I am trying for the first time to build vpython from sourceforge (I am actually trying to make a Fink package for 2.9.4 on MacOSX). Until now I had only tried 2.1.9 from vpython.org. There is now a boost package in Fink, so I had hope this might work without too much trouble. Unfortunately, compilation fails with the error message below. I don't know enough C++ to see whether this has to be fixed in boost or in visualpython, or whether something else needs to be done. gcc is the version that comes with OSX 10.3.4 and XCode tools 1.2, gcc 3.3 20030304 (Apple Computer, Inc. build 1640). Any advice welcome. g++ -I/sw/include/python2.3 -DHAVE_CONFIG_H -I. -I. -I/sw/include/gtk-1.2 -I/usr/X11R6/include -I/sw/include/glib-1.2 -I/sw/lib/glib/include -D_REENTRANT -I/sw/include/glib-1.2 -I/sw/lib/glib/include -Wno-long-double -I/sw/include -DPIC -O3 -c -o vector.lo vector.cpp /sw/include/boost/python/object/inheritance.hpp: In static member function ` static boost::python::objects::dynamic_id_t boost::python::objects::polymorphic_id_generator<T>::execute(void*) [with T = visual::shared_vector]': /sw/include/boost/python/object/inheritance.hpp:74: instantiated from `void boost::python::objects::register_dynamic_id(T*) [with T = visual::shared_vector]' /sw/include/boost/python/object/class_converters.hpp:85: instantiated from `void boost::python::objects::register_class_from_python(Derived*, Bases*) [with Derived = visual::shared_vector, Bases = boost::python::bases<visual::vector, boost::mpl::void_, boost::mpl::void_, boost::mpl::void_, boost::mpl::void_, boost::mpl::void_, boost::mpl::void_, boost::mpl::void_, boost::mpl::void_, boost::mpl::void_>]' /sw/include/boost/python/class.hpp:626: instantiated from `void boost::python::class_<T, X1, X2, X3>::register_() const [with T = visual::shared_vector, X1 = boost::python::bases<visual::vector, boost::mpl::void_, boost::mpl::void_, boost::mpl::void_, boost::mpl::void_, boost::mpl::void_, boost::mpl::void_, boost::mpl::void_, boost::mpl::void_, boost::mpl::void_>, X2 = boost::noncopyable, X3 = boost::python::detail::not_specified]' /sw/include/boost/python/class.hpp:660: instantiated from `boost::python::class_<T, X1, X2, X3>::class_(const char*, boost::python::no_init_t) [with T = visual::shared_vector, X1 = boost::python::bases<visual::vector, boost::mpl::void_, boost::mpl::void_, boost::mpl::void_, boost::mpl::void_, boost::mpl::void_, boost::mpl::void_, boost::mpl::void_, boost::mpl::void_, boost::mpl::void_>, X2 = boost::noncopyable, X3 = boost::python::detail::not_specified]' vector.cpp:678: instantiated from here /sw/include/boost/python/object/inheritance.hpp:44: error: cannot dynamic_cast `p' (of type `class visual::shared_vector*') to type `void*' (source type is not polymorphic) -- Martin |