Re: problems installing quantlib for python 3.4
Posted by chitown2015 on Mar 17, 2016; 3:29pm
URL: http://quantlib.414.s1.nabble.com/problems-installing-quantlib-for-python-3-4-tp17342p17352.html
You were right. io.h hile file was in "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include". So, I've adjusted my commands to have %INCLUDE% and %LIB%. Now I am having the following issue:
running build
running build_py
copying QuantLib\QuantLib.py -> build\lib.win-amd64-3.4\QuantLib
running build_ext
building 'QuantLib._QuantLib' extension
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -D__WIN32__ -DWIN32 -DNDEBUG -D_WINDOWS -DNOMINMAX -IC:\Anaconda3\include -IC:\Anaconda3\include -IC:\Research\python_extension_packages\QuantLib-1.7 -IC:\Research\python_extension_packages\boost_1
_58_0 "-Ic:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE" "-Ic:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include" /TpQuantLib/quantlib_wrap.cpp /Fobuild\temp.win-amd64-3.4\Release\QuantLib/quantlib_wrap.obj /GR /FD /Zm250 /EHsc /bigobj /MD
quantlib_wrap.cpp
QuantLib/quantlib_wrap.cpp(14658) : warning C4018: '<' : signed/unsigned mismatch
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:C:\Anaconda3\libs /LIBPATH:C:\Anaconda3\PCbuild\amd64 /LIBPATH:C:\Research\python_extension_packages\QuantLib-1.7\lib /LIBPATH:C:\Research\python_extension_packages\boost_1_58_0\lib32-msvc-10.0
"/LIBPATH:c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\LIB" "/LIBPATH:c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib" /EXPORT:PyInit__QuantLib build\temp.win-amd64-3.4\Release\QuantLib/quantlib_wrap.obj /OUT:build\lib.win-amd64-3.4\QuantLib\_QuantLib.pyd /IMPLIB:build\temp.win-amd
64-3.4\Release\QuantLib\_QuantLib.lib /MANIFESTFILE:build\temp.win-amd64-3.4\Release\QuantLib\_QuantLib.pyd.manifest /subsystem:windows /machine:x64
build\temp.win-amd64-3.4\Release\QuantLib/quantlib_wrap.obj : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'
error: command 'c:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\BIN\\link.exe' failed with exit status 1112
This looks like I need to install 32 bit python to make this work? I am not sure.