<html>
<head>
</head>
<body class='hmmessage'><div dir='ltr'>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr"><br>I have spent two days trying to run through this 'guide' to setting up the software... <a href="http://stackoverflow.com/questions/12886517/how-to-set-up-eclipse-statet-rcpp-on-windows" target="_blank" style="font-size: 12pt;">http://stackoverflow.com/questions/12886517/how-to-set-up-eclipse-statet-rcpp-on-windows</a><div><br></div><div>Only 158 build errors... </div><div><br></div><div>Build info:</div><div>R 2.15.1 installed to C:\R (no spaces)</div><div>Installed both packages: <span style="background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 13.600000381469727px; line-height: 17.600000381469727px;">install.packages(c("Rcpp","RInside"),type="source")</span></div><div>Rtools 2.15 installed and <span style="background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 13.600000381469727px; line-height: 17.600000381469727px;">C:\Rtools\bin; C:\Rtools\gcc-4.6.3\bin; C:\R\R-2.15.1\bin\i386; </span><span style="font-size: 12pt;">added to the environment PATH variable</span></div><div>Eclipse + CDT : I downloaded the <span style="font-family: Arial, sans-serif; font-size: 12px; line-height: 16px;">eclipse-cpp-juno-SR2-win32.zip file </span><span style="font-size: 12pt;">aasd.</span></div><div>I created the skeleton package: <span style="background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 13.600000381469727px; line-height: 17.600000381469727px;">Rcpp.package.skeleton("MyCppPackage", module=TRUE)</span></div><div><span style="font-size: 12pt;">and dragged the files over to the "MyCppPackage"</span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">I ran through all the steps in the 'guide'... Created the R build configs, set up the R console, Iv done exactly everything the tutorial said. Here are my C/C++ Build Settings:</span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">Cross G++ Compiler:</span></div><div>-DINSIDE -I"C:\R\R-2.15.1\include" -I"C:\R\R-2.15.1\library\Rcpp\include" -I"C:\R\R-2.15.1\library\Rcpp\include\Rcpp" -I"C:\R\R-2.15.1\library\RInside\include" -O0 -g3 -Wall -c -fmessage-length=0</div><div><br></div><div>Cross G++ Linker:</div><div>-L"C:\R\R-2.15.1\library" -shared</div><div><br></div><div><span style="font-size: 12pt;">Cross G++ linker </span>Miscellaneous Tab:</div><div><div>"C:\R\R-2.15.1\bin\i386\R.dll"</div><div>"C:\R\R-2.15.1\library\Rcpp\lib\i386\libRcpp.a"</div><div>"C:\R\R-2.15.1\library\RInside\lib\i386\libRInside.a"</div></div><div><br></div><div>The console loads up just fine.</div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">Inside the "MyCppPackage" project the files dont contain bug icons or red underlines which I guess means that the script files pick up the functions, the libraries must be references correctly I suppose?</span></div><div><br></div><div>And here comes my problem(s):</div><div><span style="font-size: 12pt;">R CMD CHECK returns ... OK for most lines and at the end says " Hmm ... looks like a package"</span></div><div> the only error it gives is </div><div>Error in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet, : </div><div><span style="font-size: 12pt;"> pdflatex is not available</span></div><div>and </div><div><span style="font-size: 12pt;">Error in running tools::texi2pdf</span></div><div><div><br></div><div>R CMD INSTALL / R CMD BUILD return 158 errors (but sometimes INSTALL works anyway). </div></div><div>These errors are mostly of the same type:</div><div>Description:</div><div>'x' was not declared in this scope</div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">Resource</span></div><div><span style="font-size: 12pt;">MyCppPackage</span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">Path</span></div><div><span style="font-size: 12pt;">(Blank)</span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">Location</span></div><div><div><span style="font-size: 12pt;">line xyz, external location: C:\R\R-2.15.1\library\Rcpp\include\Rcpp\string.h</span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">Type</span></div><div><span style="font-size: 12pt;">C/C++ Problem</span></div><div><span style="font-size: 12pt;"><br></span></div><div>If I want to attach a reproducible example, do I just attach the entire "MyCppPackage" project? I have attached the build log file.</div><div><br></div><div>Any advice would be greatly appreciated. </div><div><span style="font-size: 12pt;"><br></span></div><div style="font-size: 12pt;"><br></div></div><div><br></div><div><span style="font-size: 12pt;"><br></span></div><div><br></div></div>
</div></body>
</html>