renozao / rcppoctave Goto Github PK
View Code? Open in Web Editor NEWSeamless Interface to Octave -- and Matlab code
Seamless Interface to Octave -- and Matlab code
Hi,
The documentation/hint for the compiling error should now be:
$ brew install gcc octave
-> On Mac OS please check that the required packages are installed:
* octave package from homebrew (works out of the box):
$ brew install gfortran octave
# install as usual in R
> install.packages('RcppOctave')
Kemal
Many thanks for your work on this project. Please find the log below when trying to build the package using R 4.0.3 on Ubuntu 20.04. Let me know if any additional information is required
WARNING: ignoring environment value of R_HOME
* checking for file ‘/home/tverbeke/git/RcppOctave/DESCRIPTION’ ... OK
* preparing ‘RcppOctave’:
* checking DESCRIPTION meta-information ... OK
* cleaning src
* running ‘cleanup’
* installing the package to process help pages
-----------------------------------
* installing *source* package ‘RcppOctave’ ...
** using staged installation
checking R architecture... none
checking for R... /opt/architect/plugins/eu.openanalytics.architect.r.server.gtk.linux/R/bin/R
checking for Rscript... /opt/architect/plugins/eu.openanalytics.architect.r.server.gtk.linux/R/bin/Rscript
checking whether loading Rprofile writes to stdout... no
checking R version... R version 4.0.3 (2020-10-10)
checking R platform... x86_64-pc-linux-gnu
checking R CC... gcc
checking R CFLAGS... -g -O2
checking R CPPFLAGS... -I/usr/local/include
checking R CXXFLAGS... -g -O2
checking for gcc... /usr/bin/gcc
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for g++... /usr/bin/g++
configure: Original R_LDFLAGS: -Wl,--export-dynamic -fopenmp -L/usr/local/lib -L/opt/architect/plugins/eu.openanalytics.architect.r.server.gtk.linux/R/lib -lR -lpcre2-8 -llzma -lbz2 -lz -lrt -ldl -lm -licuuc -licui18n
configure: Original R_CPPFLAGS: -I/opt/architect/plugins/eu.openanalytics.architect.r.server.gtk.linux/R/include
checking whether R is a shared library... yes
checking type of Operating System... Linux
checking whether OS is Mac OS (Darwin)... no
configure: Using mkoctfile with R_LDFLAGS: -Wl,--export-dynamic -L/usr/local/lib -L/opt/architect/plugins/eu.openanalytics.architect.r.server.gtk.linux/R/lib -lR -lpcre2-8 -llzma -lbz2 -lz -lrt -ldl -lm -licuuc -licui18n
configure: Using mkoctfile with R_CPPFLAGS: -I/opt/architect/plugins/eu.openanalytics.architect.r.server.gtk.linux/R/include
checking Octave custom binary path specification... none
configure: using Octave binary path from $PATH
checking for octave-config... /usr/bin/octave-config
checking for mkoctfile... /usr/bin/mkoctfile
checking Octave Octave bin directory... /usr/bin
checking Octave Octave libraries directory... /usr/lib/x86_64-linux-gnu/octave/5.2.0
checking for octave... /usr/bin/octave
checking PATH changes... none
checking Octave module make target... all
checking mkoctfile command... /usr/bin/mkoctfile
checking Octave cpp flags... -Wdate-time -D_FORTIFY_SOURCE=2
checking Octave include flags... -I/usr/include/octave-5.2.0/octave/.. -I/usr/include/octave-5.2.0/octave
checking Octave -L flags... warning: LFLAGS is deprecated and will be removed in a future version of Octave, use LDFLAGS instead
-L/usr/lib/x86_64-linux-gnu
checking Octave libraries... -loctinterp -loctave
checking Octave C compiler... gcc
checking Octave Fortran compiler... gfortran
checking Octave platform... x86_64-pc-linux-gnu
checking Octave API version... api-v53
checking Octave version... 5.2.0
checking whether to infer output names for Octave function (>= 3.4.3)... yes
configure: Using Octave LDFLAGS: -L/usr/lib/x86_64-linux-gnu -loctinterp -loctave
configure: Using Octave CPPFLAGS: -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/octave-5.2.0/octave/.. -I/usr/include/octave-5.2.0/octave -DOCT_POST_3_4_0=1
checking RcppOctave Octave module directory... /tmp/RtmpHjp7hc/Rinst7776743922341/00LOCK-RcppOctave/00new/RcppOctave/modules
configure: creating ./config.status
config.status: creating R/config-vars.R
configure: creating ./config.status
config.status: creating R/config-vars.R
config.status: creating src/Makevars
configure: creating ./config.status
config.status: creating R/config-vars.R
config.status: creating src/Makevars
config.status: creating src/modules/Makefile
** libs
# Making Octave module [r_arch: all]
make[1]: Entering directory '/tmp/RtmpHjp7hc/Rbuild777672e578c36/RcppOctave/src/modules'
*** Building octave module: utils.oct
/usr/bin/mkoctfile -v utils.cc
g++ -std=gnu++11 -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-5.2.0/octave/.. -I/usr/include/octave-5.2.0/octave -pthread -fopenmp -g -O2 -fdebug-prefix-map=/build/octave-rvRilm/octave-5.2.0=. -fstack-protector-strong -Wformat -Werror=format-security utils.cc -o /tmp/oct-e5EBmh.o
In file included from ../compatibility.h:9,
from utils.cc:21:
../swig_octave_version.h:10:10: fatal error: octave/config.h: No such file or directory
10 | #include <octave/config.h>
| ^~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:47: utils.oct] Error 1
make[1]: Leaving directory '/tmp/RtmpHjp7hc/Rbuild777672e578c36/RcppOctave/src/modules'
make: *** [Makevars:33: OctaveModule] Error 2
ERROR: compilation failed for package ‘RcppOctave’
* removing ‘/tmp/RtmpHjp7hc/Rinst7776743922341/RcppOctave’
-----------------------------------
ERROR: package installation failed
I tried all the methods at
http://renozao.github.io/RcppOctave/master/PAGE-INSTALLATION.html
but no luck. :(
CRAN and R-forge say:
Warning message:
package ‘RccpOctave’ is not available (for R version 3.2.1)
I can install the package through Github, but it won't load.
Error in library(RccpOctave) : there is no package called ‘RccpOctave’
I'm on Ubuntu 14.04, with R 3.2.1.
The build seems to assume installation of octave by home-brew because, the configure file says, it "works out of box."
It no longer works out of box; this may be related to flux in the home-brew fortran compiler. In addition, many of the octave suggested extensions (e.g., hdf5) are either currently missing from home-brew, or have compilation issues (e.g., openblas).
I've tried octave from home-brew, building octave myself, and the binary download. The only variant that works consistently and has the ordinary extensions is the binary download.
Even when octave is installed successfully, by home-brew or the binary (and if necessary directed to the binary home by configure directives), RcppOctave fails to install because it looks for liboctinterp.so, when both home-brew and the binary install only liboctinterp.dylib.
I suggest adjusting RcppOctave's build requirements so it looks for octave in multiple locations, including the current home-brew, build-from-source into /usr/local/, and works with the .dylib.
Here's the furthest I could get with compilation:
installing to /Library/Frameworks/R.framework/Versions/3.1/Resources/library/RcppOctave/libs
** R
** demo
** exec
** inst
** preparing package for lazy loading
** help
Error : /private/var/folders/s1/_v14lsc56tv44hm304m07vn40000gq/T/RtmpWBGJlA/R.INSTALL15e583ce00d60/RcppOctave/man/o_addpath.Rd:41: .onLoad failed in loadNamespace() for 'RcppOctave', details:
call: FUN(c("/usr/local/octave/3.8.0/lib/octave/3.8.0/liboctinterp.so",
error: unable to load shared object '/usr/local/octave/3.8.0/lib/octave/3.8.0/liboctinterp.so':
dlopen(/usr/local/octave/3.8.0/lib/octave/3.8.0/liboctinterp.so, 6): image not found
ERROR: installing Rd objects failed for package ‘RcppOctave’
I am currently using:
R version 3.4.0 (2017-04-21) -- "You Stupid Darkness"
RcppOctave 0.18.1
GNU Octave 3.8.1
Trisquel 7.0 (Ubuntu 14.04)
I unsuccessfully installed the development branch through the ghit
package.
library(ghit); install_github(repo = "renozao/RcppOctave[develop]")
Error: Package build for RcppOctave failed with the following output:
* checking for file ‘/tmp/RtmpAkNtud/RcppOctave1508197749d5/DESCRIPTION’ ... OK
* preparing ‘RcppOctave’:
* checking DESCRIPTION meta-information ... OK
* cleaning src
* running ‘cleanup’
* installing the package to process help pages
-----------------------------------
* installing *source* package ‘RcppOctave’ ...
checking R architecture... none
checking for R... /usr/lib/R/bin/R
checking for Rscript... /usr/lib/R/bin/Rscript
checking whether loading Rprofile writes to stdout... no
checking R version... R version 3.4.0 (2017-04-21)
checking R platform... x86_64-pc-linux-gnu
checking R CC... gcc -std=gnu99
checking R CFLAGS... -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=
format-security -D_FORTIFY_SOURCE=2 -g
checking R CPPFLAGS...
checking R CXXFLAGS... -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=
format-security -D_FORTIFY_SOURCE=2 -g
checking f
When will you merge the development with the master branch?
Thank you.
Irucka
*** arch - i386
Checking octave-config BINDIR... C:/Octave/Octave-4.0.0/bin
Checking mkoctfile LFLAGS... -LC:/Octave/Octave-4.0.0/lib/octave/4.0.0 -LC:/Octave/Octave-4.0.0/lib
Checking mkoctfile OCTAVE_LIBS... -loctinterp -loctave
Checking mkoctfile CPPFLAGS... -I/scratch/jwe/src/mxe-octave/usr/i686-w64-mingw32/include
Checking mkoctfile INCFLAGS... -IC:/Octave/Octave-4.0.0/include/octave-4.0.0/octave/.. -IC:/Octave/Octave-4.0.0/include/octave-4.0.0/octave -IC:/Octave/Octave-4.0.0/include
Checking current Rtools compiler... C:/Rtools/gcc-4.6.3/bin/gcc.exe
Checking octave-config [in C:/Octave/Octave-4.0.0/bin]... C:/Octave/Octave-4.0.0/bin/octave-config.exe
Checking Octave version... 4.0.0
Checking Octave compiler [in C:/Octave/Octave-4.0.0/bin]... C:/Octave/Octave-4.0.0/bin/gcc.exe
Checking Rtools ... C:/Rtools
Checking all Rtools compiler(s) [in C:/Rtools]... multiple [3]
* C:/Rtools/mingw_64/bin/x86_64-w64-mingw32-gcc-4.9.3.exe
* C:/Rtools/mingw_32/bin/i686-w64-mingw32-gcc-4.9.3.exe
* C:/Rtools/gcc-4.6.3/bin/gcc.exe
Checking Octave compiler version... i686-w64-mingw32-4.9.2
Checking compatible Rtools compiler... i686-w64-mingw32-gcc-4.9.3.exe [C:/Rtools/mingw_32/bin]
Checking gcc alias... C:/Rtools/mingw_32/bin/gcc.exe
Checking g++ [in C:/Rtools/mingw_32/bin]... C:/Rtools/mingw_32/bin/g++.exe
cd .. && RTOOLS_COMPILER_NO_LOOKUP=1 . exec/configure-win
Loading Windows autoconf-like macros ... OK
Auto-configure - Tue Mar 15 18:50:06 EDT 2016
Package RcppOctave - version 0.18.1
Checking R architecture... /i386
Checking R [in C:/R/R-32~1.3/bin/i386]... C:/R/R-3.2.3/bin/i386/R.exe
Checking Rscript [in C:/R/R-32~1.3/bin/i386]... C:/R/R-3.2.3/bin/i386/Rscript.exe
Checking R version... R version 3.2.3 (2015-12-10)
Checking R platform... i386-w64-mingw32
Checking R CC... gcc -m32
Checking gcc... C:/Rtools/mingw_32/bin/gcc.exe
Checking gcc version... i686-w64-mingw32-4.9.3
Checking R CFLAGS... -O3
Checking R CPPFLAGS...
Checking R CXXLAGS...
Checking system PATH...
* C:\Rtools\mingw_32\bin
* C:\R\R-3.2.3\bin\x64
* C:\Rtools\bin
* C:\Rtools\gcc-4.6.3\bin
* C:\R\R-3.2.3\bin\x64
* C:\ProgramData\Oracle\Java\javapath
* C:\Rtools\bin
* C:\Rtools\gcc-4.6.3\bin
* C:\Octave\Octave-4.0.0\bin
* C:\Program Files (x86)\Intel\iCLS Client
* C:\Program Files\Intel\iCLS Client
* C:\Windows\System32
* C:\Windows
* C:\Windows\System32\wbem
* C:\Windows\System32\WindowsPowerShell\v1.0
* C:\Program Files\Intel\Intel(R) Management Engine Components\DAL
* C:\Program Files\Intel\Intel(R) Management Engine Components\IPT
* C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL
* C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT
* C:\Program Files (x86)\Common Files\Check Point\UIFramework 3.0\bin
* C:\Program Files (x86)\CheckPoint\Endpoint Security\Endpoint Common\bin
* C:\Program Files\MiKTeX 2.9\miktex\bin\x64
* C:\Program Files (x86)\SSH Communications Security\SSH Tectia\SSH Tectia AUX
* C:\Program Files (x86)\SSH Communications Security\SSH Tectia\SSH Tectia AUX\Support binaries
* C:\Program Files (x86)\SSH Communications Security\SSH Tectia\SSH Tectia Broker
* C:\Program Files (x86)\SSH Communications Security\SSH Tectia\SSH Tectia Client
* C:\Program Files (x86)\Skype\Phone
Checking octave-config... C:/Octave/Octave-4.0.0/bin/octave-config.exe
Checking Octave binary directory... C:/Octave/Octave-4.0.0/bin
Checking mkoctfile [in C:/Octave/Octave-4.0.0/bin]... C:/Octave/Octave-4.0.0/bin/mkoctfile.exe
Loading Windows autoconf-like macros for Octave ...
* Checking Octave path to home directory... C:/Octave/Octave-4.0.0
* Checking mkoctfile home directory... /scratch/jwe/src/mxe-octave/usr/i686-w64-mingw32
OK
Checking octave [in C:/Octave/Octave-4.0.0/bin]... C:/Octave/Octave-4.0.0/bin/octave.exe
Checking current Rtools compiler... C:/Rtools/mingw_32/bin/gcc.exe
Checking octave-config [in C:/Octave/Octave-4.0.0/bin]... C:/Octave/Octave-4.0.0/bin/octave-config.exe
Checking Octave version... 4.0.0
Checking Octave compiler [in C:/Octave/Octave-4.0.0/bin]... C:/Octave/Octave-4.0.0/bin/gcc.exe
Checking Rtools ... C:/Rtools
Checking Octave compiler version... i686-w64-mingw32-4.9.2
Checking compatible Rtools compiler... gcc.exe [C:/Rtools/mingw_32/bin]
Checking gcc alias... C:/Rtools/mingw_32/bin/gcc.exe
Checking g++ [in C:/Rtools/mingw_32/bin]... C:/Rtools/mingw_32/bin/g++.exe
Checking RcppOctave system-specific cpp flags... -fmax-errors=10
Checking PATH changes... none
Checking Octave module make target... win${R_ARCH}
Checking mkoctfile compile command... mkoctfile
Checking mkoctfile cpp flags... -IC:/Octave/Octave-4.0.0/include [*]
Checking mkoctfile include flags... -IC:/Octave/Octave-4.0.0/include/octave-4.0.0/octave/.. -IC:/Octave/Octave-4.0.0/include/octave-4.0.0/octave -IC:/Octave/Octave-4.0.0/include [*]
Checking mkoctfile -L flags... -LC:/Octave/Octave-4.0.0/lib/octave/4.0.0 -LC:/Octave/Octave-4.0.0/lib [*]
Checking mkoctfile libraries... -loctinterp -loctave
Checking mkoctfile C compiler... gcc -m32
Checking mkoctfile Fortran compiler... gfortran
Checking Octave platform... i686-w64-mingw32
Checking Octave API version... api-v50+
Checking Octave version... 4.0.0
Checking whether to infer output names for Octave function (Octave >= 3.4.3?)... yes
configure: Using Octave LDFLAGS: -LC:/Octave/Octave-4.0.0/lib/octave/4.0.0 -LC:/Octave/Octave-4.0.0/lib -loctinterp -loctave
configure: Using Octave CPPFLAGS: -IC:/Octave/Octave-4.0.0/include -IC:/Octave/Octave-4.0.0/include/octave-4.0.0/octave/.. -IC:/Octave/Octave-4.0.0/include/octave-4.0.0/octave -IC:/Octave/Octave-4.0.0/include -DOCT_POST_3_4_0=1
Checking RcppOctave Octave module directory... C:/R/R-3.2.3/library/RcppOctave/modules
config.status: creating R/config-vars.R (31 variables)
config.status: creating src-i386/Makevars (31 variables)
config.status: creating src-i386/modules/Makefile (31 variables)
# Making Octave module [r_arch: win/i386]
make[1]: Entering directory `/cygdrive/c/Users/Savitsky_TNT/AppData/Local/Temp/2/RtmpyAsrby/devtools84f411013970/renozao-RcppOctave-29e5e23/src-i386/modules'
# Building 32bit-Windows RcppOctave modules in C:/Users/Savitsky_TNT/AppData/Local/Temp/2/RtmpyAsrby/devtools84f411013970/renozao-RcppOctave-29e5e23/src-i386/modules/
make[2]: Entering directory `/cygdrive/c/Users/Savitsky_TNT/AppData/Local/Temp/2/RtmpyAsrby/devtools84f411013970/renozao-RcppOctave-29e5e23/src-i386/modules'
*** Building octave module: utils.oct
'C:/Octave/Octave-4.0.0/bin/octave' --quiet --eval 'cd("C:/Users/Savitsky_TNT/AppData/Local/Temp/2/RtmpyAsrby/devtools84f411013970/renozao-RcppOctave-29e5e23/src-i386/modules"); mkoctfile -v utils.cc'
g++ -m32 -std=c++0x -c -I/scratch/jwe/src/mxe-octave/usr/i686-w64-mingw32/include -IC:\Octave\Octave-4.0.0\include\octave-4.0.0\octave\.. -IC:\Octave\Octave-4.0.0\include\octave-4.0.0\octave -IC:\Octave\Octave-4.0.0\include -pthread -mieee-fp -g -O2 utils.cc -o utils.o
g++ -shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc -o utils.oct utils.o -LC:\Octave\Octave-4.0.0\lib\octave\4.0.0 -LC:\Octave\Octave-4.0.0\lib -loctinterp -loctave -Wl,-rpath-link,/scratch/jwe/src/mxe-octave/usr/i686-w64-mingw32/lib -L/scratch/jwe/src/mxe-octave/usr/i686-w64-mingw32/lib -Wl,--export-all-symbols
*** Building octave module: Rrng.oct
'C:/Octave/Octave-4.0.0/bin/octave' --quiet --eval 'cd("C:/Users/Savitsky_TNT/AppData/Local/Temp/2/RtmpyAsrby/devtools84f411013970/renozao-RcppOctave-29e5e23/src-i386/modules"); mkoctfile -v -IC:/R/R-32~1.3/include -IC:/R/R-32~1.3/include/i386 -LC:/R/R-32~1.3/bin/i386 -lR -lm Rrng.cc'
g++ -m32 -std=c++0x -c -I/scratch/jwe/src/mxe-octave/usr/i686-w64-mingw32/include -IC:\Octave\Octave-4.0.0\include\octave-4.0.0\octave\.. -IC:\Octave\Octave-4.0.0\include\octave-4.0.0\octave -IC:\Octave\Octave-4.0.0\include -pthread -mieee-fp -g -O2 -IC:/R/R-32~1.3/include -IC:/R/R-32~1.3/include/i386 Rrng.cc -o Rrng.o
g++ -shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc -o Rrng.oct Rrng.o -LC:/R/R-32~1.3/bin/i386 -lR -lm -LC:\Octave\Octave-4.0.0\lib\octave\4.0.0 -LC:\Octave\Octave-4.0.0\lib -loctinterp -loctave -Wl,-rpath-link,/scratch/jwe/src/mxe-octave/usr/i686-w64-mingw32/lib -L/scratch/jwe/src/mxe-octave/usr/i686-w64-mingw32/lib -Wl,--export-all-symbols
make[2]: Leaving directory `/cygdrive/c/Users/Savitsky_TNT/AppData/Local/Temp/2/RtmpyAsrby/devtools84f411013970/renozao-RcppOctave-29e5e23/src-i386/modules'
make[1]: Leaving directory `/cygdrive/c/Users/Savitsky_TNT/AppData/Local/Temp/2/RtmpyAsrby/devtools84f411013970/renozao-RcppOctave-29e5e23/src-i386/modules'
# Copying Octave modules to directory 'C:/R/R-3.2.3/library/RcppOctave/modules/i386'
-fmax-errors=10 -I"C:/R/R-3.2.3/library/Rcpp/include" -I"d:/RCompile/r-compiling/local/local323/include" -O2 -Wall -mtune=core2 -c conversion.cpp -o conversion.o
-fmax-errors=10 -I"C:/R/R-3.2.3/library/Rcpp/include" -I"d:/RCompile/r-compiling/local/local323/include" -O2 -Wall -mtune=core2 -c rcpp_octave.cpp -o rcpp_octave.o
C:\Rtools\mingw_32\bin\nm.exe: 'OctaveModule': No such file
-Ld:/RCompile/r-compiling/local/local323/lib/i386 -Ld:/RCompile/r-compiling/local/local323/lib -LC:/R/R-32~1.3/bin/i386 -lR4.0.0 -LC:/Octave/Octave-4.0.0/lib
: Invalid argument
no DLL was created
ERROR: compilation failed for package 'RcppOctave'
* removing 'C:/R/R-3.2.3/library/RcppOctave'
Error: Command failed (1)
In addition: Warning message:
Username parameter is deprecated. Please use renozao/RcppOctave
I just tried to install RcppOctave from R 3.6.0 (via RStudio)
install.packages("RcppOctave", repos="http://R-Forge.R-project.org")
And got the error: "RcppOctave" is not available (for R version 3.6.0)
Is there any ETA for when it might become available? On a machine with R 3.5.1, it downloaded but i ran into other issues (which might resolved if i create a VM or make a docker image).
install.packages("RccpOctave") results in the warning:
Warning in install.packages :
package ‘RccpOctave’ is not available for this version of R
I use R version (4.1.1).
Is there an update of the package scheduled in the near future?
Hi, I am using GNU Octave 3.8.1 on a Trisquel GNU/Linux distribution. The GNU Octave code, below, is what I want to replicate using RcppOctave in R.
The operations that I am having trouble with are the various plotting functions (mesh, meshz, contour, etc.).
Can you tell me how to run this code using RcppOctave?
Thank you.
Irucka Embry
rho = 1000
g = 9.81
r_cylinder = 15:5:40
h = 25:5:50
[r_cylinder_grid, h_grid] = meshgrid(r_cylinder, h);
W_grid = rho*g*(pi*(r_cylinder_grid/1000).^2 .* h_grid);
mesh(r_cylinder_grid, h_grid, W_grid);
xlabel('r_{cylinder}, mm');
ylabel('h, m');
zlabel('W, N');
meshz(r_cylinder_grid, h_grid, W_grid);
xlabel('r_{cylinder}, mm');
ylabel('h, m');
zlabel('W, N');
surf(r_cylinder_grid, h_grid, W_grid);
xlabel('r_{cylinder}, mm');
ylabel('h, m');
zlabel('W, N');
[C, hd1] = contour(r_cylinder_grid, h_grid, W_grid);
clabel(C, hd1);
xlabel('r_{cylinder}, mm');
ylabel('h, m');
plot(h_grid, W_grid);
xlabel('h, m');
ylabel('W, N');
plot(r_cylinder_grid', W_grid')
xlabel('r_{cylinder}, mm');
ylabel('W, N');
As the title said. here is part of the log. R version 3.3.2, OS Ubuntu 16.04 64 bits.
In file included from rcpp_octave.cpp:60:0:
/usr/local/include/octave-4.2.0/octave/../octave/sighandlers.h:95:14: note: declared here
static auto& can_interrupt = octave::can_interrupt;
^
rcpp_octave.cpp:231:31: error: ‘octave_restore_signal_mask’ was not declared in this scope
octave_restore_signal_mask ();
^
rcpp_octave.cpp:232:3: warning: ‘octave_catch_interrupts’ is deprecated: use 'octave::interrupt_handler' instead [-Wdeprecated-declarations]
octave_catch_interrupts ();
^
In file included from rcpp_octave.cpp:60:0:
/usr/local/include/octave-4.2.0/octave/../octave/sighandlers.h:120:12: note: declared here
const auto octave_catch_interrupts = octave::catch_interrupts;
^
rcpp_octave.cpp:232:3: warning: ‘octave_catch_interrupts’ is deprecated: use 'octave::interrupt_handler' instead [-Wdeprecated-declarations]
octave_catch_interrupts ();
^
In file included from rcpp_octave.cpp:60:0:
/usr/local/include/octave-4.2.0/octave/../octave/sighandlers.h:120:12: note: declared here
const auto octave_catch_interrupts = octave::catch_interrupts;
^
rcpp_octave.cpp: In function ‘octave_value octave_feval(const string&, const octave_value_list&, int, const std::vector<std::__cxx11::basic_string<char> >*, int)’:
rcpp_octave.cpp:371:26: error: ‘octave_save_signal_mask’ was not declared in this scope
octave_save_signal_mask();
^
rcpp_octave.cpp:384:30: error: ‘octave_restore_signal_mask’ was not declared in this scope
octave_restore_signal_mask();
^
rcpp_octave.cpp:388:2: warning: ‘can_interrupt’ is deprecated: use 'octave::can_interrupt' instead [-Wdeprecated-declarations]
can_interrupt = true;
^
In file included from rcpp_octave.cpp:60:0:
/usr/local/include/octave-4.2.0/octave/../octave/sighandlers.h:95:14: note: declared here
static auto& can_interrupt = octave::can_interrupt;
^
rcpp_octave.cpp:388:2: warning: ‘can_interrupt’ is deprecated: use 'octave::can_interrupt' instead [-Wdeprecated-declarations]
can_interrupt = true;
^
In file included from rcpp_octave.cpp:60:0:
/usr/local/include/octave-4.2.0/octave/../octave/sighandlers.h:95:14: note: declared here
static auto& can_interrupt = octave::can_interrupt;
^
rcpp_octave.cpp:389:2: warning: ‘octave_catch_interrupts’ is deprecated: use 'octave::interrupt_handler' instead [-Wdeprecated-declarations]
octave_catch_interrupts();
^
In file included from rcpp_octave.cpp:60:0:
/usr/local/include/octave-4.2.0/octave/../octave/sighandlers.h:120:12: note: declared here
const auto octave_catch_interrupts = octave::catch_interrupts;
^
rcpp_octave.cpp:389:2: warning: ‘octave_catch_interrupts’ is deprecated: use 'octave::interrupt_handler' instead [-Wdeprecated-declarations]
octave_catch_interrupts();
^
In file included from rcpp_octave.cpp:60:0:
/usr/local/include/octave-4.2.0/octave/../octave/sighandlers.h:120:12: note: declared here
const auto octave_catch_interrupts = octave::catch_interrupts;
^
rcpp_octave.cpp:469:11: warning: ‘octave_interrupt_exception’ is deprecated: use 'octave::interrupt_exception' instead [-Wdeprecated-declarations]
} catch (octave_interrupt_exception){
^
In file included from /usr/local/include/octave-4.2.0/octave/../octave/lo-utils.h:33:0,
from /usr/local/include/octave-4.2.0/octave/../octave/Array.h:41,
from /usr/local/include/octave-4.2.0/octave/../octave/str-vec.h:32,
from /usr/local/include/octave-4.2.0/octave/../octave/ovl.h:33,
from /usr/local/include/octave-4.2.0/octave/../octave/oct-obj.h:35,
from rcpp_octave.h:26,
from rcpp_octave.cpp:35:
/usr/local/include/octave-4.2.0/octave/../octave/quit.h:155:37: note: declared here
typedef octave::interrupt_exception octave_interrupt_exception;
^
rcpp_octave.cpp:483:29: error: ‘octave_restore_signal_mask’ was not declared in this scope
octave_restore_signal_mask();
^
/usr/lib/R/etc/Makeconf:141: recipe for target 'rcpp_octave.o' failed
make: *** [rcpp_octave.o] Error 1
ERROR: compilation failed for package ‘RcppOctave’
* removing ‘/usr/lib/R/library/RcppOctave’
Hi, I am attempting to follow some examples of fplot
in GNU Octave with RcppOctave. Although there are errors in GNU Octave, all 3 of the plots are drawn, but none of them are drawn in R.
in R 3.2.4 (there are no plots)
library(RcppOctave)
o_source(text = "
fplot('2*sin(theta)+2', [0 2*pi]); % page 443 Brockman
fplot("[cos(x), sin(x)]", [0 2*pi])
fplot(@cos, [0, 2*pi])
")
In addition, in R, this is the error message that appears:
Error: unexpected string constant in:
" fplot(@cos, [0, 2*pi])
""
in GNU Octave 3.8.1 (although I have the errors, all 3 of the attempted plots are drawn)
octave:1> fplot('2*sin(theta)+2', [0 2*pi]); % page 443 Brockman
error: invalid value = northeast
error: set: invalid value for radio property "location" (value = northeast)
error: called from:
error: /usr/share/octave/3.8.1/m/plot/appearance/legend.m at line 995, column 11
error: /usr/share/octave/3.8.1/m/plot/draw/fplot.m at line 176, column 7
octave:1>
octave:1> fplot("[cos(x), sin(x)]", [0 2*pi])
error: invalid value = northeast
error: set: invalid value for radio property "location" (value = northeast)
error: called from:
error: /usr/share/octave/3.8.1/m/plot/appearance/legend.m at line 995, column 11
error: /usr/share/octave/3.8.1/m/plot/draw/fplot.m at line 181, column 7
octave:1>
octave:1> fplot(@cos, [0, 2*pi])
error: invalid value = northeast
error: set: invalid value for radio property "location" (value = northeast)
error: called from:
error: /usr/share/octave/3.8.1/m/plot/appearance/legend.m at line 995, column 11
error: /usr/share/octave/3.8.1/m/plot/draw/fplot.m at line 176, column 7
octave:1>
Thank you.
Irucka
Thanks for all your work on this project. I am unable to install RcppOctave despite having successfully installed Octave on my Macbook Pro. I have downloaded the most recent archived version (0.18.1) of RcppOctave from CRAN (https://cran.r-project.org/src/contrib/Archive/RcppOctave/). But when I try to install RcppOctave, I get the following error:
utils.cc:21:10: fatal error: 'octave/config.h' file not found
#include <octave/config.h>
^~~~~~~~~~~~~~~~~
1 error generated.
make[1]: *** [utils.oct] Error 1
make: *** [OctaveModule] Error 2
ERROR: compilation failed for package ‘RcppOctave’
Thanks so much in advance for any advice you can provide.
Is there a way to call Octave functions directly from Rcpp rather than calling an R function which calls on to RcppOctave?
For the latter, see
http://stackoverflow.com/questions/21225662/calling-a-user-defined-r-function-from-c-using-rcpp
I'm trying to install RcppOctave on Windows 7. I followed the instructions in the README, installed Rtools, extracted the Windows native gcc 4.9.2 toolchain and installed Octave as described on the link. The package does not install. What could be the problem? I get the following log in R:
install.packages("RcppOctave")
Installing package into ‘C:/Users/Gregor/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘RcppOctave’
Do you want to attempt to install these from sources?
y/n: y
installing the source package ‘RcppOctave’
trying URL 'https://cran.rstudio.com/src/contrib/RcppOctave_0.18.1.tar.gz'
Content type 'application/x-gzip' length 777692 bytes (759 KB)
downloaded 759 KB
installing source package 'RcppOctave' ...
package 'RcppOctave' successfully unpacked and MD5 sums checked
WARNING: this package has a configure script
It probably needs manual configuration
** libs
*** arch - i386
Checking octave-config BINDIR... C:/Octave/Octave3.6.4_gcc4.6.2/bin
Checking mkoctfile LFLAGS... -LC:/Octave/Octave3.6.4_gcc4.6.2/lib/octave/3.6.4 -LC:/Octave/Octave3.6.4_gcc4.6.2/lib
Checking mkoctfile OCTAVE_LIBS... -loctinterp -loctave -lcruft
Checking mkoctfile CPPFLAGS... -I/c/OctaveB/gplibs/include -I/c/OctaveB/OctaveLibs/include -I/c/OctaveB/GnuWin32/include
Checking mkoctfile INCFLAGS... -IC:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/.. -IC:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave -IC:/Octave/Octave3.6.4_gcc4.6.2/include
Checking current Rtools compiler... C:/Rtools/gcc-4.6.3/bin/gcc.exe
Checking octave-config [in C:/Octave/Octave3.6.4_gcc4.6.2/bin]... C:/Octave/Octave3.6.4_gcc4.6.2/bin/octave-config.exe
Checking Octave version... 3.6.4
Checking Octave compiler... C:/Octave/Octave3.6.4_gcc4.6.2/mingw/bin/gcc.exe
Checking Rtools ... C:/Rtools
Checking all Rtools compiler(s) [in C:/Rtools]... multiple [4]
- C:/Rtools/mingw_64/bin/x86_64-w64-mingw32-gcc-4.9.2.exe
- C:/Rtools/mingw_64/bin/x86_64-w64-mingw32-gcc-4.9.3.exe
- C:/Rtools/mingw_32/bin/i686-w64-mingw32-gcc-4.9.3.exe
- C:/Rtools/gcc-4.6.3/bin/gcc.exe
Checking Octave compiler version... mingw32-4.6.2
Checking compatible Rtools compiler... gcc.exe [C:/Rtools/gcc-4.6.3/bin]
Checking gcc alias... C:/Rtools/gcc-4.6.3/bin/gcc.exe
Checking g++ [in C:/Rtools/gcc-4.6.3/bin]... C:/Rtools/gcc-4.6.3/bin/g++.exe
cd .. && RTOOLS_COMPILER_NO_LOOKUP=1 . exec/configure-win
Loading Windows autoconf-like macros ... OK
Auto-configure - Fri Dec 2 18:29:31 CEST 2016
Package RcppOctave - version 0.18.1
Checking R architecture... /i386
Checking R [in C:/Programs/R/R-331.2/bin/i386]... C:/Programs/R/R-3.3.2/bin/i386/R.exe
Checking Rscript [in C:/Programs/R/R-331.2/bin/i386]... C:/Programs/R/R-3.3.2/bin/i386/Rscript.exe
Checking R version... R version 3.3.2 (2016-10-31)
Checking R platform... i386-w64-mingw32
Checking R CC... c:/Rtools/mingw_32/bin/gcc
Checking c:/Rtools/mingw_32/bin/gcc... c:/Rtools/mingw_32/bin/gcc.exe
Checking c:/Rtools/mingw_32/bin/gcc version... i686-w64-mingw32-4.9.3
Checking R CFLAGS... -O3
Checking R CPPFLAGS...
Checking R CXXLAGS...
Checking system PATH...- C:\Rtools\gcc-4.6.3\bin
- C:\Programs\R\R-3.3.2\bin\x64
- C:\Programs\R\R-3.3.2\bin\x64
- C:\Rtools\bin
- C:\Rtools\gcc-4.6.3\bin
- C:\Rtools\mingw_64\bin
- C:\Rtools\mingw_32\bin
- C:\Program Files (x86)\Intel\iCLS Client
- C:\Program Files\Intel\iCLS Client
- C:\Windows\System32
- C:\Windows
- C:\Windows\System32\wbem
- C:\Windows\System32\WindowsPowerShell\v1.0
- C:\Program Files\Intel\WiFi\bin
- C:\Program Files\Common Files\Intel\WirelessCommon
- C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static
- C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL
- C:\Program Files\Intel\Intel(R) Management Engine Components\DAL
- C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT
- C:\Program Files\Intel\Intel(R) Management Engine Components\IPT
- C:\Rtools\mingw_64\bin
- C:\Octave\Octave3.6.4_gcc4.6.2\bin
- C:\Programs\VS2010\VC\bin
- C:\Programs\MiKTeX2.9\miktex\bin\x64
Checking octave-config... C:/Octave/Octave3.6.4_gcc4.6.2/bin/octave-config.exe
Checking Octave binary directory... C:/Octave/Octave3.6.4_gcc4.6.2/bin
Checking mkoctfile [in C:/Octave/Octave3.6.4_gcc4.6.2/bin]... C:/Octave/Octave3.6.4_gcc4.6.2/bin/mkoctfile.exe
Loading Windows autoconf-like macros for Octave ...- Checking Octave path to home directory...
- Checking mkoctfile home directory... C:/Octave/Octave3.6.4_gcc4.6.2
OK
Checking octave [in C:/Octave/Octave3.6.4_gcc4.6.2/bin]... C:/Octave/Octave3.6.4_gcc4.6.2/bin/octave.exe
Checking current Rtools compiler... c:/Rtools/mingw_32/bin/gcc.exe
Checking octave-config [in C:/Octave/Octave3.6.4_gcc4.6.2/bin]... C:/Octave/Octave3.6.4_gcc4.6.2/bin/octave-config.exe
Checking Octave version... 3.6.4
Checking Octave compiler... C:/Octave/Octave3.6.4_gcc4.6.2/mingw/bin/gcc.exe
Checking Rtools ... c:/Rtools
Checking Octave compiler version... mingw32-4.6.2
Checking compatible Rtools compiler... gcc.exe [c:/Rtools/mingw_32/bin]
Checking gcc alias... c:/Rtools/mingw_32/bin/gcc.exe
Checking g++ [in c:/Rtools/mingw_32/bin]... c:/Rtools/mingw_32/bin/g++.exe
Checking RcppOctave system-specific cpp flags... -fmax-errors=10
Checking PATH changes... none
Checking Octave module make target... win${R_ARCH}
Checking mkoctfile compile command... mkoctfile
Checking mkoctfile cpp flags... -I/c/OctaveB/gplibs/include -I/c/OctaveB/OctaveLibs/include -I/c/OctaveB/GnuWin32/include
Checking mkoctfile include flags... -IC:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/.. -IC:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave -IC:/Octave/Octave3.6.4_gcc4.6.2/include
Checking mkoctfile -L flags... -LC:/Octave/Octave3.6.4_gcc4.6.2/lib/octave/3.6.4 -LC:/Octave/Octave3.6.4_gcc4.6.2/lib
Checking mkoctfile libraries... -loctinterp -loctave -lcruft
Checking mkoctfile C compiler... c:/Rtools/mingw_32/bin/gcc
Checking mkoctfile Fortran compiler... gfortran -shared-libgcc
Checking Octave platform... i686-pc-mingw32
Checking Octave API version... api-v48+
Checking Octave version... 3.6.4
Checking whether to infer output names for Octave function (Octave >= 3.4.3?)... yes
configure: Using Octave LDFLAGS: -LC:/Octave/Octave3.6.4_gcc4.6.2/lib/octave/3.6.4 -LC:/Octave/Octave3.6.4_gcc4.6.2/lib -loctinterp -loctave -lcruft
configure: Using Octave CPPFLAGS: -I/c/OctaveB/gplibs/include -I/c/OctaveB/OctaveLibs/include -I/c/OctaveB/GnuWin32/include -IC:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/.. -IC:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave -IC:/Octave/Octave3.6.4_gcc4.6.2/include -DOCT_POST_3_4_0=1
Checking RcppOctave Octave module directory... C:/Users/Gregor/Documents/R/win-library/3.3/RcppOctave/modules
config.status: creating R/config-vars.R (31 variables)
config.status: creating src-i386/Makevars (31 variables)
config.status: creating src-i386/modules/Makefile (31 variables)
Making Octave module [r_arch: win/i386]
make[1]: Entering directory >/cygdrive/c/Users/Gregor/AppData/Local/Temp/RtmpC4zBbP/R.INSTALL1ca859d854b3/RcppOctave/s>rc-i386/modules' Building 32bit-Windows RcppOctave modules in >C:/Users/Gregor/AppData/Local/Temp/RtmpC4zBbP/R.INSTALL1ca859d854b3/RcppOctave/src-i386/modules/ make[2]: Entering directory >
/cygdrive/c/Users/Gregor/AppData/Local/Temp/RtmpC4zBbP/R.INSTALL1ca859d854b3/RcppOctave/src-i386/modules'
*** Building octave module: utils.oct
'C:/Octave/Octave3.6.4_gcc4.6.2/bin/octave' --quiet --eval 'cd("C:/Users/Gregor/AppData/Local/Temp/RtmpC4zBbP/R.INSTALL1ca859d854b3/RcppOctave/src-i386/modules"); mkoctfile -v utils.cc'
warning: gmsh does not seem to be present some functionalities will be disabled
warning: dx does not seem to be present some functionalities will be disabled
warning: function C:\Octave\Octave3.6.4_gcc4.6.2\share\octave\packages\statistics-1.2.0\fstat.m shadows a core library function
In file included from C:\Octave\Octave3.6.4_gcc4.6.2\include/hdf5.h:24:0,
from C:\Octave\Octave3.6.4_gcc4.6.2\include\octave-3.6.4\octave../octave/oct-hdf5.h:27,
from C:\Octave\Octave3.6.4_gcc4.6.2\include\octave-3.6.4\octave../octave/ov.h:43,
from C:\Octave\Octave3.6.4_gcc4.6.2\include\octave-3.6.4\octave../octave/oct-obj.h:34,
from utils.cc:22:
C:\Octave\Octave3.6.4_gcc4.6.2\include/H5public.h:191:33: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
define H5_PRINTF_HADDR_FMT "%"H5_PRINTF_LL_WIDTH"u"
utils.o:c:/Rtools/mingw_32/i686-w64-mingw32/include/c++/bits/basic_string.h:547: undefined reference to
_Unwind_Resume' utils.o: In function
ZN10dim_vector24chop_trailing_singletonsEv':
C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/dim-vector.h:83: undefined reference to__cxa_throw_bad_array_new_length' utils.o: In function
octave_value_list':
C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-obj.h:44: undefined reference to_Unwind_Resume' utils.o: In function
ZN10dim_vector7nil_repEv':
C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/dim-vector.h:219: undefined reference to_Unwind_Resume' utils.o:C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-obj.h:67: undefined reference to
_Unwind_Resume'
utils.o:utils.cc:(.eh_frame+0xcf): undefined reference to__gxx_personality_v0' collect2: ld returned 1 exit status c:/Rtools/mingw_32/bin/g++ -std=c++0x -c -I/c/OctaveB/gplibs/include -I/c/OctaveB/OctaveLibs/include -I/c/OctaveB/GnuWin32/include -IC:\Octave\Octave3.6.4_gcc4.6.2\include\octave-3.6.4\octave\.. -IC:\Octave\Octave3.6.4_gcc4.6.2\include\octave-3.6.4\octave -IC:\Octave\Octave3.6.4_gcc4.6.2\include -mieee-fp -IC:/OctaveB/gplibs/include/freetype2 -IC:/OctaveB/gplibs/include -IC:/OctaveB/gplibs/include -g -O2 utils.cc -o utils.o g++ -shared-libgcc -shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc -o utils.oct utils.o -LC:\Octave\Octave3.6.4_gcc4.6.2\lib\octave\3.6.4 -LC:\Octave\Octave3.6.4_gcc4.6.2\lib -loctinterp -loctave -lcruft warning: unable to find mkoctfile in expected location: 'C:\Octave\Octave3.6.4_gcc4.6.2\bin\mkoctfile-3.6.4' warning: mkoctfile exited with failure status *** Building octave module: Rrng.oct 'C:/Octave/Octave3.6.4_gcc4.6.2/bin/octave' --quiet --eval 'cd("C:/Users/Gregor/AppData/Local/Temp/RtmpC4zBbP/R.INSTALL1ca859d854b3/RcppOctave/src-i386/modules"); mkoctfile -v -IC:/Programs/R/R-331.2/include -IC:/Programs/R/R-331.2/include/i386 -LC:/Programs/R/R-331.2/bin/i386 -lR -lm Rrng.cc' warning: gmsh does not seem to be present some functionalities will be disabled warning: dx does not seem to be present some functionalities will be disabled warning: function C:\Octave\Octave3.6.4_gcc4.6.2\share\octave\packages\statistics-1.2.0\fstat.m shadows a core library function In file included from C:\Octave\Octave3.6.4_gcc4.6.2\include/hdf5.h:24:0, from C:\Octave\Octave3.6.4_gcc4.6.2\include\octave-3.6.4\octave\../octave/oct-hdf5.h:27, from C:\Octave\Octave3.6.4_gcc4.6.2\include\octave-3.6.4\octave\../octave/ov.h:43, from C:\Octave\Octave3.6.4_gcc4.6.2\include\octave-3.6.4\octave\../octave/oct-obj.h:34, from C:\Octave\Octave3.6.4_gcc4.6.2\include\octave-3.6.4\octave\../octave/ov-fcn.h:32, from C:\Octave\Octave3.6.4_gcc4.6.2\include\octave-3.6.4\octave\../octave/ov-builtin.h:28, from C:\Octave\Octave3.6.4_gcc4.6.2\include\octave-3.6.4\octave\../octave/defun-int.h:28, from C:\Octave\Octave3.6.4_gcc4.6.2\include\octave-3.6.4\octave\../octave/defun-dld.h:30, from C:\Octave\Octave3.6.4_gcc4.6.2\include\octave-3.6.4\octave\../octave/oct.h:36, from Rrng.cc:32: C:\Octave\Octave3.6.4_gcc4.6.2\include/H5public.h:191:33: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] define H5_PRINTF_HADDR_FMT "%"H5_PRINTF_LL_WIDTH"u" ^ Rrng.o:c:/Rtools/mingw_32/i686-w64-mingw32/include/c++/bits/basic_string.h:547: undefined reference to
_Unwind_Resume'
Rrng.o:c:/Rtools/mingw_32/i686-w64-mingw32/include/c++/bits/basic_string.h:547: undefined reference to_Unwind_Resume' Rrng.o:c:/Rtools/mingw_32/i686-w64-mingw32/include/c++/bits/basic_string.h:547: undefined reference to
_Unwind_Resume'
Rrng.o:c:/Rtools/mingw_32/i686-w64-mingw32/include/c++/bits/basic_string.h:547: undefined reference to_Unwind_Resume' Rrng.o:c:/Rtools/mingw_32/i686-w64-mingw32/include/c++/bits/basic_string.h:547: undefined reference to
_Unwind_Resume'
Rrng.o: In functionZN5ArrayIdEclEii': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference to
__cxa_throw_bad_array_new_length'
Rrng.o:C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-obj.h:67: undefined reference to_Unwind_Resume' Rrng.o: In function
Matrix':
C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/dim-vector.h:83: undefined reference to__cxa_throw_bad_array_new_length' Rrng.o: In function
no_ctor_new':
C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference to__cxa_throw_bad_array_new_length' C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference to
__cxa_throw_bad_array_new_length'
Rrng.o: In functionZN10dim_vector7nil_repEv': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/dim-vector.h:219: undefined reference to
_Unwind_Resume'
Rrng.o: In functionoctave_value_list': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-obj.h:44: undefined reference to
_Unwind_Resume'
Rrng.o: In functionno_ctor_new<double>': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference to
__cxa_throw_bad_array_new_length'
C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference to__cxa_throw_bad_array_new_length' Rrng.o:C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-obj.h:67: undefined reference to
_Unwind_Resume'
Rrng.o: In functionZN10dim_vector24chop_trailing_singletonsEv': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/dim-vector.h:83: undefined reference to
__cxa_throw_bad_array_new_length'
Rrng.o: In functionno_ctor_new<int>': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference to
__cxa_throw_bad_array_new_length'
C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference to__cxa_throw_bad_array_new_length' Rrng.o: In function
ZN10dim_vector7nil_repEv':
C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/dim-vector.h:219: undefined reference to_Unwind_Resume' Rrng.o: In function
octave_value_list':
C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-obj.h:44: undefined reference to_Unwind_Resume' Rrng.o: In function
no_ctor_new':
C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference to__cxa_throw_bad_array_new_length' C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference to
__cxa_throw_bad_array_new_length'
Rrng.o:C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-obj.h:67: undefined reference to_Unwind_Resume' Rrng.o: In function
ZN10dim_vector24chop_trailing_singletonsEv':
C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/dim-vector.h:83: undefined reference to__cxa_throw_bad_array_new_length' Rrng.o: In function
no_ctor_new':
C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference to__cxa_throw_bad_array_new_length' C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference to
__cxa_throw_bad_array_new_length'
Rrng.o: In functionZN10dim_vector7nil_repEv': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/dim-vector.h:219: undefined reference to
_Unwind_Resume'
Rrng.o: In functionoctave_value_list': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-obj.h:44: undefined reference to
_Unwind_Resume'
Rrng.o: In functionno_ctor_new<double>': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference to
__cxa_throw_bad_array_new_length'
C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference to__cxa_throw_bad_array_new_length' Rrng.o:C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-obj.h:67: undefined reference to
_Unwind_Resume'
Rrng.o: In functionZN10dim_vector24chop_trailing_singletonsEv': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/dim-vector.h:83: undefined reference to
__cxa_throw_bad_array_new_length'
Rrng.o: In functionno_ctor_new<int>': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference to
__cxa_throw_bad_array_new_length'
C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference to__cxa_throw_bad_array_new_length' Rrng.o: In function
ZN10dim_vector7nil_repEv':
C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/dim-vector.h:219: undefined reference to_Unwind_Resume' Rrng.o: In function
octave_value_list':
C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-obj.h:44: undefined reference to_Unwind_Resume' Rrng.o: In function
no_ctor_new':
C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference to__cxa_throw_bad_array_new_length' C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference to
__cxa_throw_bad_array_new_length'
Rrng.o:C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-obj.h:67: undefined reference to_Unwind_Resume' Rrng.o: In function
Matrix':
C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/dim-vector.h:83: undefined reference to__cxa_throw_bad_array_new_length' Rrng.o: In function
octave_value_list':
C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-obj.h:44: undefined reference to_Unwind_Resume' Rrng.o: In function
ZN10dim_vector7nil_repEv':
C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/dim-vector.h:219: undefined reference to_Unwind_Resume' Rrng.o: In function
no_ctor_new':
C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference to__cxa_throw_bad_array_new_length' Rrng.o: In function
no_ctor_new':
C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference to__cxa_throw_bad_array_new_length' C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference to
__cxa_throw_bad_array_new_length'
Rrng.o: In functionZN10dim_vector7nil_repEv': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/dim-vector.h:219: undefined reference to
_Unwind_Resume'
C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/dim-vector.h:219: undefined reference to_Unwind_Resume' Rrng.o:Rrng.cc:(.eh_frame+0x123): undefined reference to
__gxx_personality_v0'
Rrng.o:Rrng.cc:(.eh_frame$_ZNK17octave_base_value4dimsEv+0x13): undefined reference to__gxx_personality_v0' Rrng.o:Rrng.cc:(.eh_frame$_ZNK17octave_base_value5numelEv+0x13): undefined reference to
__gxx_personality_v0'
collect2: ld returned 1 exit status
c:/Rtools/mingw_32/bin/g++ -std=c++0x -c -I/c/OctaveB/gplibs/include -I/c/OctaveB/OctaveLibs/include -I/c/OctaveB/GnuWin32/include -IC:\Octave\Octave3.6.4_gcc4.6.2\include\octave-3.6.4\octave.. -IC:\Octave\Octave3.6.4_gcc4.6.2\include\octave-3.6.4\octave -IC:\Octave\Octave3.6.4_gcc4.6.2\include -mieee-fp -IC:/OctaveB/gplibs/include/freetype2 -IC:/OctaveB/gplibs/include -IC:/OctaveB/gplibs/include -g -O2 -IC:/Programs/R/R-331.2/include -IC:/Programs/R/R-331.2/include/i386 Rrng.cc -o Rrng.o
g++ -shared-libgcc -shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc -o Rrng.oct Rrng.o -LC:/Programs/R/R-331.2/bin/i386 -lR -lm -LC:\Octave\Octave3.6.4_gcc4.6.2\lib\octave\3.6.4 -LC:\Octave\Octave3.6.4_gcc4.6.2\lib -loctinterp -loctave -lcruft
warning: unable to find mkoctfile in expected location: 'C:\Octave\Octave3.6.4_gcc4.6.2\bin\mkoctfile-3.6.4'
warning: mkoctfile exited with failure status
make[2]: Leaving directory/cygdrive/c/Users/Gregor/AppData/Local/Temp/RtmpC4zBbP/R.INSTALL1ca859d854b3/RcppOctave/src-i386/modules' make[1]: Leaving directory
/cygdrive/c/Users/Gregor/AppData/Local/Temp/RtmpC4zBbP/R.INSTALL1ca859d854b3/RcppOctave/src-i386/modules'
Copying Octave modules to directory 'C:/Users/Gregor/Documents/R/win-library/3.3/RcppOctave/modules/i386'
cp: cannot stat '*.oct': No such file or directory
make: *** [OctaveModule] Error 1
Warning: running command 'make -f "Makevars.win" -f "C:/Programs/R/R-331.2/etc/i386/Makeconf" -f "C:/Programs/R/R-331.2/share/make/winshlib.mk" CXX='$(CXX1X)$(CXX1XSTD)' CXXFLAGS='$ (CXX1XFLAGS)' CXXPICFLAGS='$(CXX1XPICFLAGS)' SHLIB_LDFLAGS='$(SHLIB_CXX1XLDFLAGS)' SHLIB_LD='$(SHLIB_CXX1XLD)' SHLIB="RcppOctave.dll" OBJECTS="conversion.o rcpp_octave.o"' had status 2
ERROR: compilation failed for package 'RcppOctave'
- removing 'C:/Users/Gregor/Documents/R/win-library/3.3/RcppOctave'
Warning in install.packages :
running command '"C:/Programs/R/R-331.2/bin/x64/R" CMD INSTALL -l "C:\Users\Gregor\Documents\R\win-library\3.3" C:\Users\Gregor\AppData\Local\Temp\Rtmp6xgdQv/downloaded_packages/RcppOctave_0.18.1.tar.gz' had status 1
Warning in install.packages :
installation of package ‘RcppOctave’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\Gregor\AppData\Local\Temp\Rtmp6xgdQv\downloaded_packages’
Hello:
I am trying to call the statistics package from RcppOctave like this:
.CallOctave("pkg load statistics")
But I get this error:
Error in .CallOctave("pkg load statistics") :
RcppOctave - error in Octave function pkg load statistics
:
feval: function 'pkg load statistics' not found
My Linux Octave (Mint 18) can load the package with no problem.
This is the result after building RcppOctave against the binary distribution of octave, having symlinked the dylibs to .so's so RcppOctave finds them:
** R
** demo
** exec
** inst
** preparing package for lazy loading
** help
R(73211,0x7fff762f1310) malloc: *** error for object 0x10fcdf220: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
/Library/Frameworks/R.framework/Resources/bin/INSTALL: line 34: 73210 Done echo 'tools:::.install_packages()'
73211 Abort trap: 6 | R_DEFAULT_PACKAGES= LC_COLLATE=C "${R_HOME}/bin/R"
The downloaded source packages are in
‘/private/var/folders/s1/_v14lsc56tv44hm304m07vn40000gq/T/Rtmpuk4Gbo/downloaded_packages’
New versions of Octave (beginning with the soon to be released version 6, cf. http://hg.savannah.gnu.org/hgweb/octave/rev/80c42f4cca13 ) have replaced the is_empty
operation for octave_value types with isempty
. The error message from install_github('renozao/RcppOctave')
with R 3.6.3 and the current Octave development version installed begins
g++ -std=gnu++11 -c -I/usr/include/suitesparse -fPIC -I/home/nir/my_octave/include/octave-7.0.0/octave/.. -I/home/nir/my_octave/include/octave-7.0.0/octave -I/home/nir/my_octave/include -pthread -fopenmp -g -O2 -I/usr/share/R/include Rrng.cc -o /tmp/oct-znC1OH.o
Rrng.cc: In function ‘octave_value_list Frand(const octave_value_list&, int)’:
Rrng.cc:163:45: error: ‘const class octave_value’ has no member named ‘is_empty’; did you mean ‘isempty’?
163 | k = ( nargs > iarg_col && !args(iarg_col).is_empty() ? long(args(iarg_col).double_value()) : n);\
| ^~~~~~~~
Rrng.cc:181:1: note: in expansion of macro ‘RAND_ARGS’
181 | RAND_ARGS(octave_fun, 0, 2, 0, 1) \
| ^~~~~~~~~
Rrng.cc:196:3: note: in expansion of macro ‘RAND_FUNCTION’
196 | RAND_FUNCTION(unif_rand, "rand")
| ^~~~~~~~~~~~~
Rrng.cc: In function ‘octave_value_list Frandn(const octave_value_list&, int)’:
Rrng.cc:163:45: error: ‘const class octave_value’ has no member named ‘is_empty’; did you mean ‘isempty’?
163 | k = ( nargs > iarg_col && !args(iarg_col).is_empty() ? long(args(iarg_col).double_value()) : n);\
| ^~~~~~~~
Rrng.cc:181:1: note: in expansion of macro ‘RAND_ARGS’
181 | RAND_ARGS(octave_fun, 0, 2, 0, 1) \
| ^~~~~~~~~
Rrng.cc:207:2: note: in expansion of macro ‘RAND_FUNCTION’
207 | RAND_FUNCTION(norm_rand, "randn")
| ^~~~~~~~~~~~~
Rrng.cc: In function ‘octave_value_list Frande(const octave_value_list&, int)’:
Rrng.cc:163:45: error: ‘const class octave_value’ has no member named ‘is_empty’; did you mean ‘isempty’?
I followed the instructions to install on windows, yet it was unsuccessful. It through the following error:
Installing package into ‘C:/Users/MeisamHe/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
Checking system PATH...
C:\PROGRA1\R\R-311.2\bin/x64
c:\Rtools\bin
C:\Octave\3.2.4_gcc-4.4.0\bin
c:\Rtools\gcc-4.6.3\bin
C:\ProgramData\Oracle\Java\javapath
C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0
C:\Python27
C:\Program Files\Lenovo\Bluetooth Software
C:\Program Files\Lenovo\Bluetooth Software\syswow64
C:\Program Files (x86)\Intel\OpenCL SDK\1.5\bin\x86
C:\Program Files (x86)\Intel\OpenCL SDK\1.5\bin\x64
C:\Program Files\Intel\WiFi\bin
C:\Program Files\Common Files\Intel\WirelessCommon
C:\Python27
JAVA_HOME\bin
C:\Python27\jars
C:\Python27\Scripts
C:\Python27\Lib
C:\Program Files (x86)\Tesseract-OCR
C:\Program Files\MATLAB\R2013b\runtime\win64
C:\Program Files\MATLAB\R2013b\bin
C:\Program Files\MATLAB\R2013b\polyspace\bin
C:\MinGW\bin
C:\MinGW\bin
C:\Program Files\TortoiseHg
C:\Program Files\Intel\WiFi\bin
C:\Program Files\Common Files\Intel\WirelessCommon\
Checking whether R is a shared library... YES
Checking Rcpp LIBS...
Checking Rcpp CXXFLAGS... -IC:/Users/MeisamHe/Documents/R/win-library/3.1/Rcpp/include
Checking Octave binary directory... C:/Octave/3.2.4_gcc-4.4.0/bin
Checking Octave Octave bin directory... C:\Octave\3.2.4_gcc-4.4.0\bin
Checking Octave cpp flags... -I/usr/local/octmgw32_gcc-4.4.0-dw2/include
Checking Octave include flags... -IC:\Octave\3.2.4_gcc-4.4.0\include\octave-3.2.4
Checking Octave -L flags... -LC:\Octave\3.2.4_gcc-4.4.0\lib\octave-3.2.4
Checking Octave libraries... -loctinterp
Checking Octave C compiler... gcc
Checking Octave Fortran compiler... mingw32-gfortran-4.4.0-dw2
Checking Octave platform... i686-pc-mingw32
Checking Octave API version... api-v37
Checking Octave version... 3.2.4
Checking whether to infer output names for Octave function (Octave >= 3.4.3?)... no
Checking RcppOctave Octave module directory... C:/Users/MeisamHe/Documents/R/win-library/3.1/RcppOctave/modules
Substituting configure variables (22) in R/config-vars.R
Substituting configure variables (22) in src/Makevars.win
Substituting configure variables (22) in src/modules/Makefile
** libs
Warning: this package has a non-empty 'configure.win' file,
so building only the main architecture
cygwin warning:
MS-DOS style path detected: C:/PROGRA1/R/R-311.2/bin/x64/Rscript.exe
Preferred POSIX equivalent is: /cygdrive/c/PROGRA1/R/R-311.2/bin/x64/Rscript.exe
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
g++ -m64 -std=c++0x -I"C:/PROGRA1/R/R-311.2/include" -DNDEBUG -IC:/Users/MeisamHe/Documents/R/win-library/3.1/Rcpp/include -I/usr/local/octmgw32_gcc-4.4.0-dw2/include -IC:/Octave/3.2.4_gcc-4.4.0/include/octave-3.2.4 -IC:/Octave/3.2.4_gcc-4.4.0/include/octave-3.2.4/octave -IC:/Octave/3.2.4_gcc-4.4.0/include -DOCT_POST_3_4_0=-1 -fmax-errors=10 -I"C:/Users/MeisamHe/Documents/R/win-library/3.1/Rcpp/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c conversion.cpp -o conversion.o
In file included from rcpp_octave.h:25:0,
from conversion.cpp:1:
C:/Octave/3.2.4_gcc-4.4.0/include/octave-3.2.4/octave/config.h:1129:0: warning: "_WIN32_WINNT" redefined [enabled by default]
c:\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/_mingw.h:244:0: note: this is the location of the previous definition
In file included from c:\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/objbase.h:154:0,
from c:\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/ole2.h:16,
from c:\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/windows.h:94,
from C:/Octave/3.2.4_gcc-4.4.0/include/octave-3.2.4/octave/lo-utils.h:78,
from C:/Octave/3.2.4_gcc-4.4.0/include/octave-3.2.4/octave/Array.h:38,
from C:/Octave/3.2.4_gcc-4.4.0/include/octave-3.2.4/octave/str-vec.h:31,
from C:/Octave/3.2.4_gcc-4.4.0/include/octave-3.2.4/octave/oct-obj.h:32,
from rcpp_octave.h:26,
from conversion.cpp:1:
c:\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/objidl.h:598:52: error: macro "Realloc" requires 3 arguments, but only 2 given
c:\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/objidl.h:598:56: sorry, unimplemented: non-static data member initializers
c:\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/objidl.h:598:56: error: 'constexpr' needed for in-class initialization of static data member 'Realloc' of non-integral type
c:\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/objidl.h:599:25: error: expected identifier before '(' token
c:\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/objidl.h:599:25: error: 'parameter' declared as function returning a function
c:\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/objidl.h:599:25: error: expected ')' before ',' token
In file included from c:\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/msxml.h:209:0,
from c:\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/urlmon.h:219,
from c:\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/objbase.h:348,
from c:\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/ole2.h:16,
from c:\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/windows.h:94,
from C:/Octave/3.2.4_gcc-4.4.0/include/octave-3.2.4/octave/lo-utils.h:78,
from C:/Octave/3.2.4_gcc-4.4.0/include/octave-3.2.4/octave/Array.h:38,
from C:/Octave/3.2.4_gcc-4.4.0/include/octave-3.2.4/octave/str-vec.h:31,
from C:/Octave/3.2.4_gcc-4.4.0/include/octave-3.2.4/octave/oct-obj.h:32,
from rcpp_octave.h:26,
from conversion.cpp:1:
c:\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/oaidl.h:1890:28: error: expected identifier before '(' token
c:\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/oaidl.h:1890:28: error: 'parameter' declared as function returning a function
c:\rtools\gcc-4.6.3\bin../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/include/oaidl.h:1890:28: error: expected ')' before ',' token
make: *** [conversion.o] Error 1
Warning: running command 'make -f "Makevars.win" -f "C:/PROGRA1/R/R-311.2/etc/x64/Makeconf" -f "C:/PROGRA1/R/R-311.2/share/make/winshlib.mk" CXX='$(CXX1X)
ERROR: compilation failed for package 'RcppOctave'
RcppOctave no longer install for Octave 4.0.0
Tried reinstall (from develop branch) and got the errors
Error : /tmp/Rtmpk5fzV0/devtools441847599d4d/renozao-RcppOctave-44ada3d/man/o_addpath.Rd:40: .onLoad failed in loadNamespace() for 'RcppOctave', details:
call: FUN(X[[i]], ...)
error: RcppOctave - error in Octave function octave_config_info
:
octave_config_info: invalid parameter 'CC_VERSION'
This appears to be due to change in Octave
"
** The following configuration variables were deprecated in Octave 3.8
and have been removed from Octave 4.0
CC_VERSION (now GCC_VERSION)
CXX_VERSION (now GXX_VERSION)"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.