cureos / csipopt

.NET interface to Ipopt non-linear optimizer
http://code.google.com/p/csipopt/
Eclipse Public License 1.0
19 stars 11 forks source link

Build problem #6

Open anders9ustafsson opened 7 years ago

anders9ustafsson commented 7 years ago

Excerpt from e-mail:

I am trying to test it with visual studio 2015 but I get an error when I am trying to build the cureos.numerics VS solution. I guess that there is a path problem since I did not find where to link the header files coming from the precompiled IPOPT library (from the version Ipopt-3.11.0-Win32-Win64-dll, the one you recommend). The only thing I did until now was to copy the dll in files

C:...\Ipopt-3.11.0-Win32-Win64-dll\lib\x64\ReleaseMKL\

to

C:...\csipopt-master\csipopt-master\Cureos.Numerics

The error message I get when trying to build the project is

Error occurred while restoring NuGet packages: An error occurred while reading file 'C:\IPOPTDDL\csipopt-master\csipopt-master\Cureos.Numerics\Tests.Cureos.Numerics\packages.config': There are duplicate packages: NUnit 1>------ Rebuild All started: Project: Cureos.Numerics, Configuration: Debug Any CPU ------ 1>CSC : warning CS1668: Invalid search path 'C:\Program Files\Artelys\Knitro 10.1.1\lib' specified in 'LIB environment variable' -- 'directory does not exist' 1> Cureos.Numerics -> C:\IPOPTDDL\csipopt-master\csipopt-master\Cureos.Numerics\Cureos.Numerics\bin\Debug\Cureos.Numerics.dll 2>------ Rebuild All started: Project: Tests.Cureos.Numerics, Configuration: Debug x64 ------ 2> All packages listed in packages.config are already installed. 2>CSC : warning CS1668: Invalid search path 'C:\Program Files\Artelys\Knitro 10.1.1\lib' specified in 'LIB environment variable' -- 'directory does not exist' 2> Tests.Cureos.Numerics -> C:\IPOPTDDL\csipopt-master\csipopt-master\Cureos.Numerics\Tests.Cureos.Numerics\bin\x64\Debug\Tests.Cureos.Numerics.dll 2> File not found - .dll 2> 0 File(s) copied 2>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(4713,5): error MSB3073: The command "xcopy /y /q /r /k "C:\IPOPTDDL\csipopt-master\csipopt-master\Cureos.Numerics....\Ipopt\Lib\x64\ReleaseMKL*.dll" "C:\IPOPTDDL\csipopt-master\csipopt-master\Cureos.Numerics\Tests.Cureos.Numerics\bin\x64\Debug*."" exited with code 4. ========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========

Could you help me to solve this error?

anders9ustafsson commented 7 years ago

Not sure about the NuGet error? My recommendation is that you try to restore all NuGet packages.

The xcopy build error is 4, you may get more information about this error type here.

Not sure if you have entered the directory paths correctly in the xcopy command? I would expect that there should be a backslash between ReleaseMKL and *.dll, and also between Debug and *.