|
From: Bruce S. <Bru...@nc...> - 2010-06-07 18:03:28
|
I don't have the Ubuntu 10.04 python-visual running, but your code works
fine with my own build on 32-bit and 64-bit Ubuntu. This is the only
thing that was problematic:
The following change is necessary if you get an error in
translate_exception.hpp:
In /usr/include (probably), change
/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>
--------------------------------------
(That is, add "# include <boost/type_traits/add_reference.hpp>"
after the
statement "# include <boost/type_traits/add_const.hpp>".)
This is the updated information in the CVS version of
vpython-core2/INSTALL.txt at sourceforge.net.
I posted a complaint and question about this at
https://answers.launchpad.net/ubuntu/+question/112778
I can't find any substantive difference between the source package used by someone to build python-visual and the source I'm building from, so I can't understand how that someone was able to build python-visual, since there is this problem with Boost. Alas, no one has responded to my question.
Bruce
On 6/7/2010 8:29 AM, Gary Pajer wrote:
> On Sat, Jun 5, 2010 at 8:56 AM, Symion <kn...@ip...
> <mailto:kn...@ip...>> wrote:
>
> On 5/06/2010 2:52 AM, Gary Pajer wrote:
>> On Thu, Jun 3, 2010 at 6:12 PM, Guy K. Kloss
>> <g....@ma... <mailto:g....@ma...>> wrote:
>>
>> On Fri, 04 Jun 2010 04:08:46 Gary Pajer wrote:
>> > If I remove the line containing scene.range the original
>> program works
>> > fine. I'm using python-visual from the Ubuntu repository.
>> > Can someone else try it? I'd be especially interested to
>> know if it
>> > crashes using the respository version, but works using
>> Bruce's home-made
>> > version.
>>
>>
>
> I think you have to declare scene.range Before you can use it.
> #----------------------------------
> from visual import *
> scene.range = 10
> sphere()
> scene.range = scene.range * 3.
>
> works fine!
>
>
>
> Not for me. It no longer segfaults. But now a window pops up
> containing a yellow sphere, and a split second later the sphere is
> replaced by yellow garbage. The window responds to rotation mouse
> gestures, but not zooms.
>
> Point of interest #1: the original code worked fine under WinXP.
> Point of interest #2: it was not necessary to declare scene.range in
> WinXP.
> Something else: I don't know which version of visual I was using when
> I was using WinXP.
>
> Bruce, if I'm not mistaken you are relocating, and therefore probably
> very busy. But whenever it's comfortable, I'd appreciate it if you
> can try my code on your home-grown build, and, if you still have it
> available, your from-Ubuntu-repository build in order to see if it
> works on one but not on the other. If it does, any pointers on
> building on Ubuntu would be appreciated.
>
> Thanks very much,
> gary
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit. See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
>
>
> _______________________________________________
> Visualpython-users mailing list
> Vis...@li...
> https://lists.sourceforge.net/lists/listinfo/visualpython-users
>
|