Hi Denis, Thank you very much for this set of patches. I'll have a look at them as soon as I'm back in Paris.
Regards, Thomas 2010/5/20 Denis Barbier <bou...@gmail.com> > Hi, > > I spent some time tonight to try to compile pythonocc on Debian unstable. > Here are some patches: > - 0001-Fix-end-of-lines.patch > End-of-line is not consistent, some files have a mix of DOS and > Unix conventions > - 0002-Fix-help-message-with-salomegeom-option-has-been-rep.patch > Subject says it all > - 0003-Replace-os.mkdir-init_directory-by-os.makedirs-init_.patch > os.mkdir() does not create a directory if parent directory does not > exist > - 0004-New-cmake-variables-GEOM_INSTALL_LIB_DIR-SMESH_INSTA.patch > This patch allows installing GEOM and SMESH anywhere, not > necessarily under /usr/local/lib. > - 0005-Allow-setting-OCC_LIB_PATH.patch > On Debian, CASROOT is not set; with this patch, one can set > OCC_LIB_PATH to /usr/lib > > I was then able to run: > cd src/contrib/SMESH/ > cmake -DCMAKE_INSTALL_PREFIX:PATH=$HOME/pythonocc \ > -DOCC_INCLUDE_PATH:PATH=/usr/include/opencascade \ > -DOCC_LIB_PATH:PATH=/usr/lib . > make install > cd ../GEOM > cmake -DCMAKE_INSTALL_PREFIX:PATH=$HOME/pythonocc \ > -DOCC_INCLUDE_PATH:PATH=/usr/include/opencascade \ > -DOCC_LIB_PATH:PATH=/usr/lib . > make install > cd ../.. > python setup.py \ > --with-geom-lib=$HOME/pythonocc/lib \ > --with-smesh-lib=$HOME/pythonocc/lib \ > --with-occ-include=/usr/include/opencascade \ > --with-occ-lib=/usr/lib build > > Compilation is not finished yet, will see later how to specify > installation path of pythonocc . > > Denis > > _______________________________________________ > Pythonocc-users mailing list > Pythonocc-users@gna.org > https://mail.gna.org/listinfo/pythonocc-users > >
_______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users