* installing *source* package 'ROpenCV' ... ** this is package 'ROpenCV' version '1.0' ** using staged installation ** libs using C++ compiler: 'g++.exe (GCC) 13.3.0' rm -f ROpenCV.dll ROpenCV_types.o RcppExports.o cv_3d.o cv_backgroundsegm.o cv_calib.o cv_core.o cv_core_affine.o cv_core_cuda.o cv_core_mat.o cv_core_matx.o cv_core_persistence.o cv_core_types.o cv_core_utility.o cv_features2d.o cv_highgui.o cv_imgcodecs.o cv_imgproc.o cv_mat.o cv_objtrack.o cv_photo.o cv_types.o cv_videoio.o cv_ximgproc.o cv_xobjdetect.o interface.o stdVector.o "D:/RCompile/recent/R/bin/x64/Rscript.exe" "../tools/winlibs.R" 5.0.0 g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../windows/opencv-5.0.0/include/opencv5 -DHAVE_XFEATURES2D -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c ROpenCV_types.cpp -o ROpenCV_types.o In file included from ROpenCV_types.cpp:1: ROpenCV_types.h:3: warning: "R_NO_REMAP" redefined 3 | #define R_NO_REMAP | : note: this is the location of the previous definition ROpenCV_types.cpp: In function 'cv::Mat cvMat_reshape(cv::Mat*, SEXP)': ROpenCV_types.cpp:2687:3: warning: control reaches end of non-void function [-Wreturn-type] 2687 | } | ^ ROpenCV_types.cpp: In function 'size_t cvMat_total(cv::Mat*, SEXP)': ROpenCV_types.cpp:2790:12: warning: 'res' may be used uninitialized [-Wmaybe-uninitialized] 2790 | return res; | ^~~ ROpenCV_types.cpp:2778:12: note: 'res' was declared here 2778 | size_t res; | ^~~ g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../windows/opencv-5.0.0/include/opencv5 -DHAVE_XFEATURES2D -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c RcppExports.cpp -o RcppExports.o In file included from RcppExports.cpp:4: ROpenCV_types.h:3: warning: "R_NO_REMAP" redefined 3 | #define R_NO_REMAP | : note: this is the location of the previous definition g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../windows/opencv-5.0.0/include/opencv5 -DHAVE_XFEATURES2D -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c cv_3d.cpp -o cv_3d.o In file included from cv_3d.cpp:1: ROpenCV_types.h:3: warning: "R_NO_REMAP" redefined 3 | #define R_NO_REMAP | : note: this is the location of the previous definition g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../windows/opencv-5.0.0/include/opencv5 -DHAVE_XFEATURES2D -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c cv_backgroundsegm.cpp -o cv_backgroundsegm.o In file included from cv_backgroundsegm.cpp:1: ROpenCV_types.h:3: warning: "R_NO_REMAP" redefined 3 | #define R_NO_REMAP | : note: this is the location of the previous definition g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../windows/opencv-5.0.0/include/opencv5 -DHAVE_XFEATURES2D -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c cv_calib.cpp -o cv_calib.o In file included from cv_calib.cpp:1: ROpenCV_types.h:3: warning: "R_NO_REMAP" redefined 3 | #define R_NO_REMAP | : note: this is the location of the previous definition g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../windows/opencv-5.0.0/include/opencv5 -DHAVE_XFEATURES2D -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c cv_core.cpp -o cv_core.o In file included from cv_core.cpp:1: ROpenCV_types.h:3: warning: "R_NO_REMAP" redefined 3 | #define R_NO_REMAP | : note: this is the location of the previous definition g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../windows/opencv-5.0.0/include/opencv5 -DHAVE_XFEATURES2D -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c cv_core_affine.cpp -o cv_core_affine.o In file included from cv_core_affine.cpp:1: ROpenCV_types.h:3: warning: "R_NO_REMAP" redefined 3 | #define R_NO_REMAP | : note: this is the location of the previous definition g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../windows/opencv-5.0.0/include/opencv5 -DHAVE_XFEATURES2D -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c cv_core_cuda.cpp -o cv_core_cuda.o In file included from cv_core_cuda.cpp:1: ROpenCV_types.h:3: warning: "R_NO_REMAP" redefined 3 | #define R_NO_REMAP | : note: this is the location of the previous definition g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../windows/opencv-5.0.0/include/opencv5 -DHAVE_XFEATURES2D -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c cv_core_mat.cpp -o cv_core_mat.o In file included from cv_core_mat.cpp:1: ROpenCV_types.h:3: warning: "R_NO_REMAP" redefined 3 | #define R_NO_REMAP | : note: this is the location of the previous definition g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../windows/opencv-5.0.0/include/opencv5 -DHAVE_XFEATURES2D -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c cv_core_matx.cpp -o cv_core_matx.o In file included from cv_core_matx.cpp:1: ROpenCV_types.h:3: warning: "R_NO_REMAP" redefined 3 | #define R_NO_REMAP | : note: this is the location of the previous definition g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../windows/opencv-5.0.0/include/opencv5 -DHAVE_XFEATURES2D -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c cv_core_persistence.cpp -o cv_core_persistence.o In file included from cv_core_persistence.cpp:1: ROpenCV_types.h:3: warning: "R_NO_REMAP" redefined 3 | #define R_NO_REMAP | : note: this is the location of the previous definition g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../windows/opencv-5.0.0/include/opencv5 -DHAVE_XFEATURES2D -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c cv_core_types.cpp -o cv_core_types.o In file included from cv_core_types.cpp:1: ROpenCV_types.h:3: warning: "R_NO_REMAP" redefined 3 | #define R_NO_REMAP | : note: this is the location of the previous definition g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../windows/opencv-5.0.0/include/opencv5 -DHAVE_XFEATURES2D -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c cv_core_utility.cpp -o cv_core_utility.o In file included from cv_core_utility.cpp:1: ROpenCV_types.h:3: warning: "R_NO_REMAP" redefined 3 | #define R_NO_REMAP | : note: this is the location of the previous definition g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../windows/opencv-5.0.0/include/opencv5 -DHAVE_XFEATURES2D -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c cv_features2d.cpp -o cv_features2d.o In file included from cv_features2d.cpp:1: ROpenCV_types.h:3: warning: "R_NO_REMAP" redefined 3 | #define R_NO_REMAP | : note: this is the location of the previous definition g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../windows/opencv-5.0.0/include/opencv5 -DHAVE_XFEATURES2D -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c cv_highgui.cpp -o cv_highgui.o In file included from cv_highgui.cpp:1: ROpenCV_types.h:3: warning: "R_NO_REMAP" redefined 3 | #define R_NO_REMAP | : note: this is the location of the previous definition g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../windows/opencv-5.0.0/include/opencv5 -DHAVE_XFEATURES2D -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c cv_imgcodecs.cpp -o cv_imgcodecs.o In file included from cv_imgcodecs.cpp:1: ROpenCV_types.h:3: warning: "R_NO_REMAP" redefined 3 | #define R_NO_REMAP | : note: this is the location of the previous definition g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../windows/opencv-5.0.0/include/opencv5 -DHAVE_XFEATURES2D -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c cv_imgproc.cpp -o cv_imgproc.o In file included from cv_imgproc.cpp:1: ROpenCV_types.h:3: warning: "R_NO_REMAP" redefined 3 | #define R_NO_REMAP | : note: this is the location of the previous definition cv_imgproc.cpp: In function 'void cv_imgproc_calcBackProject01(Rcpp::XPtr >, int, Rcpp::XPtr >, cv::SparseMat, SEXP, Rcpp::XPtr > >, double, bool)': cv_imgproc.cpp:430:18: warning: ISO C++ forbids variable length array '_ranges' [-Wvla] 430 | const float* _ranges[ranges->size()]; | ^~~~~~~ cv_imgproc.cpp: In function 'void cv_imgproc_calcBackProject02(Rcpp::XPtr >, int, Rcpp::XPtr >, cv::InputArray, SEXP, Rcpp::XPtr > >, double, bool)': cv_imgproc.cpp:464:18: warning: ISO C++ forbids variable length array '_ranges' [-Wvla] 464 | const float* _ranges[ranges->size()]; | ^~~~~~~ cv_imgproc.cpp: In function 'void cv_imgproc_calcHist01(Rcpp::XPtr >, int, Rcpp::XPtr >, cv::InputArray, SEXP, int, Rcpp::XPtr >, Rcpp::XPtr > >, bool, bool)': cv_imgproc.cpp:523:18: warning: ISO C++ forbids variable length array '_ranges' [-Wvla] 523 | const float* _ranges[ranges->size()]; | ^~~~~~~ cv_imgproc.cpp: In function 'void cv_imgproc_calcHist02(Rcpp::XPtr >, int, Rcpp::XPtr >, cv::InputArray, SEXP, int, Rcpp::XPtr >, Rcpp::XPtr > >, bool, bool)': cv_imgproc.cpp:559:18: warning: ISO C++ forbids variable length array '_ranges' [-Wvla] 559 | const float* _ranges[ranges->size()]; | ^~~~~~~ cv_imgproc.cpp: In function 'void cv_imgproc_fillPoly01(cv::InputOutputArray, Rcpp::XPtr > > >, Rcpp::XPtr >, int, cv::Scalar, int, int, cv::Point)': cv_imgproc.cpp:1464:22: warning: ISO C++ forbids variable length array '_pts' [-Wvla] 1464 | const cv::Point* _pts[pts->size()]; | ^~~~ cv_imgproc.cpp: In function 'void cv_imgproc_polylines01(cv::InputOutputArray, Rcpp::XPtr > > >, Rcpp::XPtr >, int, bool, cv::Scalar, int, int, int)': cv_imgproc.cpp:2777:16: warning: ISO C++ forbids variable length array '_pts' [-Wvla] 2777 | cv::Point* _pts[pts->size()]; | ^~~~ g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../windows/opencv-5.0.0/include/opencv5 -DHAVE_XFEATURES2D -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c cv_mat.cpp -o cv_mat.o In file included from cv_mat.cpp:1: ROpenCV_types.h:3: warning: "R_NO_REMAP" redefined 3 | #define R_NO_REMAP | : note: this is the location of the previous definition g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../windows/opencv-5.0.0/include/opencv5 -DHAVE_XFEATURES2D -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c cv_objtrack.cpp -o cv_objtrack.o In file included from cv_objtrack.cpp:1: ROpenCV_types.h:3: warning: "R_NO_REMAP" redefined 3 | #define R_NO_REMAP | : note: this is the location of the previous definition cv_objtrack.cpp: In function 'cv::Mat cv_objtrack_estimateRigidTransform(cv::InputArray, cv::InputArray, bool)': cv_objtrack.cpp:141:49: warning: 'cv::Mat cv::estimateRigidTransform(InputArray, InputArray, bool)' is deprecated [-Wdeprecated-declarations] 141 | cv::Mat rreszzz = cv::estimateRigidTransform(src,dst,fullAffine); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ In file included from ../windows/opencv-5.0.0/include/opencv5/opencv2/video.hpp:55, from ../windows/opencv-5.0.0/include/opencv5/opencv2/opencv.hpp:92, from ROpenCV_types.h:12: ../windows/opencv-5.0.0/include/opencv5/opencv2/video/tracking.hpp:267:30: note: declared here 267 | CV_DEPRECATED CV_EXPORTS Mat estimateRigidTransform( InputArray src, InputArray dst, bool fullAffine ); | ^~~~~~~~~~~~~~~~~~~~~~ g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../windows/opencv-5.0.0/include/opencv5 -DHAVE_XFEATURES2D -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c cv_photo.cpp -o cv_photo.o In file included from cv_photo.cpp:1: ROpenCV_types.h:3: warning: "R_NO_REMAP" redefined 3 | #define R_NO_REMAP | : note: this is the location of the previous definition g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../windows/opencv-5.0.0/include/opencv5 -DHAVE_XFEATURES2D -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c cv_types.cpp -o cv_types.o In file included from cv_types.cpp:1: ROpenCV_types.h:3: warning: "R_NO_REMAP" redefined 3 | #define R_NO_REMAP | : note: this is the location of the previous definition g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../windows/opencv-5.0.0/include/opencv5 -DHAVE_XFEATURES2D -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c cv_videoio.cpp -o cv_videoio.o In file included from cv_videoio.cpp:1: ROpenCV_types.h:3: warning: "R_NO_REMAP" redefined 3 | #define R_NO_REMAP | : note: this is the location of the previous definition In file included from ../windows/opencv-5.0.0/include/opencv5/opencv2/highgui.hpp:51, from ../windows/opencv-5.0.0/include/opencv5/opencv2/opencv.hpp:71, from ROpenCV_types.h:12: ../windows/opencv-5.0.0/include/opencv5/opencv2/videoio.hpp:887:26: warning: 'virtual bool cv::VideoCapture::retrieve(cv::OutputArray, int)' was hidden [-Woverloaded-virtual=] 887 | CV_WRAP virtual bool retrieve(OutputArray image, int flag = 0); | ^~~~~~~~ cv_videoio.cpp:286:8: note: by 'bool cvVideoCapture::retrieve(SEXP, int)' 286 | bool retrieve(SEXP dst, int flag){ | ^~~~~~~~ g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../windows/opencv-5.0.0/include/opencv5 -DHAVE_XFEATURES2D -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c cv_ximgproc.cpp -o cv_ximgproc.o In file included from cv_ximgproc.cpp:1: ROpenCV_types.h:3: warning: "R_NO_REMAP" redefined 3 | #define R_NO_REMAP | : note: this is the location of the previous definition g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../windows/opencv-5.0.0/include/opencv5 -DHAVE_XFEATURES2D -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c cv_xobjdetect.cpp -o cv_xobjdetect.o In file included from cv_xobjdetect.cpp:1: ROpenCV_types.h:3: warning: "R_NO_REMAP" redefined 3 | #define R_NO_REMAP | : note: this is the location of the previous definition g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../windows/opencv-5.0.0/include/opencv5 -DHAVE_XFEATURES2D -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c interface.cpp -o interface.o In file included from interface.cpp:1: ROpenCV_types.h:3: warning: "R_NO_REMAP" redefined 3 | #define R_NO_REMAP | : note: this is the location of the previous definition g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../windows/opencv-5.0.0/include/opencv5 -DHAVE_XFEATURES2D -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.5/RcppArmadillo/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c stdVector.cpp -o stdVector.o In file included from stdVector.cpp:1: ROpenCV_types.h:3: warning: "R_NO_REMAP" redefined 3 | #define R_NO_REMAP | : note: this is the location of the previous definition g++ -std=gnu++17 -shared -s -static-libgcc -o ROpenCV.dll tmp.def ROpenCV_types.o RcppExports.o cv_3d.o cv_backgroundsegm.o cv_calib.o cv_core.o cv_core_affine.o cv_core_cuda.o cv_core_mat.o cv_core_matx.o cv_core_persistence.o cv_core_types.o cv_core_utility.o cv_features2d.o cv_highgui.o cv_imgcodecs.o cv_imgproc.o cv_mat.o cv_objtrack.o cv_photo.o cv_types.o cv_videoio.o cv_ximgproc.o cv_xobjdetect.o interface.o stdVector.o -L../windows/opencv-5.0.0/lib/x64 -lopencv_alphamat -lopencv_bgsegm -lopencv_bioinspired -lopencv_calib -lopencv_ccalib -lopencv_3d -lopencv_datasets -lopencv_dnn -lopencv_dnn_objdetect -lopencv_dnn_superres -lopencv_dpm -lopencv_face -lopencv_features2d -lopencv_video -lopencv_videoio -lopencv_videostab -lopencv_flann -lopencv_fuzzy -lopencv_gapi -lopencv_hfs -lopencv_img_hash -lopencv_highgui -lopencv_imgcodecs -lopencv_intensity_transform -lopencv_line_descriptor -lopencv_mcc -lopencv_ml -lopencv_objdetect -lopencv_optflow -lopencv_phase_unwrapping -lopencv_photo -lopencv_plot -lopencv_quality -lopencv_rapid -lopencv_reg -lopencv_rgbd -lopencv_saliency -lopencv_shape -lopencv_signal -lopencv_stereo -lopencv_stitching -lopencv_structured_light -lopencv_superres -lopencv_surface_matching -lopencv_text -lopencv_tracking -lopencv_wechat_qrcode -lopencv_xfeatures2d -lopencv_ximgproc -lopencv_xobjdetect -lopencv_xphoto -lopencv_xstereo -lopencv_imgproc -lopencv_core -lade -llibclapack -lIlmImf -llibjpeg-turbo -llibpng -llibprotobuf -llibtiff -llibwebp -lz -lzlib -lstdc++ -lopenjp2 -lcomctl32 -lgdi32 -lole32 -lsetupapi -lws2_32 -lavifil32 -lavicap32 -lwinmm -lmsvfw32 -lopengl32 -lglu32 -lcomdlg32 -lOleAut32 -luuid -lgfortran -lquadmath -Ld:/rtools44/x86_64-w64-mingw32.static.posix/lib/x64 -Ld:/rtools44/x86_64-w64-mingw32.static.posix/lib -LD:/RCompile/recent/R/bin/x64 -lR D:\rtools44\x86_64-w64-mingw32.static.posix\bin/ld.exe: RcppExports.o:RcppExports.cp:(.rdata+0x8460): undefined reference to `_rcpp_module_boot_cvVecModule' collect2.exe: error: ld returned 1 exit status no DLL was created ERROR: compilation failed for package 'ROpenCV' * removing 'd:/RCompile/CRANincoming/R-devel/lib/ROpenCV' * restoring previous 'd:/RCompile/CRANincoming/R-devel/lib/ROpenCV'