[Rcpp-devel] [R] Plot and curve inside C++

Paul Smith phhs80 at gmail.com
Sun Mar 6 18:13:08 CET 2011


On Sun, Mar 6, 2011 at 4:53 PM, Dirk Eddelbuettel <edd at debian.org> wrote:
> | However, I would like to plot graphs from inside a C++ project.
> | Thus, I would like to know what include paths and libs should I add to
> | my C++ project. I am using QtCreator as an IDE on Fedora 14.
>
> You need to read the Makefile that supports these example and understand what
> it does.  You then need adapt your .pro file for Qt accordingly as it will
> create your Makefile. QtCreator is just a shell / ide and I fear you still
> need to work out how to do this. If you want something truly portable you
> have to do what the makefile does and compute locations for R, Rcpp and
> RInside on the fly.  If you don't need portability you can hardcode the
> paths.  If you're completely lost try reducing things to a simple example of
> one main() function with one widget displaying the png we created. I can try
> to help you from there as I had a bit of Qt / qmake experience.
>
> Also, the vignette Rcpp-package explains how to use Rcpp in your own packages
> and may be of help too.

Thanks again, Dirk. I will wait a bit, as perhaps there is someone on
this list that has already a working .pro file.

Paul


More information about the Rcpp-devel mailing list