Skip to content
Prev 5574 / 10988 Next

[Rcpp-devel] problems with rInside in Ubuntu

Sure, there is an error somewhere. I am just trying to find it and the
only
way I know how to do it is trying to exclude all the possibilities which
are not under my control or which are beyond my current understanding.
I believe this is a quite natural process for someone trying to learn a new
tool.
is
And your "Fist off" is missing an r. If this kind of nonsense were my only
problem in trying to use your code then I would be very glad.

  I did not build libRInside.a, It was build by apt-get or some other tool
which
called R CMD INSTALL or something like it in my behalf. Again, I do believe
other Ubuntu users may have the same problem.

As for the other run that you were so generous to provide me,
do you mean something as at the end of this message?
If you do then it creates two folders, one call libs with contains a library
RInside.o and another called lib which contains libraries libRInside.a and
libRInside.o.
In other words, the files that you do not distribute are created once
we follow your suggestion.

Trying to continue to follow your suggestion, I cannot cd to
pkg/inst/examples/qt/ as you because there is no
such folder pkg in my machine after I follow the steps you suggest (R
CMD...)
Instead, I can cd to folder  examples/qt/ and follow the next step
you suggest

make clean && qmake && make

but it does not work because

make: *** No rule to make target `clean'.  Stop.

I did then what most qt users would do, i.e. open the .pro file
in qtcreator. By doing that I get compilation errors due to my
using of qt 5.0.1 and are easily fixed, but I still have the
linking problem, which I find hard to be caused by the fact that
I am using qt 5.0,1, specially because it also happens in
a simpler project that does not use qt at all.

In resume, by following the steps you suggest I get to a point in
 which neither me nor you know what is happening and I am
trying to figure it out. I am not trying to do anything different
or fancy. I am just trying to make things work, and if you
could suggest effective ways to achieve this goal I would
follow them as carefully as I can.

   walter.

root at linux:/usr/local/lib/R/site-library/RInside# R CMD INSTALL
RInside_0.2.10.tar.gz* installing to library ?/usr/local/lib/R/site-library?
* installing *source* package ?RInside? ...
** libs
/usr/lib/R/bin/Rscript tools/RInsideAutoloads.r > RInsideAutoloads.h
/usr/lib/R/bin/Rscript tools/RInsideEnvVars.r   > RInsideEnvVars.h
g++ -I/usr/share/R/include -DNDEBUG -I. -I../inst/include/
-I"/usr/local/lib/R/site-library/Rcpp/include"   -fpic  -O3 -pipe  -g  -c
MemBuf.cpp -o MemBuf.o
g++ -I/usr/share/R/include -DNDEBUG -I. -I../inst/include/
-I"/usr/local/lib/R/site-library/Rcpp/include"   -fpic  -O3 -pipe  -g  -c
RInside.cpp -o RInside.o
g++ -shared -o RInside.so MemBuf.o RInside.o
-L/usr/local/lib/R/site-library/Rcpp/lib -lRcpp
-Wl,-rpath,/usr/local/lib/R/site-library/Rcpp/lib -L/usr/lib/R/lib -lR
g++ -o libRInside.so MemBuf.o RInside.o -shared `/usr/lib/R/bin/Rscript -e
"Rcpp:::LdFlags()"`  -L/usr/lib/R/lib -lR
ar qc libRInside.a MemBuf.o RInside.o
cp libRInside.so ../inst/lib
cp libRInside.a ../inst/lib
rm libRInside.so libRInside.a
installing to /usr/local/lib/R/site-library/RInside/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded

* DONE (RInside)
root at linux:/usr/local/lib/R/site-library/RInside# ls
DESCRIPTION  examples  help  html  include  INDEX  lib    libs  Meta
NAMESPACE  NEWS.Rd    R  RInside_0.2.10.tar.gz  THANKS
On Sat, Mar 30, 2013 at 10:52 AM, Dirk Eddelbuettel <edd at debian.org> wrote:

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