you think it's a conflict ?
but the message said that asinh is missing....

C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(308) : error C3861: 'asinh' : identificateur introuvable

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>>

    Hi !
    So I install Microsoft Visual c++ express 2008 and the last swig
    1.3.39 and start the compilation using this :
    c:\python26\python setup.py build -cmsvc

    And I got an error :

    C:\OpenCASCADE6.3.0\ros\inc\Standard_math.hxx(28) : error C2375:
    'acosh' : redéfinition ; liaison différente
            c:\python26\include\pymath.h(26) : voir la déclaration de
    'acosh'
    C:\OpenCASCADE6.3.0\ros\inc\Standard_math.hxx(29) : error C2375:
    'asinh' : redéfinition ; liaison différente
            c:\python26\include\pymath.h(30) : voir la déclaration de
    'asinh'
    C:\OpenCASCADE6.3.0\ros\inc\Standard_math.hxx(30) : error C2375:
    'atanh' : redéfinition ; liaison différente
            c:\python26\include\pymath.h(34) : voir la déclaration de
    'atanh'
    C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(308) : error C3861:
    'asinh' : identificateur introuvable
    error: command '"C:\Program Files\Microsoft Visual Studio
    9.0\VC\BIN\cl.exe"' failed with exit status 2


It looks like a conflict between python2.6 and MSVC9 math headers.


    Maybe I need to regenerate the swig files. I install pygccxml 1.0
    and py++ 1.0 and gccxml


No. The SWIG .i files does not depend on the version or python nor MSVC. It only depends on the platform on which they are generated (Windows/Linux).
    0.9 (found here http://sourceforge.net/projects/pygccxml/files/ )
    and do this :
    c:\python26\python setup.py build -cmsvc -generate_swig
    it ask me to modify Standard_Real.hxx header file

    and after a long time it said
    C:\OpenCASCADE6.3.0\ros\inc\TopOpeBRep_tools.hxx:10:34: error:
    TopOpeBRepDS_tools.hxx: No such file or directory

    so I create a empty file TopOpeBRepDS_tools.hxx and restart
    c:\python26\python setup.py build -cmsvc -generate_swig.


This step should be automated by the scripts I developed.


    at this time, it's in progress...


At the end of the process, you can diff your .i files with mines. You'll see they're exactly the same.

The problem may come from a missing or broken preprocessor #define.

Thomas


    Sébastien Ramage
    Service Informatique
    sram...@poifindus.com <mailto: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


    Sébastien Ramage a écrit :
    Juste for information, the python 2.6 documentation say that
    Microsoft Visual Studio 2008 (version 9.0) is needed not 2003
    version.
    Sébastien Ramage
    Service Informatique
    sram...@poifindus.com <mailto: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

    Sébastien Ramage a écrit :
    hum ok,

    I will try to compile it tomorrow and if it works (I hope) I
    will keep the binary available.
    Thank you
    Sébastien Ramage
    Service Informatique
    sram...@poifindus.com <mailto: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 :
    Hi Sébastien,

    The binary pythonOCC distribution for Windows is currently only
    available for Python2.5. However, I successfully compiled
    pythonOCC under Ubuntu Linux 9.04 with Python2.6. Moving from
    2.5 to 2.6 on Windows is then only a compilation work to
    achieve, and everything *should be* fine although it's not yet
    been tested.

    If you want to compile pythonOCC by yourself, you need
    Microsoft Visual Studio 2003 or higher, SWIG 1.3.36 or higher,
    OpenCASCADE 6.3.0 and Pythonof course. Then read the dedicated
    page on the wiki.

    A new release is planned for the next week. Please let me know
    if you succeed otherwise I will do it.

    Best Regards,

    Thomas

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

        Hi !

        I would like to use PythonOCC but I have recently moved to
        Python 2.6.
        where can I find PythonOCC for Python 2.6 somewhere ?
        I'm working under Windows XP.
        If it doesn't exists yet, how can I compile PythonOCC with
        python 2.6 ?
        (for free naturally)

        Thank you



        --
        Sébastien Ramage
        Service Informatique
        sram...@poifindus.com <mailto: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



        _______________________________________________
        Pythonocc-users mailing list
        Pythonocc-users@gna.org <mailto:Pythonocc-users@gna.org>
        https://mail.gna.org/listinfo/pythonocc-users


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

    _______________________________________________
    Pythonocc-users mailing list
    Pythonocc-users@gna.org <mailto:Pythonocc-users@gna.org>
    https://mail.gna.org/listinfo/pythonocc-users
    ------------------------------------------------------------------------

    _______________________________________________
    Pythonocc-users mailing list
    Pythonocc-users@gna.org <mailto:Pythonocc-users@gna.org>
    https://mail.gna.org/listinfo/pythonocc-users
    ------------------------------------------------------------------------
    _______________________________________________ Pythonocc-users
    mailing list Pythonocc-users@gna.org
    <mailto:Pythonocc-users@gna.org>
    https://mail.gna.org/listinfo/pythonocc-users

    _______________________________________________
    Pythonocc-users mailing list
    Pythonocc-users@gna.org <mailto: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

Reply via email to