Coder Social home page Coder Social logo

Comments (8)

traversaro avatar traversaro commented on June 12, 2024 1

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.

from osqp-eigen.

S-Dafarra avatar S-Dafarra commented on June 12, 2024 1

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.

from osqp-eigen.

traversaro avatar traversaro commented on June 12, 2024 1

In the new issue that @S-Dafarra suggested to open, please provide the exact commands that you used to install osqp, thanks.

from osqp-eigen.

S-Dafarra avatar S-Dafarra commented on June 12, 2024

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

from osqp-eigen.

Tengyun-Mo avatar Tengyun-Mo commented on June 12, 2024

Thanks for your response.I have fixed this problem by steps as follows:

  1. git clone https://github.com/robotology/osqp-eigen.git
  2. cd osqp-eigen
  3. mkdir build && cd build
  4. cmake -G "MinGW Makefiles" ..
  5. make --build .
  6. cmake --build . --target install

from osqp-eigen.

dhruvthanki avatar dhruvthanki commented on June 12, 2024

I tried building the library on Windows. Used 'cmake --build . --config Release' instead of make. Got the following error. How do I solve this.
osqp-eigen

from osqp-eigen.

S-Dafarra avatar S-Dafarra commented on June 12, 2024

Hi @dhruvthanki there seems to be a linking problem with osqp. Did osqp compile correctly? What is the cmake output?

from osqp-eigen.

dhruvthanki avatar dhruvthanki commented on June 12, 2024

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:
osqp-eigen-2

from osqp-eigen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.