Login  Register

Re: Errors while building QuantLib

Posted by Jake Larrimore on Nov 22, 2016; 8:51pm
URL: http://quantlib.414.s1.nabble.com/Errors-while-building-QuantLib-tp17873p17877.html

Okay, I'll give that a shot. Thanks Luigi. 

-Jake

On Tue, Nov 22, 2016 at 3:18 PM Luigi Ballabio <[hidden email]> wrote:
Hello Jake,
    may I suggest using the instructions at <http://quantlib.org/install/vc10.shtml> for building QuantLib? They might be more detailed. Once you have built the library, you can go back to the instructions you were following and start from item 10 to build the Python module.
Also: QuantLib 1.6 won't work with QuantLib-SWIG 1.9 (so you should either upgrade QuantLib to 1.9 or downgrade QuantLib-SWIG to 1.6) and on item 11, you won't need the `python setup.py wrap` part if you downloaded a QuantLib release (that's only needed if you check out the Git repository).

Luigi


On Tue, Nov 22, 2016 at 10:08 PM Jake Larrimore <[hidden email]> wrote:
Sorry about that, I see my attempt to get the errors to go to an output file were causing that last error "Switch -o"

However I'm still getting the 19 errors with the following commands:

>msbuild /p:AdditionalLibPaths="C:\local\boost_1_58_0\lib32-msvc-12.0" /p:Configuration=Release /p:Platform=Win32 C:\QuantLib-1.6\QuantLib_vc12.sln

and 

>msbuild /p:AdditionalLibPaths="%myboost\lib32-msvc-12.0" /p:Configuration=Release /p:Platform=Win32 C:\QuantLib-1.6\QuantLib_vc12.sln

Jake


On Tue, Nov 22, 2016 at 1:22 PM Jake Larrimore <[hidden email]> wrote:
Thanks for the quick response. So I'm playing around with it and getting different error messages.

With your instructions I found -- C:\local\boost_1_58_0\lib32-msvc-12.0 countains the boost compiled libraries -- libboost_system-vc120-mt-1_58.lib ... 

So am I then passing that directory into the command like so:
>msbuild /p:AdditionalLibPaths="%myboost\lib32-msvc-12.0" /p:Configuration=Release /p:Platform=Win32 C:\QuantLib-1.6\QuantLib_vc12.sln -o "quantlib.txt"
or
>msbuild /p:AdditionalLibPaths="C:\local\boost_1_58_0\lib32-msvc-12.0" /p:Configuration=Release /p:Platform=Win32 C:\QuantLib-1.6\QuantLib_vc12.sln -o "quantlib.txt"  

both give me an output :
Microsoft (R) Build Engine version 4.6.1055.0
[Microsoft .NET Framework, version 4.0.30319.42000]
Copyright (C) Microsoft Corporation. All rights reserved.

MSBUILD : error MSB1001: Unknown switch.
Switch: -o

For switch syntax, type "MSBuild /help"

Best,
Jake


On Tue, Nov 22, 2016 at 12:32 PM Andres Hernandez <[hidden email]> wrote:
Hi Jake,

you are right, you need to provide it with the correct directory where the boost compiled libraries are per step 3. For example I have them under the boost directory under stage\lib (C:\boost\boost_1_61_0\stage\lib). If you don't know where they are you might look for libboost_system-vc120*

cheers,
Andres



On Tue, Nov 22, 2016 at 6:58 PM, Jake Larrimore <[hidden email]> wrote:
Hi everyone,
I'm trying to get QuantLib installed on a Windows 7 machine. Specifically I'm following these instrucitons:

However when I run step 7:
>msbuild /p:AdditionalLibPaths="%myboost\lib32-msvc-12.0" /p:
Configuration=Release /p:Platform=Win32 C:\QuantLib-1.6\QuantLib_vc12.sln

I'm getting a slew of Errors. It seems I don't have things in the right locations or the install can't find them.
QuantLib Location: C:\QuantLib-1.6
QuantLib SWIG location: C:\QuantLib-SWIG-1.9  
Boost Location: C:\boost
      ***Note: myboost\lib32-msvc-12.0 I can't find that lib32-msvc-12.0 anywhere, could that be the problem?

I'm sorry I don't have much VS C++ experience, so these errors are not as verbose as I'd need to debug it.  

Any help would be greatly appreciated.

Output:
Confirm that the path in the <Import> declaration is correct, and that the file
 exists on disk.
Done Building Project "C:\QuantLib-1.6\Examples\ConvertibleBonds\ConvertibleBon
ds.vcxproj" (default targets) -- FAILED.

Project "C:\QuantLib-1.6\QuantLib_vc12.sln" (1) is building "C:\QuantLib-1.6\Ex
amples\FRA\FRA.vcxproj" (7) on node 1 (default targets).
C:\QuantLib-1.6\Examples\FRA\FRA.vcxproj(42,3): error MSB4019: The imported pro
ject "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in t
he <Import> declaration is correct, and that the file exists on disk.
Done Building Project "C:\QuantLib-1.6\Examples\FRA\FRA.vcxproj" (default targe
ts) -- FAILED.

Project "C:\QuantLib-1.6\QuantLib_vc12.sln" (1) is building "C:\QuantLib-1.6\Ex
amples\Repo\Repo.vcxproj" (8) on node 1 (default targets).
C:\QuantLib-1.6\Examples\Repo\Repo.vcxproj(42,3): error MSB4019: The imported p
roject "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in
 the <Import> declaration is correct, and that the file exists on disk.
Done Building Project "C:\QuantLib-1.6\Examples\Repo\Repo.vcxproj" (default tar
gets) -- FAILED.

Project "C:\QuantLib-1.6\QuantLib_vc12.sln" (1) is building "C:\QuantLib-1.6\Ex
amples\Replication\Replication.vcxproj" (9) on node 1 (default targets).
C:\QuantLib-1.6\Examples\Replication\Replication.vcxproj(42,3): error MSB4019:
The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm th
at the path in the <Import> declaration is correct, and that the file exists on
 disk.
Done Building Project "C:\QuantLib-1.6\Examples\Replication\Replication.vcxproj
" (default targets) -- FAILED.

Project "C:\QuantLib-1.6\QuantLib_vc12.sln" (1) is building "C:\QuantLib-1.6\Ex
amples\BermudanSwaption\BermudanSwaption.vcxproj" (10) on node 1 (default targe
ts).
C:\QuantLib-1.6\Examples\BermudanSwaption\BermudanSwaption.vcxproj(42,3): error
 MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found.
Confirm that the path in the <Import> declaration is correct, and that the file
 exists on disk.
Done Building Project "C:\QuantLib-1.6\Examples\BermudanSwaption\BermudanSwapti
on.vcxproj" (default targets) -- FAILED.

Project "C:\QuantLib-1.6\QuantLib_vc12.sln" (1) is building "C:\QuantLib-1.6\Ex
amples\DiscreteHedging\DiscreteHedging.vcxproj" (11) on node 1 (default targets
).
C:\QuantLib-1.6\Examples\DiscreteHedging\DiscreteHedging.vcxproj(42,3): error M
SB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Co
nfirm that the path in the <Import> declaration is correct, and that the file e
xists on disk.
Done Building Project "C:\QuantLib-1.6\Examples\DiscreteHedging\DiscreteHedging
.vcxproj" (default targets) -- FAILED.

Project "C:\QuantLib-1.6\QuantLib_vc12.sln" (1) is building "C:\QuantLib-1.6\Ex
amples\FittedBondCurve\FittedBondCurve.vcxproj" (12) on node 1 (default targets
).
C:\QuantLib-1.6\Examples\FittedBondCurve\FittedBondCurve.vcxproj(42,3): error M
SB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Co
nfirm that the path in the <Import> declaration is correct, and that the file e
xists on disk.
Done Building Project "C:\QuantLib-1.6\Examples\FittedBondCurve\FittedBondCurve
.vcxproj" (default targets) -- FAILED.

Project "C:\QuantLib-1.6\QuantLib_vc12.sln" (1) is building "C:\QuantLib-1.6\Ex
amples\CallableBonds\CallableBonds.vcxproj" (13) on node 1 (default targets).
C:\QuantLib-1.6\Examples\CallableBonds\CallableBonds.vcxproj(42,3): error MSB40
19: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confir
m that the path in the <Import> declaration is correct, and that the file exist
s on disk.
Done Building Project "C:\QuantLib-1.6\Examples\CallableBonds\CallableBonds.vcx
proj" (default targets) -- FAILED.

Project "C:\QuantLib-1.6\QuantLib_vc12.sln" (1) is building "C:\QuantLib-1.6\Ex
amples\CDS\CDS.vcxproj" (14) on node 1 (default targets).
C:\QuantLib-1.6\Examples\CDS\CDS.vcxproj(42,3): error MSB4019: The imported pro
ject "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in t
he <Import> declaration is correct, and that the file exists on disk.
Done Building Project "C:\QuantLib-1.6\Examples\CDS\CDS.vcxproj" (default targe
ts) -- FAILED.

Project "C:\QuantLib-1.6\QuantLib_vc12.sln" (1) is building "C:\QuantLib-1.6\Ex
amples\Bonds\Bonds.vcxproj" (15) on node 1 (default targets).
C:\QuantLib-1.6\Examples\Bonds\Bonds.vcxproj(42,3): error MSB4019: The imported
 project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path
in the <Import> declaration is correct, and that the file exists on disk.
Done Building Project "C:\QuantLib-1.6\Examples\Bonds\Bonds.vcxproj" (default t
argets) -- FAILED.

Project "C:\QuantLib-1.6\QuantLib_vc12.sln" (1) is building "C:\QuantLib-1.6\Ex
amples\MarketModels\MarketModels.vcxproj" (16) on node 1 (default targets).
C:\QuantLib-1.6\Examples\MarketModels\MarketModels.vcxproj(42,3): error MSB4019
: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm
that the path in the <Import> declaration is correct, and that the file exists
on disk.
Done Building Project "C:\QuantLib-1.6\Examples\MarketModels\MarketModels.vcxpr
oj" (default targets) -- FAILED.

Project "C:\QuantLib-1.6\QuantLib_vc12.sln" (1) is building "C:\QuantLib-1.6\Ex
amples\Gaussian1dModels\Gaussian1dModels.vcxproj" (17) on node 1 (default targe
ts).
C:\QuantLib-1.6\Examples\Gaussian1dModels\Gaussian1dModels.vcxproj(42,3): error
 MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found.
Confirm that the path in the <Import> declaration is correct, and that the file
 exists on disk.
Done Building Project "C:\QuantLib-1.6\Examples\Gaussian1dModels\Gaussian1dMode
ls.vcxproj" (default targets) -- FAILED.

Project "C:\QuantLib-1.6\QuantLib_vc12.sln" (1) is building "C:\QuantLib-1.6\Ex
amples\MultidimIntegral\MultidimIntegral.vcxproj" (18) on node 1 (default targe
ts).
C:\QuantLib-1.6\Examples\MultidimIntegral\MultidimIntegral.vcxproj(42,3): error
 MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found.
Confirm that the path in the <Import> declaration is correct, and that the file
 exists on disk.
Done Building Project "C:\QuantLib-1.6\Examples\MultidimIntegral\MultidimIntegr
al.vcxproj" (default targets) -- FAILED.

Project "C:\QuantLib-1.6\QuantLib_vc12.sln" (1) is building "C:\QuantLib-1.6\Ex
amples\LatentModel\LatentModel.vcxproj" (19) on node 1 (default targets).
C:\QuantLib-1.6\Examples\LatentModel\LatentModel.vcxproj(42,3): error MSB4019:
The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm th
at the path in the <Import> declaration is correct, and that the file exists on
 disk.
Done Building Project "C:\QuantLib-1.6\Examples\LatentModel\LatentModel.vcxproj
" (default targets) -- FAILED.

Project "C:\QuantLib-1.6\QuantLib_vc12.sln" (1) is building "C:\QuantLib-1.6\Ex
amples\BasketLosses\BasketLosses.vcxproj" (20) on node 1 (default targets).
C:\QuantLib-1.6\Examples\BasketLosses\BasketLosses.vcxproj(41,3): error MSB4019
: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm
that the path in the <Import> declaration is correct, and that the file exists
on disk.
Done Building Project "C:\QuantLib-1.6\Examples\BasketLosses\BasketLosses.vcxpr
oj" (default targets) -- FAILED.

Done Building Project "C:\QuantLib-1.6\QuantLib_vc12.sln" (default targets) --
FAILED.


Build FAILED.

"C:\QuantLib-1.6\QuantLib_vc12.sln" (default target) (1) ->
"C:\QuantLib-1.6\QuantLib.vcxproj" (default target) (2) ->
  C:\QuantLib-1.6\QuantLib.vcxproj(42,3): error MSB4019: The imported project "
C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Im
port> declaration is correct, and that the file exists on disk.


"C:\QuantLib-1.6\QuantLib_vc12.sln" (default target) (1) ->
"C:\QuantLib-1.6\test-suite\testsuite.vcxproj" (default target) (3) ->
  C:\QuantLib-1.6\test-suite\testsuite.vcxproj(43,3): error MSB4019: The import
ed project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the pat
h in the <Import> declaration is correct, and that the file exists on disk.


"C:\QuantLib-1.6\QuantLib_vc12.sln" (default target) (1) ->
"C:\QuantLib-1.6\Examples\Swap\Swap.vcxproj" (default target) (4) ->
  C:\QuantLib-1.6\Examples\Swap\Swap.vcxproj(42,3): error MSB4019: The imported
 project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path
in the <Import> declaration is correct, and that the file exists on disk.


"C:\QuantLib-1.6\QuantLib_vc12.sln" (default target) (1) ->
"C:\QuantLib-1.6\Examples\EquityOption\EquityOption.vcxproj" (default target) (
5) ->
  C:\QuantLib-1.6\Examples\EquityOption\EquityOption.vcxproj(42,3): error MSB40
19: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confir
m that the path in the <Import> declaration is correct, and that the file exist
s on disk.


"C:\QuantLib-1.6\QuantLib_vc12.sln" (default target) (1) ->
"C:\QuantLib-1.6\Examples\ConvertibleBonds\ConvertibleBonds.vcxproj" (default t
arget) (6) ->
  C:\QuantLib-1.6\Examples\ConvertibleBonds\ConvertibleBonds.vcxproj(42,3): err
or MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found
. Confirm that the path in the <Import> declaration is correct, and that the fi
le exists on disk.


"C:\QuantLib-1.6\QuantLib_vc12.sln" (default target) (1) ->
"C:\QuantLib-1.6\Examples\FRA\FRA.vcxproj" (default target) (7) ->
  C:\QuantLib-1.6\Examples\FRA\FRA.vcxproj(42,3): error MSB4019: The imported p
roject "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in
 the <Import> declaration is correct, and that the file exists on disk.


"C:\QuantLib-1.6\QuantLib_vc12.sln" (default target) (1) ->
"C:\QuantLib-1.6\Examples\Repo\Repo.vcxproj" (default target) (8) ->
  C:\QuantLib-1.6\Examples\Repo\Repo.vcxproj(42,3): error MSB4019: The imported
 project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path
in the <Import> declaration is correct, and that the file exists on disk.


"C:\QuantLib-1.6\QuantLib_vc12.sln" (default target) (1) ->
"C:\QuantLib-1.6\Examples\Replication\Replication.vcxproj" (default target) (9)
 ->
  C:\QuantLib-1.6\Examples\Replication\Replication.vcxproj(42,3): error MSB4019
: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm
that the path in the <Import> declaration is correct, and that the file exists
on disk.


"C:\QuantLib-1.6\QuantLib_vc12.sln" (default target) (1) ->
"C:\QuantLib-1.6\Examples\BermudanSwaption\BermudanSwaption.vcxproj" (default t
arget) (10) ->
  C:\QuantLib-1.6\Examples\BermudanSwaption\BermudanSwaption.vcxproj(42,3): err
or MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found
. Confirm that the path in the <Import> declaration is correct, and that the fi
le exists on disk.


"C:\QuantLib-1.6\QuantLib_vc12.sln" (default target) (1) ->
"C:\QuantLib-1.6\Examples\DiscreteHedging\DiscreteHedging.vcxproj" (default tar
get) (11) ->
  C:\QuantLib-1.6\Examples\DiscreteHedging\DiscreteHedging.vcxproj(42,3): error
 MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found.
Confirm that the path in the <Import> declaration is correct, and that the file
 exists on disk.


"C:\QuantLib-1.6\QuantLib_vc12.sln" (default target) (1) ->
"C:\QuantLib-1.6\Examples\FittedBondCurve\FittedBondCurve.vcxproj" (default tar
get) (12) ->
  C:\QuantLib-1.6\Examples\FittedBondCurve\FittedBondCurve.vcxproj(42,3): error
 MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found.
Confirm that the path in the <Import> declaration is correct, and that the file
 exists on disk.


"C:\QuantLib-1.6\QuantLib_vc12.sln" (default target) (1) ->
"C:\QuantLib-1.6\Examples\CallableBonds\CallableBonds.vcxproj" (default target)
 (13) ->
  C:\QuantLib-1.6\Examples\CallableBonds\CallableBonds.vcxproj(42,3): error MSB
4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Conf
irm that the path in the <Import> declaration is correct, and that the file exi
sts on disk.


"C:\QuantLib-1.6\QuantLib_vc12.sln" (default target) (1) ->
"C:\QuantLib-1.6\Examples\CDS\CDS.vcxproj" (default target) (14) ->
  C:\QuantLib-1.6\Examples\CDS\CDS.vcxproj(42,3): error MSB4019: The imported p
roject "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in
 the <Import> declaration is correct, and that the file exists on disk.


"C:\QuantLib-1.6\QuantLib_vc12.sln" (default target) (1) ->
"C:\QuantLib-1.6\Examples\Bonds\Bonds.vcxproj" (default target) (15) ->
  C:\QuantLib-1.6\Examples\Bonds\Bonds.vcxproj(42,3): error MSB4019: The import
ed project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the pat
h in the <Import> declaration is correct, and that the file exists on disk.


"C:\QuantLib-1.6\QuantLib_vc12.sln" (default target) (1) ->
"C:\QuantLib-1.6\Examples\MarketModels\MarketModels.vcxproj" (default target) (
16) ->
  C:\QuantLib-1.6\Examples\MarketModels\MarketModels.vcxproj(42,3): error MSB40
19: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confir
m that the path in the <Import> declaration is correct, and that the file exist
s on disk.


"C:\QuantLib-1.6\QuantLib_vc12.sln" (default target) (1) ->
"C:\QuantLib-1.6\Examples\Gaussian1dModels\Gaussian1dModels.vcxproj" (default t
arget) (17) ->
  C:\QuantLib-1.6\Examples\Gaussian1dModels\Gaussian1dModels.vcxproj(42,3): err
or MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found
. Confirm that the path in the <Import> declaration is correct, and that the fi
le exists on disk.


"C:\QuantLib-1.6\QuantLib_vc12.sln" (default target) (1) ->
"C:\QuantLib-1.6\Examples\MultidimIntegral\MultidimIntegral.vcxproj" (default t
arget) (18) ->
  C:\QuantLib-1.6\Examples\MultidimIntegral\MultidimIntegral.vcxproj(42,3): err
or MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found
. Confirm that the path in the <Import> declaration is correct, and that the fi
le exists on disk.


"C:\QuantLib-1.6\QuantLib_vc12.sln" (default target) (1) ->
"C:\QuantLib-1.6\Examples\LatentModel\LatentModel.vcxproj" (default target) (19
) ->
  C:\QuantLib-1.6\Examples\LatentModel\LatentModel.vcxproj(42,3): error MSB4019
: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm
that the path in the <Import> declaration is correct, and that the file exists
on disk.


"C:\QuantLib-1.6\QuantLib_vc12.sln" (default target) (1) ->
"C:\QuantLib-1.6\Examples\BasketLosses\BasketLosses.vcxproj" (default target) (
20) ->
  C:\QuantLib-1.6\Examples\BasketLosses\BasketLosses.vcxproj(41,3): error MSB40
19: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confir
m that the path in the <Import> declaration is correct, and that the file exist
s on disk.

    0 Warning(s)
    19 Error(s)

Time Elapsed 00:00:00.18


--
Jake Larrimore
<a href="tel:443-340-9570" value="+14433409570" class="gmail_msg" target="_blank">443-340-9570

------------------------------------------------------------------------------

_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users


--
Jake Larrimore
<a href="tel:(443)%20340-9570" value="+14433409570" class="gmail_msg" target="_blank">443-340-9570
--
Jake Larrimore
<a href="tel:(443)%20340-9570" value="+14433409570" class="gmail_msg" target="_blank">443-340-9570
------------------------------------------------------------------------------
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
--
Jake Larrimore
443-340-9570

------------------------------------------------------------------------------

_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users