From: Bruce S. <Bru...@nc...> - 2009-05-11 14:41:17
|
I've been mostly successful with both Boost 1.37 and 1.38 but know of three issues. Here's the first, which I found in a web search after encountering problems trying to build, which seems to be a bug in Boost: Furthermore building pyrap with boost-1.37 and gcc-4.3.2 gave an error due to a missing include. The following patch has to be applied to boost: Index: boost/python/detail/translate_exception.hpp =================================================================== --- boost/python/detail/translate_exception.hpp (revision 50228) +++ boost/python/detail/translate_exception.hpp (working copy) @@ -9,6 +9,7 @@ # include <boost/call_traits.hpp> # include <boost/type_traits/add_const.hpp> +# include <boost/type_traits/add_reference.hpp> # include <boost/function/function0.hpp> -------------------------------------- Here's the second issue: You also need the threadpool resource: sourceforge.net/projects/threadpool. If you are using the 1_35_0 Boost libraries, you can use version 0.2.4 which is included in the package (in dependencies). If you use a different version of the Boost libraries, you need to get an appropriate threadpool version and replace the files in "dependencies/threadpool/include". Copy into the include directory the contents of the boost directory in the threadpool package, which includes a directory named "include" and a file "threadpool.hpp". And the third, which I haven't yet figured out. After building Visual 5 on Ubuntu and Windows, I find that numpy.int32 is not recognized as an integer that can be converted when needed as a double. For example, vector(int,double,double) is okay, but vector(numpy.int32,double,double) fails. This can occur if a vector argument comes from the use of arange, and it causes several standard VPython example programs to fail. I've been trying to install a manual converter using Boost, but have failed so far due to lack of adequate knowledge of Boost. Bruce Sherwood Helmut Jarausch wrote: > Hi, > > which version of the boost libraries are needed for visualpython? > > On my Gentoo system, the ebuild requires boost-1.35* which is in > conflict with other packages. > Does visualpython have problems with boost-1.37 ? > > Many thanks for a hint, > > Helmut Jarausch > > Lehrstuhl fuer Numerische Mathematik > RWTH - Aachen University > D 52056 Aachen, Germany > > ------------------------------------------------------------------------------ > The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your > production scanning environment may not be a perfect world - but thanks to > Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 > Series Scanner you'll get full speed at 300 dpi even with all image > processing features enabled. http://p.sf.net/sfu/kodak-com > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |