Displaying 1 result from an estimated 1 matches for "facedetect".
2011 Mar 15
1
How to make sure R's g++ compiler uses certain C++ flags when making a package
...nclude it in my package, it gives me a bunch of error messages like:
"error: opencv2/core/operations.hpp: No such file or directory"
Does anyone know how to get R to compile the C code as my command line g++ compiler does?
For example, I am using the the following syntax to compile the facedetect.cpp code:
g++ -bind_at_load `pkg-config --cflags opencv` facedetect.cpp -o facedetect `pkg-config --libs opencv`
The key are the flags that point the compiler to the opencv package. How can I get R to use those same flags when it compiles the C code? Unfortunately I could not find the answer via...