Re: [Rcpp-devel] Remove hard-coded path to /usr/bin in Makevars

2013-04-26 Thread Dirk Eddelbuettel
On 26 April 2013 at 19:12, Simon Urbanek wrote: | On Apr 26, 2013, at 6:38 PM, Valentin Kuznetsov wrote: | | > Dirk, | > | > having hard-coded path is usually lead to trouble regardless of the OS. Users may have dedicated system with specific compiler/tools in different location. What you need

Re: [Rcpp-devel] Remove hard-coded path to /usr/bin in Makevars

2013-04-26 Thread Valentin Kuznetsov
Simon, > > I suppose it would be possible to replace it simply with > @-install_name_tool -id $(R_PACKAGE_DIR)/lib$(R_ARCH)/$(USERLIB) > $(USERLIB) 2>/dev/null I'll leave it up to you (or to developers) to decide. In any case it would be appropriate to document this use case and provide

Re: [Rcpp-devel] Remove hard-coded path to /usr/bin in Makevars

2013-04-26 Thread Simon Urbanek
On Apr 26, 2013, at 6:38 PM, Valentin Kuznetsov wrote: > Dirk, > > having hard-coded path is usually lead to trouble regardless of the OS. Users > may have dedicated system with specific compiler/tools in different location. > What you need is auto-detection of required components. Since /usr/b

Re: [Rcpp-devel] Remove hard-coded path to /usr/bin in Makevars

2013-04-26 Thread Valentin Kuznetsov
Dirk, having hard-coded path is usually lead to trouble regardless of the OS. Users may have dedicated system with specific compiler/tools in different location. What you need is auto-detection of required components. Since /usr/bin is always in a PATH you don't really need it either. But as I

Re: [Rcpp-devel] Remove hard-coded path to /usr/bin in Makevars

2013-04-26 Thread Dirk Eddelbuettel
Hi Valentin, Thanks for subscribing. On 26 April 2013 at 17:08, Valentin Kuznetsov wrote: | Hi, | this is re-post from | https://r-forge.r-project.org/tracker/?func=detail&atid=637&aid=2743&group_id=155 | as been advised by Dirk. Now that you are here, let me repost what I wrote earlier. I'll

[Rcpp-devel] Remove hard-coded path to /usr/bin in Makevars

2013-04-26 Thread Valentin Kuznetsov
Hi, this is re-post from https://r-forge.r-project.org/tracker/?func=detail&atid=637&aid=2743&group_id=155 as been advised by Dirk. I was unable to build Rcpp due to the fact that on my system I use another compiler (it is installed from MacPorts in /opt/local/bin area). The Rcpp/src/Makevars us

Re: [Rcpp-devel] [rcpp-Bugs][2743] Remove hard-coded path to /usr/bin in Makevars

2013-04-26 Thread Dirk Eddelbuettel
On 26 April 2013 at 20:56, [email protected] wrote: | Bugs item #2743, was opened at 2013-04-26 18:56 by Valentin Kuznetsov | You can respond by visiting: | https://r-forge.r-project.org/tracker/?func=detail&atid=637&aid=2743&group_id=155 | | Status: Open | Priority: 3 | Submitted

Re: [Rcpp-devel] Question about custom as and wrap functions

2013-04-26 Thread JJ Allaire
Okay, very glad to hear you've got things working! J.J. On Fri, Apr 26, 2013 at 3:35 AM, Finlay Scott wrote: > Fixed it. > It was me making a stupid mistake. I had: > > PKG_CXXFLAGS=-I../inst/include > > in the Makevars when I should have had > > PKG_CPPFLAGS=-I../inst/include > > After using J.

Re: [Rcpp-devel] Question about custom as and wrap functions

2013-04-26 Thread Finlay Scott
Fixed it. It was me making a stupid mistake. I had: PKG_CXXFLAGS=-I../inst/include in the Makevars when I should have had PKG_CPPFLAGS=-I../inst/include After using J.J.'s suggestion of renaming the header files, the package now compiles and my minimal test now works. Thanks to everyone for re