|
From: Luigi B. <lui...@gm...> - 2023-04-19 16:20:09
|
Hello,
I'm adding the mailing list back in cc so that more people can chime in
with suggestions.
The Boost files can go anywhere, as long as you put the same information in
the "Include Directories" property. Unfortunately, looking at the
Windows instructions (you're following those on our site at <
https://www.quantlib.org/install/vc10.shtml>, right?) I see that the
screenshot might be misleading. As it says in the text,
"If you installed Boost in C:\local\boost_1_81_0, you'll have to add that
to the include directories. Instead, the folder to add to the library
directories has a name such as C:\local\boost_1_81_0\lib32-msvc-12.0 or
C:\local\boost_1_81_0\lib64-msvc-14.3 which includes compiler and build
information; if you installed multiple ones, choose the one corresponding
to your configuration."
In your case, for instance, before you moved the files, the value to insert
into "Include Directories" would have been "C:\local\boost_1_82_0", not the
path including "Program Files" shown in the screenshot.
[Note for anybody reading this and with access to a Windows machine and a
recent copy of Visual Studio: it would be great if you could take new
screenshots so that I can replace the old ones in the instructions. Send me
an email if you want to help.]
As for the locked file, I'm not sure — it might be a permissions issue.
Maybe you did the first changes as a machine administrator and now you're
trying to change the project again as a normal user? In any case, I'd try
closing Visual Studio and starting again from a fresh copy of QuantLib—as
in, deleting the whole QuantLib-1.29 folder and extracting the zip again.
Or you can try QuantLib 1.30, which was released earlier today.
If you still can't compile it, please send us the exact error message so we
can try a better diagnosis.
Hope this helps,
Luigi
On Mon, Apr 17, 2023 at 8:34 PM Na...@ra... <nah...@gm...>
wrote:
> Thank you, Luigi, for your response.
>
> First of my problems:
> The boot files were loaded into C:\local\boost_1_82_0 and the folder for
> the lib in the lines below in bold.from the instructions under Properties:
>
> 1. I entered the requested information to include these files:
> [image: image.png]
>
> But the build of quantlib could not find the boost files in C:\local. So
> I copied the contents into a folder C:\Program Files (x86)\boost, a new
> folder I created
>
> 2. After this change of folder for boost, I got error in second rebuild
> attempt:
>
> Can't overwrite file C:\Program
> FIles(86)\Quantlib\Quantlib-1.29\Examples\BasektLosses\Basketlosses.xproj
> (I think that was the file extension, Error message: don't have permission
> to overwrite this file
> When asked if I wanted to save in owner file, I said Yes.
>
> 3. I deleted the file C:\Program
> FIles(86)\Quantlib\Quantlib-1.29\Examples\BasektLosses\Basketlosses.xproj
> (I think that was the file extension.
> error message: don't have permission to save this file
> When asked if I wanted to save in owner file, I said Yes.
>
> No idea how to proceed.
>
>
> Another question: Would you please verify or correct the new locations for
> boost files above? Maybe I should not have created a folder boost:
>
> C:\Program FIles(86)\boost
>
> or many I should have added them to the Quantlib folder?
>
> C:\Program FIles(86)\Quantlib\boost
>
> Thank you,
> Nancy Hammond
>
>
> On Mon, Apr 17, 2023 at 3:43 AM Luigi Ballabio <lui...@gm...>
> wrote:
>
>> Hello,
>> I'd try deleting the release and downloading it again. I don't think
>> I have enough information to make a more specific suggestion.
>>
>> May I ask what was the failure you ran into when following the
>> instructions? I'd be glad to improve them where needed.
>>
>> Cheers,
>> Luigi
>>
>>
>> On Sat, Apr 15, 2023 at 9:38 PM Na...@ra... <nah...@gm...>
>> wrote:
>>
>>> I failed to rebuild bc VSCode couldn't find boost folder although I did
>>> follow instruction
>>>
>>> I have now moved boost files to windows C:/Program Files
>>>
>>> But now I'm refused access to Examples/BasketLosses/BasketLosses.vc xproj
>>>
>>>
>>>
>>> _______________________________________________
>>> QuantLib-users mailing list
>>> Qua...@li...
>>> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>>>
>> _______________________________________________
>> QuantLib-users mailing list
>> Qua...@li...
>> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>>
>
>
> --
> Nancy Hammond, Ph.D
> nahammond@ <nah...@uc...>gmail.com
> 312.973.7697
>
|