[Rcpp-devel] qtdensity example build problem

Jarny Choi jarny.choi at gmail.com
Mon May 7 15:26:39 CEST 2012


I'm trying to build the qtdensity example which comes with RInside, using Qt Creator and the qtdensity.pro file included, but my build fails because g++ can't find libRInside.a. Running Rscript on command line shows that RInside:::LdFlags() does not return the full path, as it is doing for Rcpp, hence the error:

> /Library/Frameworks/R.framework/Resources/bin/Rscript -e "Rcpp:::CxxFlags()"
-I/Library/Frameworks/R.framework/Versions/2.15/Resources/library/Rcpp/include

> /Library/Frameworks/R.framework/Resources/bin/Rscript -e "Rcpp:::LdFlags()"
/Library/Frameworks/R.framework/Versions/2.15/Resources/library/Rcpp/lib/x86_64/libRcpp.a

> /Library/Frameworks/R.framework/Resources/bin/Rscript -e "RInside:::CxxFlags()"
-I/Library/Frameworks/R.framework/Versions/2.15/Resources/library/RInside/include

> /Library/Frameworks/R.framework/Resources/bin/Rscript -e "RInside:::LdFlags()"
/libRInside.a

(RInside 0.2.6, OS 10.6.8). Have I missed something obvious here? The only thing I can think of is that it's an architecture issue, as there is no .../RInside/lib/x86_64/libRInside.a file.

Thanks.
jc (Melbourne)



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20120507/e30eeae1/attachment.html>


More information about the Rcpp-devel mailing list