OK I found my problem Python.h was missing so I install the package python-dev on my ubuntu box
and now I get this error /usr/bin/ld: cannot find -lSketcher collect2: ld a retourné 1 code d'état d'exécution error: command 'g++' failed with exit status 1 I remember that salomegeometry is required, maybe this is the problem ? see you later ;) 2009/10/23 Sébastien Ramage <sebastien.ram...@gmail.com> > after applying the patch , it simply work. > > but now I try to compile pythonOCC and I have a problem > > cc1plus: attention : l'option de la ligne de commande "-Wstrict-prototypes" > est valide pour Ada/C/ObjC mais pas pour C++ > /home/doudz/Bureau/pythonOCC-0.3/src/wrapper/SWIG/linux_darwin/Standard_wrap.cpp:145:20: > erreur: Python.h : Aucun fichier ou dossier de ce type > /home/doudz/Bureau/pythonOCC-0.3/src/wrapper/SWIG/linux_darwin/Standard_wrap.cpp:2600:4: > erreur: #error "This python version requires swig to be run with the > '-classic' option" > /home/doudz/Bureau/pythonOCC-0.3/src/wrapper/SWIG/linux_darwin/Standard_wrap.cpp:2604:3: > erreur: #error "This python version requires swig to be run with the > '-nomodern' option" > /home/doudz/Bureau/pythonOCC-0.3/src/wrapper/SWIG/linux_darwin/Standard_wrap.cpp:2607:3: > erreur: #error "This python version requires swig to be run with the > '-nomodernargs' option" > /home/doudz/Bureau/pythonOCC-0.3/src/wrapper/SWIG/linux_darwin/Standard_wrap.cpp:751: > erreur: expected initializer before ‘*’ token > /home/doudz/Bureau/pythonOCC-0.3/src/wrapper/SWIG/linux_darwin/Standard_wrap.cpp:806: > erreur: expected initializer before ‘*’ token > /home/doudz/Bureau/pythonOCC-0.3/src/wrapper/SWIG/linux_darwin/Standard_wrap.cpp:827: > erreur: expected initializer before ‘*’ token > In file included from /usr/include/c++/4.3/stdexcept:43, > from > /home/doudz/Bureau/pythonOCC-0.3/src/wrapper/SWIG/linux_darwin/Standard_wrap.cpp:2625: > /usr/include/c++/4.3/exception:40: erreur: expected declaration before end > of line > error: command 'g++' failed with exit status 1 > > > > > > > 2009/10/23 Thomas Paviot <tpav...@gmail.com> > > I agree with Jelle, you can compile OCC without wok (and also without >> draw). You can disable wok with the flag --enable-wok=no from the >> ./configure script. >> >> It's however strange that wok compilation fails. It may come from your >> Tcl/Tk installation. >> >> Cheers, >> >> Thomas >> >> 2009/10/23 Jelle Feringa <jelleferi...@gmail.com> >> >> >>> Try to see if you can compile OCC _without_ WOK. >>> Its a module that is not used anywhere... >>> Just so you know ;') >>> >>> -jelle >>> >>> On Oct 23, 2009, at 4:33 PM, Sébastien Ramage wrote: >>> >>> Finally I find the working patch here >>> >>> http://bugs.gentoo.org/attachment.cgi?id=182311 >>> >>> I was just a indentation problem between this and my previous patch file >>> >>> >>> >>> 2009/10/23 Sébastien Ramage <sebastien.ram...@gmail.com> >>> >>>> Hi all! >>>> >>>> Thank you for advices. >>>> >>>> I have start the long compilation process but now it failed saying : >>>> ../../../src/WOKUnix/WOKUnix_FDescr.cxx: In member function ‘void >>>> WOKUnix_FDescr::Dup()’: >>>> ../../../src/WOKUnix/WOKUnix_FDescr.cxx:249: attention : ignoring return >>>> value of ‘int dup(int)’, declared with attribute warn_unused_result >>>> ../../../src/WOKUnix/WOKUnix_FDescr.cxx: In member function >>>> ‘Handle_TCollection_HAsciiString WOKUnix_FDescr::ReadLine()’: >>>> ../../../src/WOKUnix/WOKUnix_FDescr.cxx:355: attention : ignoring return >>>> value of ‘char* fgets(char*, int, FILE*)’, declared with attribute >>>> warn_unused_result >>>> ../../../src/WOKUnix/WOKUnix_FDescr.cxx: In function ‘FILE* >>>> _wokunix_fdopen(int)’: >>>> ../../../src/WOKUnix/WOKUnix_FDescr.cxx:436: attention : deprecated >>>> conversion from string constant to ‘char*’ >>>> ../../../src/WOKUnix/WOKUnix_FDescr.cxx:443: attention : deprecated >>>> conversion from string constant to ‘char*’ >>>> ../../../src/WOKUnix/WOKUnix_FDescr.cxx:449: attention : deprecated >>>> conversion from string constant to ‘char*’ >>>> In function ‘int open(const char*, int, ...)’, >>>> inlined from ‘WOKUnix_FDescr WOKUnix_FDescr::BuildNamedPipe()’ at >>>> ../../../src/WOKUnix/WOKUnix_FDescr.cxx:205: >>>> /usr/include/bits/fcntl2.h:51: erreur: call to ‘__open_missing_mode’ >>>> declared with attribute error: open with O_CREAT in second argument needs 3 >>>> arguments >>>> make[3]: *** [WOKUnix_FDescr.lo] Erreur 1 >>>> make[3]: quittant le répertoire « >>>> /home/doudz/Bureau/OpenCASCADE6.3.0/ros/adm/make/TKWOK » >>>> make[2]: *** [all-recursive] Erreur 1 >>>> make[2]: quittant le répertoire « >>>> /home/doudz/Bureau/OpenCASCADE6.3.0/ros/adm/make » >>>> make[1]: *** [all-recursive] Erreur 1 >>>> make[1]: quittant le répertoire « >>>> /home/doudz/Bureau/OpenCASCADE6.3.0/ros » >>>> make: *** [all] Erreur 2 >>>> >>>> I think I need to apply this patch : >>>> http://www.opencascade.org/org/forum/thread_15444/ >>>> >>>> But I don't really know how... >>>> I have make a file name mypatch and try something like >>>> patch < mypatch >>>> but I get: >>>> patching file WOKUnix_FDescr.cxx >>>> patch: **** malformed patch at line 4: if(mknod(apath.ToCString(), 0700 >>>> | S_IFIFO, 0)) >>>> >>>> >>>> ... so any idea ? >>>> >>>> Thank you >>>> >>>> Seb >>>> >>>> >>>> >>>> >>>> 2009/10/16 Arthur Magill <arthur.mag...@epfl.ch> >>>> >>>> Hi Sébastien, >>>>> >>>>> I think libtool isn't installed by default on Ubuntu (along with the >>>>> remaining autotools). Try something like >>>>> >>>>> apt-get install libtool autoconf automake autotools-dev >>>>> >>>>> Let us know if it works. >>>>> >>>>> Arthur >>>>> >>>>> >>>>> Sébastien Ramage wrote: >>>>> > Hi Thomas, >>>>> > >>>>> > I'm trying to install pythonOCC on my ubuntu but I cannot install >>>>> > OpenCascade 6.30 >>>>> > I have look at the wiki >>>>> > >>>>> http://www.pythonocc.org/wiki/index.php/Installing_OpenCASCADE_on_Linux >>>>> > but it failed on updating libtool because I have no >>>>> > /usr/share/libtool/ltmain.sh >>>>> > >>>>> > can you help me ? >>>>> > >>>>> > Sébastien >>>>> > >>>>> >>>>> >>>>> -- >>>>> >>>>> Arthur Magill, PhD >>>>> RF Engineer >>>>> >>>>> Centre d'Imagerie BioMédicale (CIBM) >>>>> Laboratory for Functional and Metabolic Imaging (LIFMET) >>>>> Ecole Polytechnique Fédérale de Lausanne (EPFL) >>>>> Station 6, CH F1 532 (Bâtiment CH), >>>>> CH-1015 Lausanne, >>>>> Switzerland >>>>> >>>>> tel: +41 21 693 0569 >>>>> fax: +41 21 693 7960 >>>>> email: arthur.mag...@epfl.ch >>>>> >>>>> _______________________________________________ >>>>> 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 >>> >>> >>> >>> _______________________________________________ >>> 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 >> >> >
_______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users