Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Adding Eigen and Armadillo library
Forum Updated to NodeBB v4.3 + New Features

Adding Eigen and Armadillo library

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 873 Views
  • 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.
  • D Offline
    D Offline
    Dooham
    wrote on 7 Feb 2020, 18:12 last edited by
    #1

    Hello everyone,
    Recently I have been trying to use a math library to a console application for solving some matrix cases. However I have found some issues the library.

    I cant add the library with the includepath command

    This is my .pro file

    QT -= gui
    
    CONFIG += c++11 console
    CONFIG -= app_bundle
    
    # The following define makes your compiler emit warnings if you use
    # any Qt feature that has been marked deprecated (the exact warnings
    # depend on your compiler). Please consult the documentation of the
    # deprecated API in order to know how to port your code away from it.
    DEFINES += QT_DEPRECATED_WARNINGS
    
    # You can also make your code fail to compile if it uses deprecated APIs.
    # In order to do so, uncomment the following line.
    # You can also select to disable deprecated APIs only up to a certain version of Qt.
    #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
    
    SOURCES += \
            main.cpp
    
    INCLUDEPATH += C:\Users\10alv\Documents\Armadillo Libreria\Eigen 3.2\eigen-3.2.10\Eigen
    
    # Default rules for deployment.
    qnx: target.path = /tmp/$${TARGET}/bin
    else: unix:!android: target.path = /opt/$${TARGET}/bin
    !isEmpty(target.path): INSTALLS += target
    
    

    I unzip the .rar that I downloaded in the path: C:\Users\10alv\Documents\Armadillo Libreria\Eigen 3.2\eigen-3.2.10
    And in this file, I understand that just need the folder Eingen that its inside and it contains the file of the library.
    But the code dont recognize any of file of this file. For examplo, for use a matrix I need use the command

    #include <Dense>
    

    But Qt doesnt recognize this file. Thanks for your help.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 7 Feb 2020, 19:14 last edited by
      #2

      @Dooham said in Adding Eigen and Armadillo library:

      C:\Users\10alv\Documents\Armadillo Libreria\Eigen 3.2\eigen-3.2.10\Eigen

      There is a space inside the path - you have to quote it. Take a look at the compiler options when compiling and you will see that the include path is given wrong to the compiler.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      3
      • D Offline
        D Offline
        Dooham
        wrote on 7 Feb 2020, 19:27 last edited by
        #3

        Thanks there were the issue. I change the path and now it works.

        1 Reply Last reply
        0

        1/3

        7 Feb 2020, 18:12

        • Login

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