Displaying 1 result from an estimated 1 matches for "imm_dop".
Did you mean:
imf_pop
2012 Nov 08
2
unable to load shared object - opencv
...encv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv/highgui.h>
#include <opencv/cv.h>
#include <R.h>
#include <Rinternals.h>
extern "C" SEXP provaR(void) {
cv::Mat gravit;
gravit=cv::imread("imm.jpg");
cv::imwrite("imm_dop.jpg",gravit);
Rprintf("Hello, World!nn");
return R_NilValue;
}
Now in the terminal i type R CMD SHLIB prova2.cpp to create the file
prova2.so and this happen without error.
In R i type dyn.load("prova2.so") and get this error:
Errore in dyn.load("prova2.so")...