Damn, I really want to get RCPP and RInside working on my Netbeans for WIndows with Cygwin but..

Damn, I really want to get RCPP and RInside  working on my Netbeans for WIndows with Cygwin but..

I get these errors in my build attempt within Nebeans:

## -*- mode: makefile; tab-width: 8; -*-
##
## Simple Makefile for Windows

## This version is fairly directly derived from the Unix versions
## You may have to set R_HOME manually if this does not work
## It requires Rtools in the path — as does all R package building
#R_HOME := $(shell R RHOME | sed -e “s|\\|/|g”)
R_HOME := “/cygdrive/c/PROGRA~1/R/R-214~1.1”

## You may have to set this to one of the two values below to enforce a particular
## architecture in case the autodetection in the next line does not work correctly
R_ARCH := –arch $(shell echo ‘cat(.Platform$$r_arch)’ | R –vanilla –slave)
##R_ARCH := –arch i386
##R_ARCH := –arch x64

## You may need to set R_LIBS_USER if Rcpp or RInside are installed where R does not see them by default
#R_LIBS_USER := “C:/myRstuff/library”

sources := $(wildcard *.cpp)
programs := $(sources:.cpp=)

## include headers and libraries for R
RCPPFLAGS := $(shell $(R_HOME)/bin/R $(R_ARCH) CMD config –cppflags)
RLDFLAGS := $(shell $(R_HOME)/bin/R $(R_ARCH) CMD config –ldflags)
RBLAS := $(shell $(R_HOME)/bin/R $(R_ARCH) CMD config BLAS_LIBS)
RLAPACK := $(shell $(R_HOME)/bin/R $(R_ARCH) CMD config LAPACK_LIBS)
## include headers and libraries for Rcpp interface classes
RCPPINCL := $(shell echo ‘Rcpp:::CxxFlags()’ | $(R_HOME)/bin/R $(R_ARCH) –vanilla –slave)
RCPPLIBS := $(shell echo ‘Rcpp:::LdFlags()’ | $(R_HOME)/bin/R $(R_ARCH) –vanilla –slave)
## include headers and libraries for RInside embedding classes
RINSIDEINCL := $(shell echo ‘RInside:::CxxFlags()’ | $(R_HOME)/bin/R $(R_ARCH) –vanilla –slave)
RINSIDELIBS := $(shell echo ‘RInside:::LdFlags()’ | $(R_HOME)/bin/R $(R_ARCH) –vanilla –slave)
## compiler etc settings used in default make rules
CXX := $(shell $(R_HOME)/bin/R $(R_ARCH) CMD config CXX)
CPPFLAGS := -Wall $(shell $(R_HOME)/bin/R $(R_ARCH) CMD config CPPFLAGS)
CXXFLAGS := $(RCPPFLAGS) $(RCPPINCL) $(RINSIDEINCL) $(shell $(R_HOME)/bin/R $(R_ARCH) CMD config CXXFLAGS)
LDFLAGS = -s
LDLIBS := $(RLDFLAGS) $(RBLAS) $(RLAPACK) $(RINSIDELIBS) $(RCPPLIBS)
CC := $(shell $(R_HOME)/bin/R $(R_ARCH) CMD config CXX)

Error and warning  messages are:

(Note the strange MinGW path but I am not using that)

cygwin warning:
MS-DOS style path detected: C:PROGRA~1RR-214~1.1/bin/config.sh
Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/R/R-214~1.1/bin/config.sh
CYGWIN environment variable option “nodosfilewarning” turns off this warning.
Consult the user’s guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
rm -vf rinside_sample8 rinside_sample12 rinside_test1 rinside_sample2 rinside_sample5 rinside_sample3 rinside_sample11 rinside_sample9 rinside_callbacks0 rinside_sample6 rinside_sample1 rinside_sample4 rinside_module_sample0 rinside_sample0 rinside_test0 rinside_sample10 rinside_sample7
CLEAN SUCCESSFUL (total time: 4s)

cygwin warning:
MS-DOS style path detected: C:PROGRA~1RR-214~1.1/bin/config.sh
Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/R/R-214~1.1/bin/config.sh
CYGWIN environment variable option “nodosfilewarning” turns off this warning.
Consult the user’s guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
x86_64-w64-mingw32-g++ -IC:/PROGRA~1/R/R-214~1.1/include -IC:/PROGRA~1/R/R-214~1.1/include/x64 -IC:/Program Files/R/R-2.14.1/library/Rcpp/include -IC:/Program Files/R/R-2.14.1/library/RInside/include -O2 -Wall -mtune=core2 -Wall -s rinside_sample8.cpp -LC:/PROGRA~1/R/R-214~1.1/bin/x64 -lR -LC:/PROGRA~1/R/R-214~1.1/bin/x64 -lRblas -LC:/PROGRA~1/R/R-214~1.1/bin/x64 -lRlapack “C:/Program Files/R/R-2.14.1/library/RInside/lib/x64/libRInside.a” C:/Program Files/R/R-2.14.1/library/Rcpp/lib/x64/libRcpp.a -o rinside_sample8
/bin/sh: x86_64-w64-mingw32-g++: command not found
make: *** [rinside_sample8] Error 127
<builtin>: recipe for target `rinside_sample8′ failed
BUILD FAILED (exit value 2, total time: 4s)
all : $(programs)

clean:
rm -vf $(programs)

checkR:
echo “R is at $(R_HOME)”

 

Wishlist Member WooCommerce Plus - Sell Your Membership Products With WooCommerce The Right Way .

Powered by WishList Member - Membership Software