renozao / RcppOctave

Seamless Interface to Octave -- and Matlab code
18 stars 9 forks source link

Unable to Install RcppOctave on MacOS 11.1 Big Sur #23

Open gloewing opened 3 years ago

gloewing commented 3 years ago

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.

barracuda156 commented 8 months ago

@gloewing You should pass cppflag to the path where your Octave headers are located. For example, Macports installs those into /opt/local/include/octave-9.1.0. So passing -I/opt/local/include/octave-9.1.0 should solve the issue.

Let me try to write a port for it.

UPD. Ah, apparently it got renamed to octave-config.h. And maybe just unneeded altogether.