Displaying 5 results from an estimated 5 matches for "shlib_openmp_cxxflags".
Did you mean:
shlib_openmp_cflags
2020 Oct 08
1
Installing package fails at "testing if installed package can be loaded from temporary location"
Dirk, thank you a thousand times.
Indeed, src/Makevars was wrong. I modified Makevars so that now looks like
the below and the package now compiled and linked properly.
CXX_STD = CXX11
PKG_LIBS += $(SHLIB_OPENMP_CXXFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
$(shell ${R_HOME}/bin/Rscript -e "RcppParallel::RcppParallelLibs()")
PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS) -I../inst/include
Best,
Sam
On Thu, Oct 8, 2020 at 3:39 PM Dirk Eddelbuettel <edd at debian.org> wrote:
>
> Sam,
>
> PS I...
2013 May 24
0
Rcpp with OpenMP - Need example Makevars
...ewbie with writing C++ extensions and have not
much understanding of the Makevars file, I am unsure what to write
into it. Currently I have:
## Use the R_HOME indirection to support installations of multiple R version
PKG_LIBS = `$(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()"`
KG_CFLAGS = $(SHLIB_OPENMP_CXXFLAGS)
PKG_LIBS = $(SHLIB_OPENMP_CXXFLAGS)
## -- compiling for OpenMP
PKG_CXXFLAGS=-fopenmp
##
## -- linking for OpenMP
PKG_LIBS= -fopenmp -lgomp
Obviously compilation fails with error:
R CMD INSTALL OpenMPTest
Symbol not found: __ZTIN4Rcpp19index_out_of_boundsE
With standard setup of the above Makeva...
2014 Sep 26
1
Why is my R package still compiling with the O2 flag?
....
My questions are what is causing my package's cpp code to be compiled in
-o2 and how to fix this?
Here is the content of the src/Makeconf file of my package (it is fairly
standard I believe for a package using RcppEigen):
PKG_CXXFLAGS = -I../inst/include -DEIGEN_DONT_PARALLELIZE
$(SHLIB_OPENMP_CXXFLAGS)
PKG_LIBS = `$(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()"`
$(SHLIB_OPENMP_CXXFLAGS)
CXX_STD = CXX11
and that of rrcov (which I m using for illustration's sake):
PKG_LIBS=$(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
2020 Oct 08
3
Installing package fails at "testing if installed package can be loaded from temporary location"
Hi,
I can not install packages from source which links to RcppArmadillo on
Ubuntu 20.04 (after upgrading from 18.04). The following problem occurs:
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for 'myPackage' in
dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object
2015 Feb 11
0
CRAN check fails on Solaris, any hints why?
...onfig not found, is GSL installed?])
fi
# Now substitute these variables in src/Makevars.in to create src/Makevars
AC_SUBST(GSL_CFLAGS)
AC_SUBST(GSL_LIBS)
AC_OUTPUT(src/Makevars)
And here is Makevars.in:
GSL_CFLAGS = @GSL_CFLAGS@
GSL_LIBS = @GSL_LIBS@
PKG_LIBS=$(GSL_LIBS) $(SHLIB_OPENMP_CFLAGS) $(SHLIB_OPENMP_CXXFLAGS)
PKG_CFLAGS=$(GSL_CFLAGS) $(SHLIB_OPENMP_CFLAGS)
PKG_CXXFLAGS=$(SHLIB_OPENMP_CXXFLAGS)
Any help would be greatly appreciated. I don't have access to Solaris which makes the debugging rather hard.
Best regards,
Jouni Helske
[[alternative HTML version deleted]]