<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transational//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
</HEAD>
<BODY>Hello Patrick,<br><br>having set the path removed 2 errors, there was no R_HOME variable I put one but there is still the <br>two errors from CMake (2.8.7);<br>I reboot the machine;clean the project folder from what was generated before;<br><br>user variable<br>R_HOME : c:\Program Files\R\R-2.14.1<br><br>system variable<br>Path : C:\Program Files\R\R-2.14.1\bin\i386;<br><br><br>the error I get from CMake-Gui :<br>
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>

<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#ff0000;">CMake Error at CMakeLists.txt:14 (string):</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#ff0000;">  string sub-command SUBSTRING requires four arguments.</span></p>


<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#ff0000;">CMake Error at CMakeLists.txt:19 (string):</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#ff0000;">  string sub-command LENGTH requires two arguments.</span></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; color:#ff0000;"><br></p><br><br><br>
---- Message d'origine ----<br>
>De : "Patrick Burns" <patrick@burns-stat.com><br>
>À : "Peter Aberline" <Peter.Aberline@rms.com><br>
>Objet : Re: [Rcpp-devel] RInside on windows<br>
>Date : 19/02/2012 17:15:16 CET<br>
>Copie à : "pasparis@noos.fr" <pasparis@noos.fr>;<br>
>       "rcpp-devel@r-forge.wu-wien.ac.at" <rcpp-devel@r-forge.wu-wien.ac.at><br>
><br>
>I suspect that R_HOME is not set.<br>
> <br>
> On 19/02/2012 15:41, Peter Aberline wrote:<br>
> > Well that's you're problem then. Until you can get that to work, the build <br>
> will not work.<br>
> ><br>
> > Do you have R, Rcpp and RInside installed?<br>
> ><br>
> > ________________________________________<br>
> > From: pasparis@noos.fr [pasparis@noos.fr]<br>
> > Sent: 19 February 2012 15:38<br>
> > To: Peter Aberline; edd@debian.org<br>
> > Cc: rcpp-devel@r-forge.wu-wien.ac.at<br>
> > Subject: Re: RE: RE: Re: RE: [Rcpp-devel] RInside on windows<br>
> ><br>
> > R is not recognized as an internal command<br>
> ><br>
> ><br>
> > ---- Message d'origine ----<br>
> >> De : "Peter Aberline"<Peter.Aberline@rms.com><br>
> >> À : "pasparis@noos.fr"<pasparis@noos.fr>;<br>
> >> "edd@debian.org"<edd@debian.org><br>
> >> Objet : RE: RE: Re: RE: [Rcpp-devel] RInside on windows<br>
> >> Date : 19/02/2012 16:30:45 CET<br>
> >> Copie à : "rcpp-devel@r-forge.wu-wien.ac.at"<rcpp-devel@r-forge.wu-wien.a<br>
> c.at><br>
> >><br>
> >> Looks like the RCPPFLAGS variable is null for some reason.<br>
> >><br>
> >> What do you get if you type:<br>
> >> R CMD config --cppflags<br>
> >><br>
> >> Into a terminal console?<br>
> >><br>
> >><br>
> >><br>
> >> ________________________________________<br>
> >> From: pasparis@noos.fr [pasparis@noos.fr]<br>
> >> Sent: 19 February 2012 15:25<br>
> >> To: Peter Aberline; edd@debian.org<br>
> >> Cc: rcpp-devel@r-forge.wu-wien.ac.at<br>
> >> Subject: Re: RE: Re: RE: [Rcpp-devel] RInside on windows<br>
> >><br>
> >> the exact errors series are:<br>
> >> CMake Error at CMakeLists.txt:14 (string):<br>
> >><br>
> >> string sub-command SUBSTRING requires four arguments.<br>
> >><br>
> >> CMake Error at CMakeLists.txt:19 (string):<br>
> >><br>
> >> string sub-command LENGTH requires two arguments.<br>
> >><br>
> >> CMake Error at CMakeLists.txt:34 (string):<br>
> >><br>
> >> string sub-command SUBSTRING requires four arguments.<br>
> >><br>
> >> CMake Error at CMakeLists.txt:50 (string):<br>
> >><br>
> >> string sub-command SUBSTRING requires four arguments.<br>
> >><br>
> >><br>
> >> row 14:<br>
> >><br>
> >> string(SUBSTRING ${RCPPFLAGS} ${NUM_TRUNC_CHARS} -1 RCPPFLAGS)<br>
> >><br>
> >><br>
> >><br>
> >><br>
> >><br>
> >> ---- Message d'origine ----<br>
> >>> De : "Peter Aberline"<Peter.Aberline@rms.com><br>
> >>> À : "pasparis@noos.fr"<pasparis@noos.fr>;<br>
> >>> "edd@debian.org"<edd@debian.org><br>
> >>> Objet : RE: Re: RE: [Rcpp-devel] RInside on windows<br>
> >>> Date : 19/02/2012 15:56:06 CET<br>
> >>> Copie à : "rcpp-devel@r-forge.wu-wien.ac.at"<rcpp-devel@r-forge.wu-wien.<br>
> ac<br>
> >> .at><br>
> >>><br>
> >>> I'm using Cmake 2.8.5 on Ubuntu 11.10 and it works fine for me.<br>
> >>><br>
> >>> Which cmakelists file are you using, and what is on line 14?<br>
> >>><br>
> >>><br>
> >>><br>
> >>> ________________________________________<br>
> >>> From: pasparis@noos.fr [pasparis@noos.fr]<br>
> >>> Sent: 19 February 2012 14:54<br>
> >>> To: Peter Aberline; edd@debian.org<br>
> >>> Cc: rcpp-devel@r-forge.wu-wien.ac.at<br>
> >>> Subject: Re: Re: RE: [Rcpp-devel] RInside on windows<br>
> >>><br>
> >>> I use CMake 2.8.7,<br>
> >>> it seems to be the latest, it it possible a conflict between the <br>
> version<br>
> >>> supplied in the RInside folder and this version?<br>
> >>><br>
> >>> ---- Message d'origine ----<br>
> >>> De : "Peter Aberline"<br>
> >>> À : "'pasparis@noos.fr'" ;<br>
> >>> "'edd@debian.org'"<br>
> >>> Objet : Re: RE: [Rcpp-devel] RInside on windows<br>
> >>> Date : 19/02/2012 15:41:27 CET<br>
> >>> Copie à : "'rcpp-devel@r-forge.wu-wien.ac.at'"<br>
> >>><br>
> >>> Make sure you are using the latest version of cmake. The files use a<br>
> >> cmake<br>
> >>> string function only in recent versions of cmake.<br>
> >>><br>
> >>> * Sent from my mobile device.<br>
> >>><br>
> >>> From: pasparis@noos.fr [mailto:pasparis@noos.fr]<br>
> >>> Sent: Sunday, February 19, 2012 02:30 PM<br>
> >>> To: Peter Aberline; edd@debian.org<edd@debian.org><br>
> >>> Cc: rcpp-devel@r-forge.wu-wien.ac.at<rcpp-devel@r-forge.wu-wien.ac.at><br>
> >>> Subject: Re: RE: [Rcpp-devel] RInside on windows<br>
> >>><br>
> >>> Hello Peter<br>
> >>> I tried to generate the file from the CMakeLists file supplied,I use <br>
> the<br>
> >>> cmake-gui but I get the following error:<br>
> >>> I created a folder in which I put a main.cpp and the CMakeLists and <br>
> then<br>
> >> run<br>
> >>> the generate from the cmake-gui<br>
> >>> and I get:<br>
> >>><br>
> >>> CMake Error at CMakeLists.txt:14 (string):<br>
> >>><br>
> >>> string sub-command SUBSTRING requires four arguments.<br>
> >>><br>
> >>> Is there something else to do?(I am new on cmake)<br>
> >>> thanks<br>
> >>> pascal<br>
> >>><br>
> >>> ---- Message d'origine ----<br>
> >>> De : "Peter Aberline"<br>
> >>> À : "pasparis@noos.fr" ;<br>
> >>> "Dirk Eddelbuettel"<br>
> >>> Objet : RE: [Rcpp-devel] RInside on windows<br>
> >>> Date : 14/02/2012 20:52:36 CET<br>
> >>> Copie à : "rcpp-devel@r-forge.wu-wien.ac.at"<br>
> >>><br>
> >>> You can generate .cbp files using the CMakelists.txt files which now <br>
> ship<br>
> >>> with the RInside examples.<br>
> >>><br>
> >>> cmake –G “CodeBlocks - Unix Makefiles”<path to CMakeLists.txt><br>
> >>><br>
> >>><br>
> >>><br>
> >>> From: rcpp-devel-bounces@r-forge.wu-wien.ac.at<br>
> >> [mailto:rcpp-devel-bounces@r-f<br>
> >>> orge.wu-wien.ac.at] On Behalf Of pasparis@noos.fr<br>
> >>> Sent: 14 February 2012 19:51<br>
> >>> To: Dirk Eddelbuettel<br>
> >>> Cc: rcpp-devel@r-forge.wu-wien.ac.at<br>
> >>> Subject: Re: [Rcpp-devel] RInside on windows<br>
> >>><br>
> >>> Dirk,<br>
> >>><br>
> >>> yes but I start to use codeblocks since sunday, and<br>
> >>> "it does not, by default, use makefiles it has its own .cbp files which<br>
> >> do<br>
> >>> the same thing automatically"<br>
> >>><br>
> >>> it's very easy to use, I did it for boost with no problem, that's why I<br>
> >>> wanted to know the include files and the lib<br>
> >>> for rcpp,rinside<br>
> >>><br>
> >>> it's possible to use a makefile with codeblock, I am going to try how <br>
> to<br>
> >> do<br>
> >>> that,<br>
> >>> thanks<br>
> >>> pascal<br>
> >>><br>
> >>><br>
> >>><br>
> >>><br>
> >>> ---- Message d'origine ----<br>
> >>>> De : "Dirk Eddelbuettel"<edd@debian.org><br>
> >>>> À : pasparis@noos.fr<br>
> >>>> Objet : Re: [Rcpp-devel] RInside on windows<br>
> >>>> Date : 14/02/2012 19:57:21 CET<br>
> >>>> Copie à : rcpp-devel@r-forge.wu-wien.ac.at<br>
> >>>><br>
> >>>><br>
> >>>> Patrick,<br>
> >>>><br>
> >>>> On 14 February 2012 at 19:27, pasparis@noos.fr wrote:<br>
> >>>> | this is one of my problem, I am new since this week-end on<br>
> >> codeblocks,<br>
> >>> I<br>
> >>>> use<br>
> >>>> | its builder and from what I thought you link with the static<br>
> >> libraries<br>
> >>>> | 'libRcpp.a,libRInside.a and the none availaible libR.a, and you put<br>
> >> the<br>
> >>>> three<br>
> >>>> | dll files in your bin directory; thats why I was looking for libR.a.<br>
> >>>> | even if I set libR.dll for the linker settings/link libraries, I get<br>
> >>> some<br>
> >>>> | messages:<br>
> >>>> |<br>
> >>>> | libRcpp.a undefined reference to '_Unwind_Resume'<br>
> >>>> |<br>
> >>>> | I put the include folder of Rcpp,R_ext and RInside, with additional<br>
> >> .h<br>
> >>>> files :<br>
> >>>> | R,Rconfig,Rcpp,Rcppcommon,Rdefines,Rembedded,Rinternals,Rmath,Rversion<br>
> ,<br>
> >> S,<br>
> >>> ga<br>
> >>>> ,graphapp,iconv,libintl,zconf,<br>
> >>>> | and zlib<br>
> >>>> |<br>
> >>>> | I downloaded the R version 2.14.1 and the Rcpp,Rinside packages<br>
> >>>> yesterday,<br>
> >>>> |<br>
> >>>> | what bother me is that I did that on linux with no problem, put the<br>
> >>>> include,<br>
> >>>> | set the linker to the three libraries and run, I need to work on<br>
> >>> windows,<br>
> >>>> and<br>
> >>>> | there is this problem<br>
> >>>> |<br>
> >>>> | what do you put as library for the linker? which includes files?<br>
> >>>><br>
> >>>> Use the supplied Makefile.win unless you /really/ know what you are<br>
> >>> doing.<br>
> >>>><br>
> >>>> Dirk<br>
> >>>><br>
> >>>> --<br>
> >>>> "Outside of a dog, a book is a man's best friend. Inside of a dog, it<br>
> >> is<br>
> >>>> too<br>
> >>>> dark to read." -- Groucho Marx<br>
> >>>><br>
> >>><br>
> >>> ________________________________<br>
> >>> This message and any attachments contain information that may be RMS <br>
> Inc.<br>
> >>> confidential and/or privileged. If you are not the intended recipient <br>
> (or<br>
> >>> authorized to receive for the intended recipient), and have received <br>
> this<br>
> >>> message in error, any use, disclosure or distribution is strictly<br>
> >>> prohibited. If you have received this message in error, please notify <br>
> the<br>
> >>> sender immediately by replying to the e-mail and permanently deleting <br>
> the<br>
> >>> message from your computer and/or storage system.<br>
> >>><br>
> >>> ________________________________<br>
> >>> This message and any attachments contain information that may be RMS <br>
> Inc.<br>
> >>> confidential and/or privileged. If you are not the intended recipient <br>
> (or<br>
> >>> authorized to receive for the intended recipient), and have received <br>
> this<br>
> >>> message in error, any use, disclosure or distribution is strictly<br>
> >>> prohibited. If you have received this message in error, please notify <br>
> the<br>
> >>> sender immediately by replying to the e-mail and permanently deleting <br>
> the<br>
> >>> message from your computer and/or storage system.<br>
> >>><br>
> >>> This message and any attachments contain information that may be RMS <br>
> Inc.<br>
> >>> confidential and/or privileged. If you are not the intended recipient <br>
> (or<br>
> >>> authorized to receive for the intended recipient), and have received <br>
> this<br>
> >>> message in error, any use, disclosure or distribution is strictly<br>
> >>> prohibited. If you have received this message in error, please notify <br>
> the<br>
> >>> sender immediately by replying to the e-mail and permanently deleting <br>
> the<br>
> >>> message from your computer and/or storage system.<br>
> >>><br>
> >>><br>
> >><br>
> >> This message and any attachments contain information that may be RMS <br>
> Inc.<br>
> >> confidential and/or privileged. If you are not the intended recipient <br>
> (or<br>
> >> authorized to receive for the intended recipient), and have received <br>
> this<br>
> >> message in error, any use, disclosure or distribution is strictly<br>
> >> prohibited. If you have received this message in error, please notify <br>
> the<br>
> >> sender immediately by replying to the e-mail and permanently deleting <br>
> the<br>
> >> message from your computer and/or storage system.<br>
> >><br>
> >><br>
> ><br>
> > This message and any attachments contain information that may be RMS Inc. <br>
> confidential and/or privileged.  If you are not the intended recipient (or <br>
> authorized to receive for the intended recipient), and have received this <br>
> message in error, any use, disclosure or distribution is strictly <br>
> prohibited.   If you have received this message in error, please notify the <br>
> sender immediately by replying to the e-mail and permanently deleting the <br>
> message from your computer and/or storage system.<br>
> ><br>
> > _______________________________________________<br>
> > Rcpp-devel mailing list<br>
> > Rcpp-devel@lists.r-forge.r-project.org<br>
> > https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel<br>
> ><br>
> <br>
> -- <br>
> Patrick Burns<br>
> patrick@burns-stat.com<br>
> http://www.burns-stat.com<br>
> http://www.portfolioprobe.com/blog<br>
> twitter: @portfolioprobe<br>
> </BODY></HTML>