oh it works ! the compilation is started, I hope it will compile fine.

Really thank you for your help.
If it compile correctly can I send you the binary in order to put it on the website ?

Sébastien Ramage
Service Informatique
sram...@poifindus.com
04 74 06 45 39

Ets JANIN
115, rue de la république
69823 Belleville Cedex
Tel : 04 74 06 45 20
Fax : 04 74 66 11 76



Thomas Paviot a écrit :


2009/7/28 Sébastien Ramage <sram...@poifindus.com <mailto:sram...@poifindus.com>>

    After commenting the line related to NIS in the Modules.py script, the
    swig generation works fine but after I get the same error during
    the build.

    I really don't know what's happen, I'm not a c++ guru...


The traceback tells that the acosh function is defined twice. Here is a comment extracted from the pymath.h header file (http://svn.python.org/view/python/branches/release26-maint/Include/pymath.h?view=markup):

/* Python provides implementations for copysign, acosh, asinh, atanh,
* log1p and hypot in Python/pymath.c just in case your math library doesn't

* provide the functions.
*
*Note: PC/pyconfig.h defines copysign as _copysign
*/
/
/A solution is perhaps to say python to use the default acosh and asinh 
functions by defining the HAVE_ACOSH, HAVE_ASINH and HAVE_ATANH macros.


In order to to that, edit 'environment.py' script and look for the following 
lines:
DEFINE_MACROS = [('WNT', None),('WIN32',None),\

('_WINDOWS',None),('CSFDB',None),\
('__PYTHONOCC_MAXINT__',sys.maxint)]


And replace it with the lines:
DEFINE_MACROS = [('WNT', None),('WIN32',None),\

('HAVE_ACOSH',None),('HAVE_ASINH',None),('HAVE_ATANH',None),\
('_WINDOWS',None),('CSFDB',None),\

('__PYTHONOCC_MAXINT__',sys.maxint)]

Then restart the compilation process:

python setup.py build -cmsvc

Let me know about the results you get.

Cheers,

Thomas

------------------------------------------------------------------------

_______________________________________________
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

Reply via email to