Loading...
Home / Problem while building swig

Home Forums General Problem while building swig

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #6796
    SundarJ
    Participant

    Hi,
    I cloned latest version of ORE and ORE-SWIG.

    My build of ORE completed. I am using Visual Studio 2017 x64.
    When I do build of ORE-SWIG, I am facing errors. The error I get:

    dendAmericanEngine<QuantLib::CrankNicolson>’
    C:\Users\Amma\Documents\OpenRisk\ore_swig\ore-swig\build\CMakeFiles\_OREAnalytics.dir\oreanalyticsPYTHON_wrap.cxx(697188): error C2143: syntax error: missing ‘;’ befor
    e ‘-‘ [C:\Users\Amma\Documents\OpenRisk\ore_swig\ore-swig\build\_OREAnalytics.vcxproj]
    C:\Users\Amma\Documents\OpenRisk\ore_swig\ore-swig\build\CMakeFiles\_OREAnalytics.dir\oreanalyticsPYTHON_wrap.cxx(697188): error C2182: ‘init_OREAnalytics’: illegal us
    e of type ‘void’ [C:\Users\Amma\Documents\OpenRisk\ore_swig\ore-swig\build\_OREAnalytics.vcxproj]
    C:\Users\Amma\Documents\OpenRisk\ore_swig\ore-swig\build\CMakeFiles\_OREAnalytics.dir\oreanalyticsPYTHON_wrap.cxx(697188): error C2143: syntax error: missing ‘;’ befor
    e ‘{‘ [C:\Users\Amma\Documents\OpenRisk\ore_swig\ore-swig\build\_OREAnalytics.vcxproj]
    C:\Users\Amma\Documents\OpenRisk\ore_swig\ore-swig\build\CMakeFiles\_OREAnalytics.dir\oreanalyticsPYTHON_wrap.cxx(697188): error C2447: ‘{‘: missing function header (o
    ld-style formal list?) [C:\Users\Amma\Documents\OpenRisk\ore_swig\ore-swig\build\_OREAnalytics.vcxproj]

    #6797
    SundarJ
    Participant

    I am able run the following:
    mkdir build \
    cmake -G “Visual Studio 15 2017” \
    -A x64 \
    -D SWIG DIR= <SWIG_DIR> \
    -D SWIG EXECUTABLE= <PATH_TO_swig.exe> \
    -D ORE:PATHNAME= <PATH_TO_ORE_ROOT> \
    -D BOOST ROOT= <PATH_TO_BOOST> \
    -S OREAnalytics-SWIG/Python \
    -B build \

    The failure happens when I run the following:
    cmake –build build

    #6830
    cba
    Participant

    Hello Sundar, I am just in the process of deploying my first test-install under Win10. I believe the documentation is not fully up-to-date for the Windows part:
    -> You need to download SWIG for windows (swig.org). I simply created a new directory, extracted the binaries there and referenced the path when compiling ore-swig
    After that I tried to build with the lines from the PDF (I believe you miss an underscore at BOOST_ROOT).

    That failed, giving a very similar error. I recompile now using the runCmakeVS scrips in the latest ORE and ORE-SWIG release, with that I get at least further (ore-swig still running). Perhaps worth a try redoing it with those, the parameters (which you obviosuly need to adjust) are slightly different.

    #7109
    James Smith
    Participant

    I think the Windows section of the documentation is not quite current.
    magento 2 development services

    #7158
    eehlers
    Participant

    This problem has been fixed in v1.8.9.1.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.


Sign up to hear about the latest ORE developments