Does anybody have any suggestions?
--
You received this message because you are subscribed to the Google Groups "OSQP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osqp+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osqp/b9531871-3b11-421c-a63e-206a6c000865%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Windows 10
> How did you install cmake?
From here: https://cmake.org/
> Did you add it to the PATH variable?
CMake\bin is added to my PATH
> If you type `cmake --version` in the terminal what do you see?
cmake version 3.14.3
However in the MATLAB terminal I get "Undefined function 'cmake'"
Hi,Which operating system are you using? How did you install cmake? Did you add it to the PATH variable? If you type `cmake --version` in the terminal what do you see?Bartolomeo
On Thu, Apr 25, 2019 at 9:46 AM <heidi...@gmail.com> wrote:
torsdag 25. april 2019 15.39.38 UTC+2 skrev heidi...@gmail.com følgende:
> Hi, I am having trouble using the codegen function in MATLAB 2018b. I have installed all the necessary things (cmake and C-compiler) but I am getting an error that cmake is not a recognized command, even though cmake is in the path.
>
> Does anybody have any suggestions?
I am also having trouble on another computer (with MATLAB 2015b). Which is that when I run "make_osqp" I get the error "Error configuring CMAKE environment" because "CMAKE_MAKE_PROGRAM" is not set. The internet says I should find the make fil associated with mingw-64 and set it as that, but that make file is not on my computer.
--
You received this message because you are subscribed to the Google Groups "OSQP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to os...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "OSQP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osqp+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osqp/b28b8f07-2075-4fc4-8b13-0db5938bca39%40googlegroups.com.
> Can you please send us:
>
>
> 1) the exact commands you are running and erros that you get
My path is /osqp-matlab/ and I run make_osqp.
Error: CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
> 2) the output of `getenv('PATH')` from matlab?
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\MATLAB\R2015b\runtime\win64;C:\Program Files\MATLAB\R2015b\bin;C:\Program Files\MATLAB\R2015b\polyspace\bin;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Common Files\Quanser\hardware\;C:\Program Files (x86)\Common Files\Quanser\hardware\;C:\Program Files\Quanser\QUARC\;C:\Program Files\Git\cmd;C:\MATLAB\SupportPackages\R2015b\MW_MinGW_4_9\bin;C:\Users\hisollie\AppData\Local\Microsoft\WindowsApps;C:\Program Files\CMake\bin
> 3) The output of `!cmake --version` from matlab
cmake version 3.14.3
CMake suite maintained and supported by Kitware (kitware.com/cmake).
--
You received this message because you are subscribed to the Google Groups "OSQP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osqp+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osqp/dbe7ef77-30b8-4756-a401-2b156cf23a59%40googlegroups.com.
It worked now! Thanks guys! I had to download and install tdm-gcc and add the mingw32-make.exe file, which was in TDM-GCC-64/bin, to the path.
--
You received this message because you are subscribed to the Google Groups "OSQP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osqp+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osqp/31092c00-ccb8-47e5-9054-12e31ec1e396%40googlegroups.com.
When I run '!mingw32-make' in the MATLAB terminal I get "is not recognized as an internal or external command, operable program or batch file". However
'C:\TDM-GCC-64\bin' is in my MATLAB path, and I have checked that the mingw32-make.exe file is located there.
When I run 'mingw32-make' in the command prompt on Windows I get '** No targets specified and no makefile found. Stop.',so it's in the path there.
Any tips?
Hm, I'm not sure. I _think_ I added the location to my MATLAB path
setenv('PATH', [getenv('PATH') 'C:\TDM-GCC-64\bin'])
and I got a new error, "'cmake' is not recognized as an internal or external command, operable program or batch file."
And when running '!mingw32-make.exe' in MATLAB, I also get "not recognized as an internal or external command, operable program or batch file."
No, they were not. That was the problem, thanks!
Now, it's not working because it cannot find files
"CMake Error: File C:/../c_code/configure/osqp_configure.h.in does not exist"
even though this folder "c_code" is on the script makes to store the generated c-code.
Yes, all the qdldl files were missing so I ran the command and they showed up in under "codegen/sources".
Now I get an error using mex, specifically
"C:\Users\user\folder\osqp-matlab\osqp_mex.cpp : error C2440: 'type cast' : cannot convert from 'double' to 'linsys_solver_type' "
along with many warnings about conversion from 'c_int' to 'int', possible loss of data.
Is it the actual OSQP object it is having trouble with now?
And now I'm back to the same error as earlier without having changed anything about the directory. This is very frustrating...
--
You received this message because you are subscribed to the Google Groups "OSQP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osqp+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osqp/604f656b-dc59-48a1-9c6c-83457b3c085c%40googlegroups.com.