pdos icon indicating copy to clipboard operation
pdos copied to clipboard

Problem installing PDOS on Windows MATLAB 2014B Microsoft Windows SDK 7.1 (C)

Open pmountcastle opened this issue 11 years ago • 3 comments

cvx_install_pdos fails under windows 7, MATLAB 2014b, Microsoft Windows SDK 7.1, with the following output

cvx_install_pdos Verbose mode is on. No MEX options file identified; looking for an implicit selection. ... Looking for compiler 'Intel C++ Composer XE 2011 with Microsoft SDK 7.1 (C)' ... ... Looking for environment variable 'ICPP_COMPILER12' ...No. Did not find installed compiler 'Intel C++ Composer XE 2011 with Microsoft SDK 7.1 (C)'. ... Looking for compiler 'Intel C++ Composer XE 2011 with Microsoft Visual Studio 2008 (C)' ... ... Looking for environment variable 'ICPP_COMPILER12' ...No. Did not find installed compiler 'Intel C++ Composer XE 2011 with Microsoft Visual Studio 2008 (C)'. ... Looking for compiler 'Intel C++ Composer XE 2011 with Microsoft Visual Studio 2010 (C)' ... ... Looking for environment variable 'ICPP_COMPILER12' ...No. Did not find installed compiler 'Intel C++ Composer XE 2011 with Microsoft Visual Studio 2010 (C)'. ... Looking for compiler 'Intel C++ Composer XE 2013 with Microsoft SDK 7.1' ... ... Looking for environment variable 'ICPP_COMPILER14' ...No. ... Looking for environment variable 'ICPP_COMPILER13' ...No. Did not find installed compiler 'Intel C++ Composer XE 2013 with Microsoft SDK 7.1'. ... Looking for compiler 'Intel C++ Composer XE 2013 with Microsoft Visual Studio 2010 (C)' ... ... Looking for environment variable 'ICPP_COMPILER14' ...No. ... Looking for environment variable 'ICPP_COMPILER13' ...No. Did not find installed compiler 'Intel C++ Composer XE 2013 with Microsoft Visual Studio 2010 (C)'. ... Looking for compiler 'Intel C++ Composer XE 2013 with Microsoft Visual Studio 2012 (C)' ... ... Looking for environment variable 'ICPP_COMPILER14' ...No. ... Looking for environment variable 'ICPP_COMPILER13' ...No. Did not find installed compiler 'Intel C++ Composer XE 2013 with Microsoft Visual Studio 2012 (C)'. ... Looking for compiler 'Microsoft Visual C++ 2008 (C)' ... ... Looking for environment variable 'VS90COMNTOOLS' ...No. Did not find installed compiler 'Microsoft Visual C++ 2008 (C)'. ... Looking for compiler 'Microsoft Visual C++ 2010 (C)' ... ... Looking for environment variable 'VS100COMNTOOLS' ...Yes ('C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools'). ... Looking for file 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\cl.exe' ...Yes. ... Looking for folder 'C:\Program Files (x86)\Microsoft Visual Studio 10.0' ...Yes. ... Looking for registry setting 'HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A' InstallationFolder ...No. ... Looking for registry setting 'HKCU\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A' InstallationFolder ...No. Did not find installed compiler 'Microsoft Visual C++ 2010 (C)'. ... Looking for compiler 'Microsoft Visual C++ 2012 (C)' ... ... Looking for registry setting 'HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VS7' 11.0 ...No. ... Looking for registry setting 'HKCU\SOFTWARE\Microsoft\VisualStudio\SxS\VS7' 11.0 ...No. ... Looking for registry setting 'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7' 11.0 ...No. ... Looking for registry setting 'HKCU\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7' 11.0 ...No. Did not find installed compiler 'Microsoft Visual C++ 2012 (C)'. ... Looking for compiler 'Microsoft Visual C++ 2013 Professional (C)' ... ... Looking for registry setting 'HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VS7' 12.0 ...No. ... Looking for registry setting 'HKCU\SOFTWARE\Microsoft\VisualStudio\SxS\VS7' 12.0 ...No. ... Looking for registry setting 'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7' 12.0 ...No. ... Looking for registry setting 'HKCU\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7' 12.0 ...No. Did not find installed compiler 'Microsoft Visual C++ 2013 Professional (C)'. ... Looking for compiler 'Microsoft Windows SDK 7.1 (C)' ... ... Looking for registry setting 'HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.1' InstallationFolder ...Yes ('C:\Program Files\Microsoft SDKs\Windows\v7.1'). ... Looking for registry setting 'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VC7' 10.0 ...Yes ('C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC'). ... Looking for file 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\cl.exe' ...Yes. ... Looking for folder 'C:\Program Files (x86)\Microsoft Visual Studio 10.0' ...Yes. Found installed compiler 'Microsoft Windows SDK 7.1 (C)'. Set PATH = C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Bin\amd64;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Bin\VCPackages;C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\x64;C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin;;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x64;C:\Program Files\Lenovo\Fingerprint Manager Pro;C:\Program Files (x86)\Common Files\Lenovo;C:\SWTOOLS\ReadyApps;C:\Program Files\OpenVPN\bin;C:\Program Files (x86)\Common Files\HP\Digital Imaging\bin;C:\Program Files (x86)\HP\Digital Imaging\bin;C:\Program Files (x86)\HP\Digital Imaging\bin\Qt\Qt 4.3.3;C:\Program Files (x86)\MiKTeX 2.9\miktex\bin;C:\Program Files\MATLAB\R2014b\bin;C:\Program Files\Microsoft Windows Performance Toolkit;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Users\mountcastle\AppData\Roaming\MiKTeX\2.9\miktex\bin
Set INCLUDE = C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE;C:\Program Files\Microsoft SDKs\Windows\v7.1\INCLUDE;C:\Program Files\Microsoft SDKs\Windows\v7.1\INCLUDE\gl;C:\Program Files\MATLAB\R2014b\extern\include;; Set LIB = C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Lib\amd64;C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib\X64;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\ATLMFC\LIB\AMD64;C:\Program Files\MATLAB\R2014b\lib\win64;C:\Program Files\MATLAB\R2014b\extern\lib\win64; Set LIBPATH = C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Lib\amd64;C:\Program Files\Microsoft SDKs\Windows\v7.1\LIB\X64;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\ATLMFC\LIB\AMD64;C:\Program Files\MATLAB\R2014b\extern\lib\win64; Error using mex MEX cannot find library 'm' specified with the -l option. MEX looks for a file with one of the names: m.lib libm.lib Please specify the path to this library with the -L option.

Error in make_pdos (line 41) eval(cmd) ;

Error in cvx_install_pdos (line 2) make_pdos

pmountcastle avatar Oct 23 '14 19:10 pmountcastle

No solution so far, but I did a search of my computer for m.lib and libm.lib and did not find either one. I did find a library called libmex.lib in C:\ProgramFiles\MATLAB\R2014b/extern/lib/win64/microsoft, so my suspicion is that MATLAB 2014b may have changed the name and the location of the mex library. Maybe that is easy to accommodate?

pmountcastle avatar Oct 24 '14 21:10 pmountcastle

Actually, it looks like the command for linking libraries in mex (on windows, at least) has now changed to -Lm instead of -lm. Can you give that a shot?

echu avatar Oct 25 '14 16:10 echu

Hi Eric,

That fixed the compilation problem, so I have pdos_direct.mexw64 and pdos_indirect.mexw64. You make a function call in two places that looks like '[ fs, ps, int_path, mext ] = cvx_version;' It is objecting to that syntax for some reason, but I was able to override it by just commenting it out and putting in the cvx path and the mex extension extension manually. The final result is that it does not find the shim to be compatible with cvx 3.0 (see output below). I had to switch to cvx 3.0 to get scs to work. Maybe the other shims for ecos (cvx_ecos.m) and scs (cvx_scs.m) have been updated to be compatible with cvx 3.0?

Thanks,

Paul

cvx_setup


CVX: Software for Disciplined Convex Programming (c)2014 CVX Research

Version 3.0beta, Build 1134 (4975f06) Tue Oct 21 16:10:47 2014

Installation info: Path: C:\Users\mountcastle\Downloads\cvx MATLAB version: 8.4 (R2014b) OS: Windows 7 amd64 version 6.1 Java version: 1.7.0_11 Verfying CVX directory contents: WARNING: The following extra files/directories were found: C:\Users\mountcastle\Downloads\cvx\CVX_inputs.mat These files may alter the behavior of CVX in unsupported ways. Preferences: Path: C:\Users\mountcastle\AppData\Roaming\MathWorks\MATLAB\cvx_prefs.mat License host: Username: mountcastle Host ID: 28d2448167eb (eth4) Installed license: No license installed.

No valid licenses found.

Setting CVX paths...already set! Searching for solvers...8 shims found. 4 solvers initialized (* = default): ECOS 1.0.5 C:\Users\mountcastle\Downloads\ecos-develop\matlab SCS 1.0 C:\Users\mountcastle\Downloads\scs-master\matlab WARNING: The algorithm employed by SCS typically requires a large number of iterations to obtain the levels of accuracy normally sought by CVX. Consider reducing the precision using the CVX_PRECISION command to improve performance.

  • SDPT3 4.0 {cvx}\sdpt3 SeDuMi 1.34 {cvx}\sedumi 1 solver not found: GLPK http://glpkmex.sourceforge.net/
    1 solver requires a CVX Professional license: Mosek unknown {cvx}\mosek\w64 2 solvers skipped due to errors: Gurobi {cvx}\gurobi\w64 No valid Gurobi license was found. (Please note that this license is not the same as the CVX license; it must be obtained directly from Gurobi Optimization.) If you do have a Gurobi license, the the Gurobi MEX file could not find it. Please consult the Gurobi documentation for assistance.
This solver shim is not compatible with CVX 3.0. Please contact
    the authors for an update.

Saving updated preferences...done.

Testing with a simple model...done!

To change the default solver, type "cvx_solver <solver_name>". To save this change for future sessions, type "cvx_save_prefs".

Please consult the users' guide for more information.

pmountcastle avatar Oct 25 '14 21:10 pmountcastle