On Wed, Mar 11, 2009 at 4:36 AM, Thomas Paviot <thomas.pav...@free.fr> wrote:
> Bryan Bishop a écrit :
>> It seems I'm missing the OCC.NIS module. When I comment it out in the
>> OCCViewer.py file, InteractiveViewer.py successfully runs-- but the
>> wxWidget interface is not responsive and there are on menu options
>> selectable, and there is no main-window OCC viewer widget thingy,
>> which I'm fairly certain is provided by NIS.
>
> I recently added NIS stuff to OCCViewer.py but it doesn't work on my Windows
> machine (crashes on display). I will remove it from the SVN trunk and move
> it to a /test folder.

Okay. I checked out the latest code from svn as of a few moments ago.
Here's my svn --info:

--------------------
URL: svn://svn.gna.org/svn/pythonocc/trunk/src
Repository Root: svn://svn.gna.org/svn/pythonocc
Repository UUID: 7b61ff05-8279-4b50-a019-c63c41e9a459
Revision: 113
Node Kind: directory
Schedule: normal
Last Changed Author: tpaviot
Last Changed Rev: 113
Last Changed Date: 2009-03-11 07:54:38 -0500 (Wed, 11 Mar 2009)
--------------------
(I also ran python setup.py build, which only did one or two calls to
g++, presumably for an updated file or two?)

What is OCC.NIS supposed to do?

> If you want to test pythonOCC display, just do: python wxDisplay.py (should
> display a Box). To have this display works, don't forget to:
> * export DISPLAY=0.0
> * export CSF_GraphicShr='/path to your TKOpenG.so'

Btw, it's supposed to be:
* export DISPLAY=":0.0"
(the colon is important, apparently)

Where can I find TKOpenG.so? I tried looking at togl.sf.net,
downloaded that package and so on, and there's no TKOpenG.so file
given- there are these though: libToglstub2.0.a, libTogl2.0.so; are
these the right files?

--------------------
pythonocc/pythonOCC/Tools/InteractiveViewer# python wxDisplay.py
Traceback (most recent call last):
  File "wxDisplay.py", line 283, in <module>
    frame = AppFrame(None)
  File "wxDisplay.py", line 278, in __init__
    S = BRepPrimAPI_MakeTorus(400,100)
NameError: global name 'BRepPrimAPI_MakeTorus' is not defined
*** glibc detected *** python: double free or corruption (!prev): 0x09404c90 ***
^C
--------------------
(no window is instantiated)

What's causing the "double free or corruption" error? There are many
'warnings' that are generated when running swig and g++ on everything
during the compilation process, is it possible that there's something
being messed up? I wouldn't begin to speculate until the other
problems- like resolving where to find TkOpenG.so- are fixed, so maybe
this will have to wait.

> It's hard to maintain both Windows and Linux platforms at the same time. The

Once the build environment is properly configured, it will become a
piece of cake.

> latest svn rev. is quite unstable (and maybe impossible to compile):  I've
> been  simultaneously working on SCons build and memory management issues
> (under Windows), and will worry  about Linux build when it's done (hopefull
> whithin a few hours).

Another weird occurence-- exporting CAS_ROOT doesn't seem to matter?

---------------------------------------
pythonocc/pythonOCC/src# export
CAS_ROOT=/home/bryan/manufacturing/opencascade/OpenCASCADE6.3.0/ros/
leibniz:/home/bryan/manufacturing/pythonocc/pythonOCC/src# python
setup.py --provides
OopenCascade CAS_ROOT environment variable not set.
Building pythonOCC
Creating __init__.py script.
__init__.py script created.

0.133863210678
----------------------------------------

Hrm.

- Bryan
http://heybryan.org/
1 512 203 0507

_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to