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. can use rcpp in qt ?
Qt 6.11 is out! See what's new in the release blog

can use rcpp in qt ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 413 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
    donkey007
    wrote on last edited by
    #1

    hello

    let me know how to install rcpp in windows
    and how to use in qt.

    is it posible tho?

    thanks

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by ChrisW67
      #2

      Download the rcpp source, build with a tool chain that matches your Qt libraries, and install. This bit has nothing to do with Qt.

      In your Qt C++ application use the C++ library.
      In Qt Creator
      In qmake
      In cmake

      D 1 Reply Last reply
      0
      • C ChrisW67

        Download the rcpp source, build with a tool chain that matches your Qt libraries, and install. This bit has nothing to do with Qt.

        In your Qt C++ application use the C++ library.
        In Qt Creator
        In qmake
        In cmake

        D Offline
        D Offline
        donkey007
        wrote on last edited by
        #3

        @ChrisW67

        thanks for your answer,
        but one more question

        1. im install R and RStudio and install.package("Rcpp") in RStudio

        2. .pro file
          INCLUDEPATH += "C:\user\AppData\Local\R\win-library\4.2\Rcpp\include"
          like this

        3. mainwindow.h
          #include <Rcpp.h>

        but i got this message

        C:\user\AppData\Local\R\win-library\4.2\Rcpp\include\Rcpp\platform\compiler.h:43: error: C1189: #error: "This compiler is not supported"

        jsulmJ 1 Reply Last reply
        0
        • D donkey007

          @ChrisW67

          thanks for your answer,
          but one more question

          1. im install R and RStudio and install.package("Rcpp") in RStudio

          2. .pro file
            INCLUDEPATH += "C:\user\AppData\Local\R\win-library\4.2\Rcpp\include"
            like this

          3. mainwindow.h
            #include <Rcpp.h>

          but i got this message

          C:\user\AppData\Local\R\win-library\4.2\Rcpp\include\Rcpp\platform\compiler.h:43: error: C1189: #error: "This compiler is not supported"

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @donkey007 What C++ compiler do you use and what C++ compilers are supported by rcpp?
          And again: this has nothing to do with Qt, you should consider to ask in a rcpp forum/mailing list and check rcpp documentation.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

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