Closed wumingpu closed 6 years ago
The OpenImageR package requires a C++11 compiler. This is the output that is printed in my R-session when I install OpenImageR on my Debian OS:
* installing *source* package ‘OpenImageR’ ...
** package ‘OpenImageR’ successfully unpacked and MD5 sums checked
** libs
g++ -std=gnu++11 -I/usr/share/R/include -DNDEBUG -I../inst/include/ -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/home/lampros/R/x86_64-pc-linux-gnu-library/3.4/RcppArmadillo/include" -fopenmp -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++11 -I/usr/share/R/include -DNDEBUG -I../inst/include/ -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/home/lampros/R/x86_64-pc-linux-gnu-library/3.4/RcppArmadillo/include" -fopenmp -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c dilation_erosion_rgb2gray.cpp -o dilation_erosion_rgb2gray.o
g++ -std=gnu++11 -I/usr/share/R/include -DNDEBUG -I../inst/include/ -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/home/lampros/R/x86_64-pc-linux-gnu-library/3.4/RcppArmadillo/include" -fopenmp -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c hog_features.cpp -o hog_features.o
g++ -std=gnu++11 -I/usr/share/R/include -DNDEBUG -I../inst/include/ -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/home/lampros/R/x86_64-pc-linux-gnu-library/3.4/RcppArmadillo/include" -fopenmp -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c image_hashing.cpp -o image_hashing.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I../inst/include/ -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/home/lampros/R/x86_64-pc-linux-gnu-library/3.4/RcppArmadillo/include" -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c init.c -o init.o
g++ -std=gnu++11 -I/usr/share/R/include -DNDEBUG -I../inst/include/ -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/home/lampros/R/x86_64-pc-linux-gnu-library/3.4/RcppArmadillo/include" -fopenmp -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c utils.cpp -o utils.o
g++ -std=gnu++11 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o OpenImageR.so RcppExports.o dilation_erosion_rgb2gray.o hog_features.o image_hashing.o init.o utils.o -llapack -lblas -lgfortran -lm -lquadmath -fopenmp -L/usr/lib/R/lib -lR
......
You also received an Error 127. I searched on web and found that this issue appears if you miss the requirements for compiling C/C++ based applications. You probably need to run,
sudo apt-get install build-essential
Thanks for your reply. I have already install the build-essential and g++ before install package OpenImageR. Maybe this caused by I used the Microsoft R Open (MRAN) not the CRAN.
Here is my sulotion:
I install R 3.3.3 on Ubuntu server 16.04 LTS OS, when I install OpenImageR package, I meet below error message, can you help me to reslove this issue? thank you.