Hi Thomas,

In Line 38 of:
http://code.google.com/p/pythonocc/source/browse/trunk/README#
**

"At the end of the compilation process, be sure the CASROOT env var is set."

How can I set the CASROOT if I already install OpenCascade from my debian
packages? or It is already set?

Regards,

Marcos.


On 14 May 2010 17:15, <pythonocc-users-requ...@gna.org> wrote:

> Send Pythonocc-users mailing list submissions to
>        pythonocc-users@gna.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        https://mail.gna.org/listinfo/pythonocc-users
> or, via email, send a message with subject or body 'help' to
>        pythonocc-users-requ...@gna.org
>
> You can reach the person managing the list at
>        pythonocc-users-ow...@gna.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Pythonocc-users digest..."
>
>
> Today's Topics:
>
>   1. debian compile with python2.6 (John Griessen)
>   2. STEP file creation opensuse 11.1 (Tobias M?ller)
>   3. How to compile python-occ from svn in Ubuntu 10.04
>      (Marcos Elgueta Soulat)
>   4. Re: How to compile python-occ from svn in Ubuntu  10.04
>      (Thomas Paviot)
>   5. Re: How to compile python-occ from svn in Ubuntu 10.04
>      (John Griessen)
>   6. Re: How to compile python-occ from svn in Ubuntu 10.04
>      (John Griessen)
>   7. Re: How to compile python-occ from svn in Ubuntu 10.04
>      (John Griessen)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 14 May 2010 15:07:50 -0500
> From: John Griessen <j...@industromatic.com>
> Subject: [Pythonocc-users] debian compile with python2.6
> To: "pythonOCC users mailing list." <pythonocc-users@gna.org>
> Message-ID: <4bedad96.8030...@industromatic.com>
> Content-Type: text/plain; charset=windows-1252; format=flowed
>
> Thomas Paviot wrote:
>
> > Hi John,
> >
> > SWIG parameters are defined in the ./src/wrapper/environment.py sciprt.
> .
> .
> >
> > python setup.py build -f
>
> Now I get this:
>
> j...@toolbench:/backups-650mb/pythonocc-read-only/src$ python setup.py
> build -f
> Building pythonOCC-0.5dev for linux2
> Checking OCC Standard_Transient.hxx header ... found
> Checking OpenCASCADE libraries  BinLPlugin  BinPlugin  BinXCAFPlugin
>  FWOSPlugin  PTKernel  StdLPlugin  StdPlugin  TKAdvTools
> TKBin  TKBinL  TKBinTObj  TKBinXCAF  TKBO  TKBool  TKBRep  TKCAF  TKCDF
>  TKernel  TKFeat  TKFillet  TKG2d  TKG3d  TKGeomAlgo
> TKGeomBase  TKHLR  TKIGES  TKLCAF  TKMath  TKMesh  TKMeshVS  TKNIS
>  TKOffset  TKOpenGl  TKPCAF  TKPLCAF  TKPrim  TKPShape
> TKService  TKShapeSchema  TKShHealing  TKStdLSchema  TKStdSchema  TKSTEP
>  TKSTEP209  TKSTEPAttr  TKSTEPBase  TKSTL  TKTObj
> TKTopAlgo  TKV2d  TKV3d  TKVRML  TKXCAF  TKXCAFSchema  TKXDEIGES  TKXDESTEP
>  TKXMesh  TKXml  TKXmlL  TKXmlTObj  TKXmlXCAF
> TKXSBase  XCAFPlugin  XmlLPlugin  XmlPlugin  XmlXCAFPlugin  ... found.
> Checking salomegeometry GEOMAlgo_Algo.hxx header ... found
> Checking salomegeometry GEOM library ... found        > Linux related
> options are set up from lines 171 to 173:
>  >
>  >     SWIG_OPTS =
> ['-O','-c++','-DHAVE_LIMITS_H','-DHAVE_CONFIG_H','-DCSFDB',\
>  >
>  >
> '-w302,401,314,509,512','-DOCC_CONVERT_SIGNALS','-DLIN','-DLININTEL','-D_GNU_SOURCE=1',\
>  >                  '-outdir','%s'%SWIG_OUT_DIR]
>  >
>  > If you want to add a SWIG option, just add 'no-modern','-classic' and
>  > '-nomodernargs' options to the SWIG_OPTS list:
>  >     SWIG_OPTS =
>  >
> ['-O','-c++','-no-modern','-classic','nomodernargs','-DHAVE_LIMITS_H','-DHAVE_CONFIG_H','-DCSFDB',\
>  >
>  >
> '-w302,401,314,509,512','-DOCC_CONVERT_SIGNALS','-DLIN','-DLININTEL','-D_GNU_SOURCE=1',\
>  >                  '-outdir','%s'%SWIG_OUT_DIR]
>  >
>  > However, you will have to *force* rebuild of the whole pythonocc package
>  > by passing the -f args to the setup.py script:
> Checking salomesmesh SMESH_Mesh.hxx header ... found
> Checking boost/shared_ptr.hpp header ... found
> Checking salomesmesh SMESH library ... found
> Creating __init__.py script.
> __init__.py script created.
> running build
> running build_py
> .
> .
> .
> .
> running build_ext
> building 'OCC._Standard' extension
> swigging
> /backups-650mb/pythonocc-read-only/src/wrapper/SWIG/linux_darwin/Standard.i
> to
>
> /backups-650mb/pythonocc-read-only/src/wrapper/SWIG/linux_darwin/Standard_wrap.cpp
> swig -python -O -c++ -classic -nomodernargs -nofastunpack -DHAVE_LIMITS_H
> -DHAVE_CONFIG_H -DCSFDB -w302,401,314,509,512
> -DOCC_CONVERT_SIGNALS -DLIN -DLININTEL -D_GNU_SOURCE=1 -outdir
> /backups-650mb/pythonocc-read-only/src/build/swig_output_linux2_py26 -o
>
> /backups-650mb/pythonocc-read-only/src/wrapper/SWIG/linux_darwin/Standard_wrap.cpp
> /backups-650mb/pythonocc-read-only/src/wrapper/SWIG/linux_darwin/Standard.i
> g++ -fno-strict-aliasing -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes
> -fPIC -DHAVE_CONFIG_H -DHAVE_LIMITS_H -DCSFDB
> -DOCC_CONVERT_SIGNALS -DLIN -DLININTEL -D_GNU_SOURCE=1
> -D__PYTHONOCC_MAXINT__=2147483647 -I/usr/include/opencascade
> -I/backups-650mb/pythonocc-read-only/src/wrapper/SWIG/linux_darwin
> -I/usr/include/python2.6 -c
> /backups-650mb/pythonocc-read-only/src/wrapper/SWIG/linux_darwin/Standard_wrap.cpp
> -o
> build/temp.linux-i686-2.6/backups-650mb/pythonocc-read-only/src/wrapper/SWIG/linux_darwin/Standard_wrap.o
> -march=i686
> cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
> Ada/C/ObjC but not for C++
> /backups-650mb/pythonocc-read-only/src/wrapper/SWIG/linux_darwin/Standard_wrap.cpp:150:20:
> error: Python.h: No such file or directory
> /backups-650mb/pythonocc-read-only/src/wrapper/SWIG/linux_darwin/Standard_wrap.cpp:781:
> error: ?PyObject? was not declared in this
> scope
> /backups-650mb/pythonocc-read-only/src/wrapper/SWIG/linux_darwin/Standard_wrap.cpp:781:
> error: ?str? was not declared in this scope
> /backups-650mb/pythonocc-read-only/src/wrapper/SWIG/linux_darwin/Standard_wrap.cpp:782:
> error: expected ?,? or ?;? before ?{? token
> /backups-650mb/pythonocc-read-only/src/wrapper/SWIG/linux_darwin/Standard_wrap.cpp:805:
> error: expected initializer before ?*? token
>
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 14 May 2010 22:49:37 +0200
> From: Tobias M?ller <tobi...@vodafone.de>
> Subject: [Pythonocc-users] STEP file creation opensuse 11.1
> To: <pythonocc-users@gna.org>
> Message-ID:
>        <2a1805de24e30e9480067e4820957...@www-03.email.vodafone.de>
> Content-Type: text/plain; charset=iso-8859-1
>
> Hi Thomas,
>
> I would like to give you a short info about the "." versus "," problem in
> the step-file export (you remember the dezimal sign problem): If I comment
> out all display related commands,
> eg.
>
> #from OCC.Display.SimpleGui import *
> #display, start_display, add_menu, add_function_to_menu = init_display()
>
> and run the script again, the dezimal sign is correct: "."
>
>
> Another error I get in the Level2-examples:
>
> tmuel...@linux-tmueller:~/work/PythonOCC/pythonOCC-0.4-sample/Level2/PAF>
> python test_gears_sympy.py
> The Relation class needs the sympy library. Please check
> http://code.google.com/p/sympy/
> Traceback (most recent call last):
>  File "test_gears_sympy.py", line 26, in <module>
>    from sympy import *
> ImportError: No module named sympy
>
> Do you have an idea, what could be the problem under opensuse 11.1.
>
> Thanks in advance,
>
> Tobias
>
>
>
>
>
> ----------------------------------------------------------------------
> From: "Thomas Paviot" <tpav...@gmail.com>
> To: "pythonOCC users mailing list." <pythonocc-users@gna.org>
> Date: Fri, 14 May 2010 21:49:44 +0200
> Subject: Re: [Pythonocc-users] Fixing python-occ visualization in
> Ubuntu10.04 - resume
>
>
> > Hi Marcos,
> >
> > That's what I thought : it comes from the OpenGl driver ("from
> > /usr/lib/dri/i915_dri.so").
> >
> > I think it comes from the way I init the viewer : just after the Viewer
> is
> > created, I set up default OCC lights:
> >
> > myV3dViewer->SetDefaultLights();
> > myV3dViewer->SetLightOn();
> >
> > I will try to move this out from the C++ Display3d.cpp file to pure
> python.
> > It will be easier to bug and, most important, to fix. Don't know yet how
> I
> > can test the modification I make : I don't have a Linux machine with this
> > specific graphic hardware. The best would be that you compile pythonocc
> > yourself and test if. The latest revision of the svn trunk is much more
> > convenient to build and it can be done easily.
> >
> > Regards,
> >
> > Thomas
> >
> > 2010/5/14 Marcos Elgueta Soulat <m.a.elguetasou...@gmail.com>
> >
> > > Hi Thomas,
> > >
> > > I will resume in the same order than you, according to your
> description, I
> > > notice something (the segmentation fault)
> > >
> > > If I sum up:
> > > - I run Ubuntu 10.04 on  a machine with an Intel chipset graphic
> hardware,
> > > - I installed pythonocc-0.4,
> > > - I properly set up the CSF_GraphicShr env variable,
> > > - when I try to create a graphic Window from the SimpleGui.py module, I
> > > have a black window and you have to kill the process. (I run again the
> gdb
> > > session an I get segfault in the trace or segmentation fault, it is
> the same
> > > right?):
> > >
> > > *This is the trace (of gdb session):*
> > >
> > > m...@maes:~$ export CSF_GraphicShr=/usr/lib/libTKOpenGl-6.3.0.so
> > > m...@maes:~$ gdb python
> > > GNU gdb (GDB) 7.1-ubuntu
> > > Copyright (C) 2010 Free Software Foundation, Inc.
> > > License GPLv3+: GNU GPL version 3 or later <
> > > http://gnu.org/licenses/gpl.html>
> > > This is free software: you are free to change and redistribute it.
> > > There is NO WARRANTY, to the extent permitted by law.  Type "show
> copying"
> > > and "show warranty" for details.
> > > This GDB was configured as "i486-linux-gnu".
> > > For bug reporting instructions, please see:
> > > <http://www.gnu.org/software/gdb/bugs/>...
> > > Reading symbols from /usr/bin/python...(no debugging symbols
> found)...done.
> > > (gdb) r
> > > Starting program: /usr/bin/python
> > > [Thread debugging using libthread_db enabled]
> > > Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
> > > [GCC 4.4.3] on linux2
> > > Type "help", "copyright", "credits" or "license" for more information.
> > > >>> from OCC.Display.SimpleGui import *
> > > >>> display, start_display, add_menu, add_function_to_menu =
> init_display()
> > > Display3d class initialization starting ...
> > > Graphic device created.
> > > Xw_Window created.
> > > Viewer created.
> > >
> > > Program received signal SIGSEGV, Segmentation fault.
> > > 0xaee68990 in intel_region_buffer () from /usr/lib/dri/i915_dri.so
> > > (gdb)
> > >
> > > *this is the trace (of set the CSF_GraphicShr)*
> > >
> > > m...@maes:~$ python
> > > Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
> > > [GCC 4.4.3] on linux2
> > > Type "help", "copyright", "credits" or "license" for more information.
> > > >>> import os
> > > >>> os.environ['CSF_GraphicShr']
> > > '/usr/lib/libTKOpenGl-6.3.0.so' <http://libtkopengl-6.3.0.so/>
> > >
> > >
> > > - on my machine, I can run Salome 5.1.3 without any problem.
> > >
> > > Regards.
> > >
> > > Marcos.
> > >
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > Pythonocc-users mailing list
> > > Pythonocc-users@gna.org
> > > https://mail.gna.org/listinfo/pythonocc-users
> > >
> > >
> >
>
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Fri, 14 May 2010 16:49:39 -0400
> From: Marcos Elgueta Soulat <m.a.elguetasou...@gmail.com>
> Subject: [Pythonocc-users] How to compile python-occ from svn in
>        Ubuntu 10.04
> To: pythonocc-users@gna.org
> Message-ID:
>        <aanlktindklfcu9tkysrudjstlod93oygsqgcxmdtz...@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Thomas,
>
> I'm sorry for the question, but where I can found the correct information
> to
> compile python-occ from SVN in Ubuntu 10.04?
>
> I was searching in google and I found a page (
> http://adl.serveftp.org/dokuwiki/pythonocc), but the only packages
> installed
> from svn are related with opencascade, that I already have.
>
> Thanks, currently I continue searching...
>
> Regards,
>
> Marcos
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: /public/pythonocc-users/attachments/20100514/3ce90a1b/attachment.htm
>
> ------------------------------
>
> Message: 4
> Date: Fri, 14 May 2010 22:57:00 +0200
> From: Thomas Paviot <tpav...@gmail.com>
> Subject: Re: [Pythonocc-users] How to compile python-occ from svn in
>        Ubuntu  10.04
> To: "pythonOCC users mailing list." <pythonocc-users@gna.org>
> Message-ID:
>        <aanlktikqhofn5lqggy8kuncwkgahg6m0vstekiagg...@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Marcos,
>
> http://code.google.com/p/pythonocc/source/browse/trunk/README
>
> (I should have named it INSTALL).
>
> Thomas
>
> 2010/5/14 Marcos Elgueta Soulat <m.a.elguetasou...@gmail.com>
>
> > Hi Thomas,
> >
> > I'm sorry for the question, but where I can found the correct information
> > to compile python-occ from SVN in Ubuntu 10.04?
> >
> > I was searching in google and I found a page (
> > http://adl.serveftp.org/dokuwiki/pythonocc), but the only packages
> > installed from svn are related with opencascade, that I already have.
> >
> > Thanks, currently I continue searching...
> >
> > Regards,
> >
> > Marcos
> >
> >
> >
> > _______________________________________________
> > Pythonocc-users mailing list
> > Pythonocc-users@gna.org
> > https://mail.gna.org/listinfo/pythonocc-users
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: /public/pythonocc-users/attachments/20100514/0c9258e2/attachment.htm
>
> ------------------------------
>
> Message: 5
> Date: Fri, 14 May 2010 16:00:32 -0500
> From: John Griessen <j...@industromatic.com>
> Subject: Re: [Pythonocc-users] How to compile python-occ from svn in
>        Ubuntu 10.04
> To: "pythonOCC users mailing list." <pythonocc-users@gna.org>
> Message-ID: <4bedb9f0.1090...@industromatic.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> I've been following this build write up:
>
> http://code.google.com/p/pythonocc/wiki/InstallationLinux
>
> It starts with prerequisite opencascade by package or source build.
>
> The debian packages are:
> libopencascade-dev        6.3.0.dfsg.1-4
> libopencascade-foundation
> libopencascade-modeling-6
> libopencascade-modeling-dev
> libopencascade-ocaf-dev
> libopencascade-ocaf-lite-dev
> libopencascade-visualization-de
>
>
> If you want SMESH and GEOM you build them first:
> build GEOM by:
>
> cd ./src/contrib/GEOM
> cmake .
> make
> sudo make install
>
> build SMESH by:
>
> cd ./src/contrib/SMESH
> cmake .
> make
> sudo make install
>
>
> John
>
>
>
> ------------------------------
>
> Message: 6
> Date: Fri, 14 May 2010 16:12:08 -0500
> From: John Griessen <j...@industromatic.com>
> Subject: Re: [Pythonocc-users] How to compile python-occ from svn in
>        Ubuntu 10.04
> To: "pythonOCC users mailing list." <pythonocc-users@gna.org>
> Message-ID: <4bedbca8.5050...@industromatic.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> John Griessen wrote:
>
> > The debian packages are:
> > libopencascade-dev        6.3.0.dfsg.1-4
> > libopencascade-foundation
> > libopencascade-modeling-6.3.0
>
> and
>
> libopencascade-visualization-6.3.0
> libopencascade-foundation-6.3.0
> libopencascade-ocaf-6.3.0
>
> libopencascade-ocaf-lite-6.3.0
>
>
> apt-get build-dep libopencascade-foundation-6.3.0
>
> is a good thing to try
>
> Is there an debian package for pythonocc to use this way?
>
> John
>
>
>
> ------------------------------
>
> Message: 7
> Date: Fri, 14 May 2010 16:15:10 -0500
> From: John Griessen <j...@industromatic.com>
> Subject: Re: [Pythonocc-users] How to compile python-occ from svn in
>        Ubuntu 10.04
> To: "pythonOCC users mailing list." <pythonocc-users@gna.org>
> Message-ID: <4bedbd5e.2080...@industromatic.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> John Griessen wrote:
>
> > apt-get build-dep libopencascade-foundation-6.3.0
> >
> > is a good thing to try
>
> No, it's not.  Needs 255MB when done and the binary packages for
> opencascade seemed to be working OK in compiling pythonocc for python2.5.
>
> John
>
>
>
> ------------------------------
>
> _______________________________________________
> Pythonocc-users mailing list
> Pythonocc-users@gna.org
> https://mail.gna.org/listinfo/pythonocc-users
>
>
> End of Pythonocc-users Digest, Vol 18, Issue 33
> ***********************************************
>



-- 
Marcos A. Elgueta Soulat
Student of Aerospace Engineering,
Department of Mechanics Engineering,
University of Concepción, Chile.

mail: m.a.elguetasou...@gmail.com
mobile(1): +56 9 82208407
mobile(2): +56 9 83036927
skype: marcos.elgueta.soulat
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to