Giter Club home page Giter Club logo

Comments (5)

markusgft avatar markusgft commented on June 6, 2024

Hello @KarimHassanieh
did you make sure to install all dependencies using the ./install_deps.sh script from the folder control_toolbox/ct ? It seems like the Eigen library is missing on your system. Or it is has been installed in a place where it cannot get located properly (I am wondering what you mean with "code external workspace")

from control-toolbox.

KarimHassanieh avatar KarimHassanieh commented on June 6, 2024

Hi thanks for the feedback it compiles and runs fine within the ct workspace but if I want develop and compile using cmake outside ct workspace which I clone from gtihub I get the error above. Anyhow I solved it by changing the header to #include <eigen3/Eigen/Core> instead in every installed header to resolve this error now it compiles fine.

from control-toolbox.

markusgft avatar markusgft commented on June 6, 2024

Would you mind posting a minimal example of how you include the CT in your project using cmake? It would be interesting to reproduce the issue.

from control-toolbox.

KarimHassanieh avatar KarimHassanieh commented on June 6, 2024

Hi I managed to completely resolve the issue by adding Eigen3::Eigen to target link libraries in CMake. Anyhow Im sharing the cmake sample used just for reference in case it needs to be reproduced.

CMakeLists.txt

from control-toolbox.

markusgft avatar markusgft commented on June 6, 2024

Did you try to also include find_package(ct_core) and then link against ct_core? That should be sufficient I believe. In your above CMakeLists.txt, find_package(ct_core) seems to be missing...

from control-toolbox.

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.