[Ipopt] problem of install IPOPT in windows

John Pye john.pye at anu.edu.au
Wed Jul 2 00:03:41 EDT 2008


Hi Yudong

Not sure about this (I don't use MSVS) but perhaps you need to
download/install f2c from netlib?

Cheers
JP

Ma Yudong wrote:
> *Hi guys
> I was trying to compile the IPOPT on windows. and I followed the
> instructions in the README file in $HOME/Ipopt/MSVisualStudio/v9/.
> <file:///C:/msys/1.0/home/pony/Ipopt/Ipopt/MSVisualStudio/v9/>
> everything works fine until step 8
> even though I got all the head files and lib files, the compile failed
> as the C++ complained that
> f2c.h cannot be found
> cannot open input file vcf2c.lib
> and for completion I just copy all the output of my compile below
> do I have to add some headfiles in the  Ipopt.sln,or what else should
> be done before compiling?*
>
> 1>------ Rebuild All started: Project: libCoinBlas, Configuration:
> Release Win32 ------
> 2>------ Rebuild All started: Project: libCoinHSL, Configuration:
> Release Win32 ------
> 1>Deleting intermediate and output files for project 'libCoinBlas',
> configuration 'Release|Win32'
> 2>Deleting intermediate and output files for project 'libCoinHSL',
> configuration 'Release|Win32'
> 2>Compiling...
> 1>Compiling...
> 1>cl : Command line warning D9035 : option 'Wp64' has been deprecated
> and will be removed in a future release
> 1>dasum.c
> 2>cl : Command line warning D9035 : option 'Wp64' has been deprecated
> and will be removed in a future release
> 2>ma27ad.c
> 2>.\ma27ad.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 1>.\dasum.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 2>mc19ad.c
> 1>xerbla.c
> 2>.\mc19ad.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 2>Generating Code...
> 1>.\xerbla.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 2>Build log was saved at
> "file://c:\msys\1.0\home\pony\Ipopt\Ipopt\MSVisualStudio\v9\libCoinHSL\Release\BuildLog.htm"
> 1>lsame.c
> 2>libCoinHSL - 2 error(s), 1 warning(s)
> 1>.\lsame.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 1>idamax.c
> 1>.\idamax.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 1>dtrsv.c
> 1>.\dtrsv.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 1>dtrsm.c
> 1>.\dtrsm.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 1>dtrmv.c
> 1>.\dtrmv.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 1>dtrmm.c
> 1>.\dtrmm.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 1>dtpsv.c
> 1>.\dtpsv.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 1>dtpmv.c
> 1>.\dtpmv.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 1>dtbsv.c
> 1>.\dtbsv.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 1>dtbmv.c
> 1>.\dtbmv.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 1>dsyrk.c
> 1>.\dsyrk.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 1>dsyr2k.c
> 1>.\dsyr2k.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 1>dsyr2.c
> 1>.\dsyr2.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 1>dsyr.c
> 1>.\dsyr.c(13) : fatal error C1083: Cannot open include file: 'f2c.h':
> No such file or directory
> 1>dsymv.c
> 1>.\dsymv.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 1>dsymm.c
> 1>.\dsymm.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 1>dswap.c
> 1>.\dswap.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 1>dspr2.c
> 1>.\dspr2.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 1>Generating Code...
> 1>Compiling...
> 1>dspr.c
> 1>.\dspr.c(13) : fatal error C1083: Cannot open include file: 'f2c.h':
> No such file or directory
> 1>dspmv.c
> 1>.\dspmv.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 1>dsdot.c
> 1>.\dsdot.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 1>dscal.c
> 1>.\dscal.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 1>dsbmv.c
> 1>.\dsbmv.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 1>drotmg.c
> 1>.\drotmg.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 1>drotm.c
> 1>.\drotm.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 1>drotg.c
> 1>.\drotg.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 1>drot.c
> 1>.\drot.c(13) : fatal error C1083: Cannot open include file: 'f2c.h':
> No such file or directory
> 1>dnrm2.c
> 1>.\dnrm2.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 1>dger.c
> 1>.\dger.c(13) : fatal error C1083: Cannot open include file: 'f2c.h':
> No such file or directory
> 1>dgemv.c
> 1>.\dgemv.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 1>dgemm.c
> 1>.\dgemm.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 1>dgbmv.c
> 1>.\dgbmv.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 1>ddot.c
> 1>.\ddot.c(13) : fatal error C1083: Cannot open include file: 'f2c.h':
> No such file or directory
> 1>dcopy.c
> 1>.\dcopy.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 1>daxpy.c
> 1>.\daxpy.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 1>Generating Code...
> 1>Build log was saved at
> "file://c:\msys\1.0\home\pony\Ipopt\Ipopt\MSVisualStudio\v9\libCoinBlas\Release\BuildLog.htm"
> 1>libCoinBlas - 37 error(s), 1 warning(s)
> 3>------ Rebuild All started: Project: libCoinLapack, Configuration:
> Release Win32 ------
> 3>Deleting intermediate and output files for project 'libCoinLapack',
> configuration 'Release|Win32'
> 3>Compiling...
> 3>cl : Command line warning D9035 : option 'Wp64' has been deprecated
> and will be removed in a future release
> 3>dgetf2.c
> 3>.\dgetf2.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>iparmq.c
> 3>.\iparmq.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>ilaenv.c
> 3>.\ilaenv.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>ieeeck.c
> 3>.\ieeeck.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dsytrd.c
> 3>.\dsytrd.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dsytd2.c
> 3>.\dsytd2.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dsyev.c
> 3>.\dsyev.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dsterf.c
> 3>.\dsterf.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dsteqr.c
> 3>.\dsteqr.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dpotrs.c
> 3>.\dpotrs.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dpotrf.c
> 3>.\dpotrf.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dpotf2.c
> 3>.\dpotf2.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dorgtr.c
> 3>.\dorgtr.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dorgqr.c
> 3>.\dorgqr.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dorgql.c
> 3>.\dorgql.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dorg2r.c
> 3>.\dorg2r.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dorg2l.c
> 3>.\dorg2l.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dlatrd.c
> 3>.\dlatrd.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dlaswp.c
> 3>.\dlaswp.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dlassq.c
> 3>.\dlassq.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>Generating Code...
> 3>Compiling...
> 3>dlasrt.c
> 3>.\dlasrt.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dlasr.c
> 3>.\dlasr.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dlaset.c
> 3>.\dlaset.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dlascl.c
> 3>.\dlascl.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dlartg.c
> 3>.\dlartg.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dlarft.c
> 3>.\dlarft.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dlarfg.c
> 3>.\dlarfg.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dlarfb.c
> 3>.\dlarfb.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dlarf.c
> 3>.\dlarf.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dlapy2.c
> 3>.\dlapy2.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dlansy.c
> 3>.\dlansy.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dlanst.c
> 3>.\dlanst.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dlamch.c
> 3>.\dlamch.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dlaev2.c
> 3>.\dlaev2.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dlae2.c
> 3>.\dlae2.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dgetrs.c
> 3>.\dgetrs.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>dgetrf.c
> 3>.\dgetrf.c(13) : fatal error C1083: Cannot open include file:
> 'f2c.h': No such file or directory
> 3>Generating Code...
> 3>Build log was saved at
> "file://c:\msys\1.0\home\pony\Ipopt\Ipopt\MSVisualStudio\v9\libCoinLapack\Release\BuildLog.htm"
> 3>libCoinLapack - 37 error(s), 1 warning(s)
> 4>------ Rebuild All started: Project: libIpopt, Configuration:
> Release Win32 ------
> 4>Deleting intermediate and output files for project 'libIpopt',
> configuration 'Release|Win32'
> 4>Compiling...
> 4>cl : Command line warning D9035 : option 'Wp64' has been deprecated
> and will be removed in a future release
> 4>IpAdaptiveMuUpdate.cpp
> 4>IpPiecewisePenalty.cpp
> 4>IpCGSearchDirCalc.cpp
> 4>IpCGPerturbationHandler.cpp
> 4>IpCGPenaltyRegOp.cpp
> 4>IpCGPenaltyLSAcceptor.cpp
> 4>IpCGPenaltyData.cpp
> 4>IpCGPenaltyCq.cpp
> 4>IpTNLPAdapter.cpp
> 4>IpStdInterfaceTNLP.cpp
> 4>IpStdCInterface.cpp
> 4>IpSolveStatistics.cpp
> 4>IpIpoptApplication.cpp
> 4>IpInterfacesRegOp.cpp
> 4>IpUtils.cpp
> 4>..\..\..\src\Common\IpUtils.cpp(52) : warning C4800: 'int' : forcing
> value to bool 'true' or 'false' (performance warning)
> 4>IpTaggedObject.cpp
> 4>IpRegOptions.cpp
> 4>IpOptionsList.cpp
> 4>IpObserver.cpp
> 4>IpJournalist.cpp
> 4>Generating Code...
> 4>Compiling...
> 4>IpDebug.cpp
> 4>IpZeroMatrix.cpp
> 4>IpVector.cpp
> 4>IpTripletHelper.cpp
> 4>IpSymTMatrix.cpp
> 4>IpSymScaledMatrix.cpp
> 4>IpSymMatrix.cpp
> 4>IpSumSymMatrix.cpp
> 4>IpSumMatrix.cpp
> 4>IpScaledMatrix.cpp
> 4>IpMultiVectorMatrix.cpp
> 4>IpMatrix.cpp
> 4>IpLowRankUpdateSymMatrix.cpp
> 4>IpLapack.cpp
> 4>IpIdentityMatrix.cpp
> 4>IpGenTMatrix.cpp
> 4>IpExpansionMatrix.cpp
> 4>IpDiagMatrix.cpp
> 4>IpDenseVector.cpp
> 4>IpDenseSymMatrix.cpp
> 4>Generating Code...
> 4>Compiling...
> 4>IpDenseGenMatrix.cpp
> 4>IpCompoundVector.cpp
> 4>IpCompoundSymMatrix.cpp
> 4>IpCompoundMatrix.cpp
> 4>IpBlas.cpp
> 4>IpWarmStartIterateInitializer.cpp
> 4>IpUserScaling.cpp
> 4>IpTSymLinearSolver.cpp
> 4>IpTripletToCSRConverter.cpp
> 4>IpTimingStatistics.cpp
> 4>IpStdAugSystemSolver.cpp
> 4>IpRestoRestoPhase.cpp
> 4>IpRestoMinC_1Nrm.cpp
> 4>IpRestoIterationOutput.cpp
> 4>IpRestoIterateInitializer.cpp
> 4>IpRestoIpoptNLP.cpp
> 4>IpRestoFilterConvCheck.cpp
> 4>IpQualityFunctionMuOracle.cpp
> 4>IpProbingMuOracle.cpp
> 4>IpPenaltyLSAcceptor.cpp
> 4>Generating Code...
> 4>Compiling...
> 4>IpPDSearchDirCalc.cpp
> 4>IpPDPerturbationHandler.cpp
> 4>IpPDFullSpaceSolver.cpp
> 4>IpOrigIterationOutput.cpp
> 4>IpOrigIpoptNLP.cpp
> 4>IpOptErrorConvCheck.cpp
> 4>IpNLPScaling.cpp
> 4>IpMonotoneMuUpdate.cpp
> 4>IpMc19TSymScalingMethod.cpp
> 4>IpMa27TSolverInterface.cpp
> 4>IpLowRankAugSystemSolver.cpp
> 4>IpLoqoMuOracle.cpp
> 4>IpLinearSolversRegOp.cpp
> 4>IpLimMemQuasiNewtonUpdater.cpp
> 4>IpLeastSquareMults.cpp
> 4>IpIteratesVector.cpp
> 4>IpIpoptData.cpp
> 4>IpIpoptCalculatedQuantities.cpp
> 4>IpIpoptAlg.cpp
> 4>IpGradientScaling.cpp
> 4>Generating Code...
> 4>Compiling...
> 4>IpFilterLSAcceptor.cpp
> 4>IpFilter.cpp
> 4>IpExactHessianUpdater.cpp
> 4>IpEquilibrationScaling.cpp
> 4>IpDefaultIterateInitializer.cpp
> 4>IpBacktrackingLineSearch.cpp
> 4>IpAugRestoSystemSolver.cpp
> 4>IpAlgorithmRegOp.cpp
> 4>IpAlgBuilder.cpp
> 4>Generating Code...
> 4>Compiling...
> 4>cl : Command line warning D9035 : option 'Wp64' has been deprecated
> and will be removed in a future release
> 4>IpStdFInterface.c
> 4>..\..\..\src\Interfaces\IpStdFInterface.c(209) : warning C4311:
> 'type cast' : pointer truncation from 'void *' to 'fptr'
> 4>..\..\..\src\Interfaces\IpStdFInterface.c(219) : warning C4311:
> 'type cast' : pointer truncation from 'FUserData *' to 'fptr'
> 4>..\..\..\src\Interfaces\IpStdFInterface.c(225) : warning C4312:
> 'type cast' : conversion from 'fptr' to 'FUserData *' of greater size
> 4>..\..\..\src\Interfaces\IpStdFInterface.c(230) : warning C4311:
> 'type cast' : pointer truncation from 'void *' to 'fptr'
> 4>..\..\..\src\Interfaces\IpStdFInterface.c(244) : warning C4312:
> 'type cast' : conversion from 'fptr' to 'FUserData *' of greater size
> 4>..\..\..\src\Interfaces\IpStdFInterface.c(281) : warning C4312:
> 'type cast' : conversion from 'fptr' to 'FUserData *' of greater size
> 4>..\..\..\src\Interfaces\IpStdFInterface.c(307) : warning C4312:
> 'type cast' : conversion from 'fptr' to 'FUserData *' of greater size
> 4>..\..\..\src\Interfaces\IpStdFInterface.c(331) : warning C4312:
> 'type cast' : conversion from 'fptr' to 'FUserData *' of greater size
> 4>..\..\..\src\Interfaces\IpStdFInterface.c(356) : warning C4312:
> 'type cast' : conversion from 'fptr' to 'FUserData *' of greater size
> 4>Creating library...
> 4>IpObserver.obj : warning LNK4221: no public symbols found; archive
> member will be inaccessible
> 4>IpDebug.obj : warning LNK4221: no public symbols found; archive
> member will be inaccessible
> 4>Build log was saved at
> "file://c:\msys\1.0\home\pony\Ipopt\Ipopt\MSVisualStudio\v9\libIpopt\Release\BuildLog.htm"
> 4>libIpopt - 0 error(s), 14 warning(s)
> 5>------ Rebuild All started: Project: hs071_cpp, Configuration:
> Release Win32 ------
> 6>------ Rebuild All started: Project: IpoptAmplSolver, Configuration:
> Release Win32 ------
> 6>Deleting intermediate and output files for project
> 'IpoptAmplSolver', configuration 'Release|Win32'
> 5>Deleting intermediate and output files for project 'hs071_cpp',
> configuration 'Release|Win32'
> 5>Compiling...
> 5>cl : Command line warning D9035 : option 'Wp64' has been deprecated
> and will be removed in a future release
> 5>hs071_nlp.cpp
> 6>Compiling...
> 6>cl : Command line warning D9035 : option 'Wp64' has been deprecated
> and will be removed in a future release
> 6>AmplTNLP.cpp
> 5>hs071_main.cpp
> 6>..\..\..\src\Apps\AmplSolver\AmplTNLP.cpp(829) : warning C4297:
> 'Ipopt::get_num_opt' : function assumed not to throw an exception but does
> 6>        The function is extern "C" and /EHc was specified
> 6>..\..\..\src\Apps\AmplSolver\AmplTNLP.cpp(847) : warning C4297:
> 'Ipopt::get_int_opt' : function assumed not to throw an exception but does
> 6>        The function is extern "C" and /EHc was specified
> 6>..\..\..\src\Apps\AmplSolver\AmplTNLP.cpp(865) : warning C4297:
> 'Ipopt::get_str_opt' : function assumed not to throw an exception but does
> 6>        The function is extern "C" and /EHc was specified
> 6>..\..\..\src\Apps\AmplSolver\AmplTNLP.cpp(894) : warning C4297:
> 'Ipopt::get_haltonerror_opt' : function assumed not to throw an
> exception but does
> 6>        The function is extern "C" and /EHc was specified
> 5>Generating Code...
> 6>ampl_ipopt.cpp
> 5>Linking...
> 5>LINK : fatal error LNK1181: cannot open input file 'vcf2c.lib'
> 5>Build log was saved at
> "file://c:\msys\1.0\home\pony\Ipopt\Ipopt\MSVisualStudio\v9\hs071_cpp\Release\BuildLog.htm"
> 5>hs071_cpp - 1 error(s), 1 warning(s)
> 6>Generating Code...
> 6>Linking...
> 6>LINK : fatal error LNK1181: cannot open input file 'vcf2c.lib'
> 6>Build log was saved at
> "file://c:\msys\1.0\home\pony\Ipopt\Ipopt\MSVisualStudio\v9\IpoptAmplSolver\Release\BuildLog.htm"
> 6>IpoptAmplSolver - 1 error(s), 5 warning(s)
> ========== Rebuild All: 1 succeeded, 5 failed, 0 skipped ==========
>
> -- 
> Thank you very much
>
> Yours
> Yudong Ma
> ------------------------------------------------------------------------
>
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/ipopt
>   



More information about the Ipopt mailing list