I am a new user. I am trying to install quantlib. I am using VC++ 12. I followed installation instruction in the website but I get following error after step 7 (i.e. when I try to build solution) Can any body help pl. 1>------ Build started: Project: QuantLib, Configuration: Debug Win32 ------ 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(347,5): error MSB3191: Unable to create directory ".\build\vc120\Win32\Debug\". Access to the path '.\build\vc120\Win32\Debug\' is denied. 2>------ Build started: Project: testsuite, Configuration: Debug Win32 ------ 3>------ Build started: Project: Swap, Configuration: Debug Win32 ------ 4>------ Build started: Project: EquityOption, Configuration: Debug Win32 ------ 5>------ Build started: Project: ConvertibleBonds, Configuration: Debug Win32 ------ 2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(347,5): error MSB3191: Unable to create directory ".\build\vc120\Win32\Debug\". Access to the path '.\build\vc120\Win32\Debug\' is denied. 3>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(347,5): error MSB3191: Unable to create directory ".\build\vc120\Win32\Debug\". Access to the path '.\build\vc120\Win32\Debug\' is denied. 6>------ Build started: Project: FRA, Configuration: Debug Win32 ------ 6>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(347,5): error MSB3191: Unable to create directory ".\build\vc120\Win32\Debug\". Access to the path '.\build\vc120\Win32\Debug\' is denied. 7>------ Build started: Project: Repo, Configuration: Debug Win32 ------ 5>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(347,5): error MSB3191: Unable to create directory ".\build\vc120\Win32\Debug\". Access to the path '.\build\vc120\Win32\Debug\' is denied. 8>------ Build started: Project: Replication, Configuration: Debug Win32 ------ 7>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(347,5): error MSB3191: Unable to create directory ".\build\vc120\Win32\Debug\". Access to the path '.\build\vc120\Win32\Debug\' is denied. 9>------ Build started: Project: BermudanSwaption, Configuration: Debug Win32 ------ 8>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(347,5): error MSB3191: Unable to create directory ".\build\vc120\Win32\Debug\". Access to the path '.\build\vc120\Win32\Debug\' is denied. 10>------ Build started: Project: DiscreteHedging, Configuration: Debug Win32 ------ 11>------ Build started: Project: FittedBondCurve, Configuration: Debug Win32 ------ 9>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(347,5): error MSB3191: Unable to create directory ".\build\vc120\Win32\Debug\". Access to the path '.\build\vc120\Win32\Debug\' is denied. 12>------ Build started: Project: CallableBonds, Configuration: Debug Win32 ------ 10>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(347,5): error MSB3191: Unable to create directory ".\build\vc120\Win32\Debug\". Access to the path '.\build\vc120\Win32\Debug\' is denied. 4>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(347,5): error MSB3191: Unable to create directory ".\build\vc120\Win32\Debug\". Access to the path '.\build\vc120\Win32\Debug\' is denied. 13>------ Build started: Project: CDS, Configuration: Debug Win32 ------ 11>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(347,5): error MSB3191: Unable to create directory ".\build\vc120\Win32\Debug\". Access to the path '.\build\vc120\Win32\Debug\' is denied. 14>------ Build started: Project: Bonds, Configuration: Debug Win32 ------ 15>------ Build started: Project: MarketModels, Configuration: Debug Win32 ------ 12>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(347,5): error MSB3191: Unable to create directory ".\build\vc120\Win32\Debug\". Access to the path '.\build\vc120\Win32\Debug\' is denied. 13>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(347,5): error MSB3191: Unable to create directory ".\build\vc120\Win32\Debug\". Access to the path '.\build\vc120\Win32\Debug\' is denied. 16>------ Build started: Project: Gaussian1dModels, Configuration: Debug Win32 ------ 14>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(347,5): error MSB3191: Unable to create directory ".\build\vc120\Win32\Debug\". Access to the path '.\build\vc120\Win32\Debug\' is denied. 17>------ Build started: Project: MultidimIntegral, Configuration: Debug Win32 ------ 15>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(347,5): error MSB3191: Unable to create directory ".\build\vc120\Win32\Debug\". Access to the path '.\build\vc120\Win32\Debug\' is denied. 18>------ Build started: Project: LatentModel, Configuration: Debug Win32 ------ 16>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(347,5): error MSB3191: Unable to create directory ".\build\vc120\Win32\Debug\". Access to the path '.\build\vc120\Win32\Debug\' is denied. 19>------ Build started: Project: BasketLosses, Configuration: Debug Win32 ------ 17>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(347,5): error MSB3191: Unable to create directory ".\build\vc120\Win32\Debug\". Access to the path '.\build\vc120\Win32\Debug\' is denied. 18>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(347,5): error MSB3191: Unable to create directory ".\build\vc120\Win32\Debug\". Access to the path '.\build\vc120\Win32\Debug\' is denied. 19>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(347,5): error MSB3191: Unable to create directory ".\build\vc120\Win32\Debug\". Access to the path '.\build\vc120\Win32\Debug\' is denied. ========== Build: 0 succeeded, 19 failed, 0 up-to-date, 0 skipped ========== ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
It looks like a permission problem (i.e., you're trying to build inside a directory you don't own). But I'm not familiar enough with Windows machines to diagnose exactly what's wrong, or to suggest how to check my guess. Luigi On Wed, Jul 8, 2015 at 2:45 PM Kausik Datta <[hidden email]> wrote:
-- <http://leanpub.com/implementingquantlib/> ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
In reply to this post by Kausik Datta
Hi Kausik, I think you need to change your project settings as it looks like it's trying to create folders under the C:\Program Files (x86) folder which you don't have permission to do. Alternatively you could run Visual Studio as an Administrator which would give you the elevated permissions you need but I'd recommend moving the entire project out of C:\Program Files (x86). Thanks Ed James On 8 July 2015 at 13:42, Kausik Datta <[hidden email]> wrote:
------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
In reply to this post by Kausik Datta
While I am hardly an expert on Windows, so can't help you with your error, but FWIW, my colleague and I have put together instructions for installing QuantLib (using Visual Studio) and QuantLib-Python (using Anaconda) on Windows, and we are reasonably sure they work (having tried them on 3 different machines). So, with some shameless self-promotion, here is my recent blog post on that. If you are willing to try, please let us know if something doesn't work, or if they can be made more concise.
Best wishes, Vineet |
Vineet, let me know if your instructions can be integrated into the ones at <http://quantlib.org/install/vc10.shtml> (which work too, but use the IDE. Your command-line version might be useful, too). Luigi On Wed, Jul 8, 2015 at 4:14 PM vineet20 <[hidden email]> wrote: While I am hardly an expert on Windows, so can't help you with your error, -- <http://leanpub.com/implementingquantlib/> ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
To be fair, my struggle was more to do with installing QuantLib-Python than QuantLib (I see my blog post gives an impression that both couldn't be installed, and will correct that), but after we managed to install QuantLib-Python with some trial and error, we figured that command line version (which my colleague put together) was easier to replicate across machines (my colleague even has a batch file for that, which he describes on his blog).
I think command line settings for installing QuantLib in Windows could appeal to Linux users, so maybe worth integrating. I'll separately PM the consolidated list of steps to you, but would request you to have that independently verified on a Windows machine at your end before putting it up on vc10 page. |
Free forum by Nabble | Edit this page |