2010/4/29 John English <j...@boulderes.com> > > >> > Hi, >> > >> > it's really easy to install it under ubuntu, too. >> >> >> Thanks! >> >> 'easy' but quite long... >> >> >> > Follow the following steps: >> > >> > sudo apt-get install opencascade-dev g++ swig python-dev (i hope these >> > are all packages u need) >> > tar xzf <pythonoccsource.tar.gz> >> > cd PythonOCC-0.4/src >> > python setup.py --with-occ-include=/usr/include/opencascade >> > --with-occ-lib=/usr/lib bdist >> > sudo python setup.py install >> > >> > this should have done the trick if I remember problerly ;-) >> > >> >> I think you however don't benefit from the GEOM and SMESH wrappers. >> >> >> > >> > have fun, >> > Sebastian >> > >> >> Cheers, >> >> Thomas >> > > Thanks for the tips Sebastian and Thomas, > > I'm running into the following error, when trying to compile on Ubuntu 9.10 > /usr/bin/ld: cannot find -lTKCDLFront > collect2: ld returned 1 exit status > error: command 'g++' failed with exit status 1 > > I also noticed that there is no package in the 9.10 repositories called > opencascade-dev. I presume you meant libopencascade-dev? > > It seems to be the same issue that Thore Oltersdorf mentioned on the list a > while back: > http://www.mail-archive.com/pythonocc-users@gna.org/msg00720.html > > For now I'm still playing around in an OpenSUSE virtual machine, but I'd be > much happier to get into Ubuntu 10.04) for development, since that's where > I'm comfortable and doing everything else. > > Regarding Thomas's comment, I think the GEOM wrapper is critical for what > I'm trying to do with PythonOCC, so I need it to compile with support for > that. Any suggestions? > > Thanks again! > -John >
For the compilation of both GEOM and SMESH, instructions are available from the README file : """ - salomegeometry 5.1.2.7. Download the file geom-5.1.2.7.zip from http://sourceforge.net/projects/salomegeometry/ Extract the content of this file to any temporary folder then: cd geom-5.1.2.7 cd adm/lin autoreconf -- install ./configure --prefix=/somewhere make sudo make install NOTE: when installation is done, you should add the GEOM_ROOT env var to your .bash_profile - boost headers >= 1.38.0 (http://www.boost.org). boost headers are required by salomesmesh (see next item). Just download the boost archive and extract the content of this file. NOTE: it's not necessary to build boost.python or anything else. Just the headers are required. - salomesmesh 5.1.2.2 . Download the file smesh-5.1.2.2.zip from http://sourceforge.net/projects/salomesmesh/. Exract the content of this file to any temporary folder then: cd smesh-5.1.1.2 cd adm/lin autoreconf --install ./configure --prefix=/somewhere_else make sudo make install Note: it may be necessary that you provide the boost headers path to the configure script. To do so, just export the CPPFLAGS env var before you call the configure script: export CPPFLAGS=-I/me/boost-1.38.0 BUILD: ====== cd pythonOCC-0.4 cd src The setup.py script hat to be run. python setup.py build --enable-geom --enable-smesh install NOTE: the setup.py script looks for the CASROOT, GEOM_ROOT and SMESH_ROOT to find where dynamic libraries are located. If the libraries are not found (i.e. the compilation process fails), you have to specify the path of these libraries from the command line: python setup.py build install --enable-geom --enable-smesh --with-geom-lib=/path_to_geom_libs --with-smesh-lib=/path_to_smesh_libs --with-boost-include=/path_to_boost_headers --with-occ-include=/path_to_opencascade_inc --with-occ-libs=/path_to_opencascade_libs NOTE: you can speed up the compilation process with multiprocessing. If you have a dual core machine, just add the -j flag with the number of cores: python setup.py build install --enable-geom --enable-smesh -j2 """ CMake support was recently added for GEOM and SMESH : the compilation process should be easier for the next pythonocc release. Best Regards, Thomas
_______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users