Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. Adding Eigen library to Qt Creator
Forum Updated to NodeBB v4.3 + New Features

Adding Eigen library to Qt Creator

Scheduled Pinned Locked Moved Unsolved C++ Gurus
3 Posts 3 Posters 8.5k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    iMarcK
    wrote on 23 Feb 2018, 02:18 last edited by
    #1

    I am new to Qt and I have a project I am working on and need to add external headers, that is the Eigen library for matrices. How can I do this. Someone give me a step by step procedure. Remember I am new

    J K 2 Replies Last reply 23 Feb 2018, 04:41
    0
    • I iMarcK
      23 Feb 2018, 02:18

      I am new to Qt and I have a project I am working on and need to add external headers, that is the Eigen library for matrices. How can I do this. Someone give me a step by step procedure. Remember I am new

      J Offline
      J Offline
      JKSH
      Moderators
      wrote on 23 Feb 2018, 04:41 last edited by
      #2

      Hi @iMarcK, and welcome to the Qt Dev Net!

      @iMarcK said in Adding Eigen library to Qt Creator:

      I am new to Qt and I have a project I am working on and need to add external headers, that is the Eigen library for matrices. How can I do this.

      Read http://doc.qt.io/qtcreator/creator-project-qmake-libraries.html (but ignore the section on "Example of Adding Internal Libraries"). Let us know if something is unclear.

      Someone give me a step by step procedure. Remember I am new

      The two-step procedure in the link should be accessible to newcomers.

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      4
      • I iMarcK
        23 Feb 2018, 02:18

        I am new to Qt and I have a project I am working on and need to add external headers, that is the Eigen library for matrices. How can I do this. Someone give me a step by step procedure. Remember I am new

        K Offline
        K Offline
        kshegunov
        Moderators
        wrote on 23 Feb 2018, 10:59 last edited by kshegunov
        #3

        I use Eigen on a daily basis, there's no real setting up to use it - it's a template library, meaning only headers. You only add its location to the INCLUDEPATH variable in your project file and you're good to go (see @JKSH's link and here). Since I use linux and I already have eigen in my system path, I don't even do that step, I just code.

        PS.
        A piece of advice for after you get it working:
        Don't use auto with Eigen! People have been bitten by it, and there's even a dedicated page in the docs why.

        Read and abide by the Qt Code of Conduct

        1 Reply Last reply
        5

        3/3

        23 Feb 2018, 10:59

        • Login

        • Login or register to search.
        3 out of 3
        • First post
          3/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved