I have vs2015, python 3.5.2. Successfully built quantlib 1.9.1 (release x64).
I'm trying to follow the instructions from https://www.cs.utah.edu/~cxiong/Files/Misc/QuantLib_Python.html when I run python setup.py build I get running build running build_py file QuantLib\QuantLib.py (for module QuantLib.QuantLib) not found file QuantLib\QuantLib.py (for module QuantLib.QuantLib) not found running build_ext building 'QuantLib._QuantLib' extension C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c / nologo /Ox /W3 /GL /DNDEBUG /MD -D__WIN32__ -DWIN32 -DNDEBUG -D_WINDOWS -DNOMINM AX -IC:\Users\****\AppData\Local\Continuum\Anaconda3\include -IC:\Users\**** \AppData\Local\Continuum\Anaconda3\include -ID:\Engine-master\QuantLib -ID:\boos t_1_63_0 "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC :\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Prog ram Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files ( x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows K its\8.1\include\\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\\winrt" -ID:\boost_1_63_0 /E Hsc /TpQuantLib/quantlib_wrap.cpp /Fobuild\temp.win-amd64-3.5\Release\QuantLib/q uantlib_wrap.obj /GR /FD /Zm250 /EHsc /bigobj /MD quantlib_wrap.cpp c1xx: fatal error C1083: Cannot open source file: 'QuantLib/quantlib_wrap.cpp': No such file or directory error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\ x86_amd64\\cl.exe' failed with exit status 2 Any tips on what may be going wrong? Thanks! |
The compiler is telling you it doesn't find the file "quantlib_wrap.cpp". Do you have it? Also, did you get QuantLib as a download from Sourceforge or did you clone it from GitHub? Luigi On Sat, Jan 28, 2017 at 11:07 AM manuel <[hidden email]> wrote: I have vs2015, python 3.5.2. Successfully built quantlib 1.9.1 (release x64). ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Thanks for your reply.
I don't have quantlib_wrap.cpp, it was the first thing I checked. I thought maybe it was created during 'python setup build' (I apologize about my ignorance, I am a quantlib and c++ noob). I am almost certain I got quantlib from Sourceforge.
|
In reply to this post by Luigi Ballabio
OK I just checked and I think I downloaded quantlib from SF but quantlib-swig from GH.
I just downloaded the SF version and it does contain quantlib_wrap.cpp. It all works now. Thanks for your time.
|
Free forum by Nabble | Edit this page |