Login  Register

Errors while building QuantLib

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

Hi everyone,
I'm trying to get QuantLib installed on a Windows 7 machine. Specifically I'm following these instrucitons:
https://vineetv.wordpress.com/2015/07/07/installing-quantlib-python-windows/#comments

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
443-340-9570

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

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