Re: [Rcpp-devel] Conflict between RInside and OpenCV

2010-04-23 Thread Xavi de Blas
Finally it works! Yes, it was a mess with my OpenCV libraries, sometimes it's not easy to have them working Knowing that it worked for you it helped me to find the problem Thanks for your fast response. Soon I will post how I integrated this in my software, i think you will like it. Bye 2010/

Re: [Rcpp-devel] RcppMAtrix ?

2010-04-23 Thread Davor Cubranic
Baptiste, Do have a look at RcppArmadillo, it makes matrix code very easy to write (and read!). For example, this is a function callable from R to add two matrices: #include using namespace Rcpp; RcppExport SEXP add_mat(SEXP y_in, SEXP x_in) { NumericMatrix y_r(y_in

Re: [Rcpp-devel] Conflict between RInside and OpenCV

2010-04-23 Thread Xavi de Blas
Hello again I deleted .RData and .Rprofile and problem persists. In order to have OpenCV right-working with last ffmpeg i have so much versions and compilations and maybe there's a problem difficult to reproduce. Can you please post your compilation line? I'm glad that it's working for you Tha

Re: [Rcpp-devel] Conflict between RInside and OpenCV

2010-04-23 Thread Dirk Eddelbuettel
On 23 April 2010 at 22:25, Xavi de Blas wrote: | Hello Dirk | | | > No idea whatsoever. That seems very bizarre and implausible.  Do you have | > anything in your ~/.Profile? | | Nothing special It is either that file, or an existing .RData you are loading by virtue of initializing R. I can r

Re: [Rcpp-devel] Conflict between RInside and OpenCV

2010-04-23 Thread Xavi de Blas
Hello Dirk > No idea whatsoever. That seems very bizarre and implausible.  Do you have > anything in your ~/.Profile? Nothing special > > Also, is > >      -L/usr/local/lib -lhighgui > > all you need to link with OpenCV?  [ BTW the -L/usr/local/lib is redundant. ] I normally use this: g++

Re: [Rcpp-devel] Conflict between RInside and OpenCV

2010-04-23 Thread Dirk Eddelbuettel
On 23 April 2010 at 21:46, Xavi de Blas wrote: | Hello | | I'm trying to call R from my C++ OpenCV software and I have problems at runtime. | | This is rinside_sample6.cpp adapted: | | - | #include | #include "opencv/cv.h" | | int main(int argc, char **argv) { | CvFont font = cvF

[Rcpp-devel] Conflict between RInside and OpenCV

2010-04-23 Thread Xavi de Blas
Hello I'm trying to call R from my C++ OpenCV software and I have problems at runtime. This is rinside_sample6.cpp adapted: - #include #include "opencv/cv.h" int main(int argc, char **argv) { CvFont font = cvFont( 1 ); //This breaks all try { RInside R(arg

[Rcpp-devel] any preprocessor expert around ?

2010-04-23 Thread Romain Francois
Hello, In the svn version of Rcpp (to be released soon) I have added some macros to facilitate writing functions in Rcpp. The macros are RCPP_FUNCTION_0, RCPP_FUNCTION_1, ..., RCPP_FUNCTION_65 (65 is the maximum number of arguments in a .Call call). It goes like this : RCPP_FUNCTION_3(int,fo