Closed Tengyun-Mo closed 3 years ago
Hi @Tengyun-Mo !
From the error messages it seems that you are on Windows, and on Windows if you do not specify the cmake generator the default generator is the Visual Studio one. To build osqp-eigen
in that case, then you need to open the generated project with Visual Studio, or just execute cmake --build . --config Release
, instead of executing make. For more on using CMake with Visual Studio, please read https://cgold.readthedocs.io/en/latest/first-step.html and in particular section 2.6.1 and 2.6.3 .
However, from your log it seems that you are using Visual Studio 2013, and I am not sure if osqp-eigen compiles fine on Visual Studio 2013. We are actively testing and using osqp-eigen with Visual Studio 2019, so it could make sense to try to compile it with Visual Studio 2019.
Also, if you are using "Qt Creator" as IDE, make sure to select the target ALL_BUILD
instead of all
, see https://bugreports.qt.io/browse/QTCREATORBUG-24861?page=com.googlecode.jira-suite-utilities%3Atransitions-summary-tabpanel
Thanks for your response.I have fixed this problem by steps as follows:
I tried building the library on Windows. Used 'cmake --build . --config Release' instead of make. Got the following error. How do I solve this.
Hi @dhruvthanki there seems to be a linking problem with osqp. Did osqp
compile correctly? What is the cmake
output?
I am able to include osqp.h in my project. but it path is: "C:\Program Files (x86)\osqp", not x65. Picture below is osqp-eigen "cmake ../" result:
Unfortunately that output does not tell much. My guess is that cmake
is able to find ospq.h
, but not the library. Did you modify some paths manually?
Also, I would ask tou to open a new issue since this does not seem to be related to the OP, and this is already closed.
In the new issue that @S-Dafarra suggested to open, please provide the exact commands that you used to install osqp, thanks.
When I make the project,I got this :
make: No targets specified and no makefile found.
but cmake is ok.