cmake - Build aruco 2.0.5 on Windows 8 -
i trying install aruco on windows machine using cmake 3.5.2 suggested the aruco developper.
config:
- windows8
- cmake 3.5.2
- aruco 2.0.5
i can configure , generate aruco in cmake
then go aruco\build -> right click-> open cmd -> type mingw32-make -> following error
c:\aruco-2.0.5\build>mingw32-make scanning dependencies of target aruco [ 2%] building cxx object src/cmakefiles/aruco.dir/ar_omp.cpp.obj [ 4%] building cxx object src/cmakefiles/aruco.dir/cameraparameters.cpp.obj [ 6%] building cxx object src/cmakefiles/aruco.dir/cvdrawingutils.cpp.obj in file included c:\aruco-2.0.5\src\aruco.h:149:0, c:\aruco-2.0.5\src\cvdrawingutils.h:31, c:\aruco-2.0.5\src\cvdrawingutils.cpp:28: c:\aruco-2.0.5\src\markerdetector.h:160:40: warning: "/*" within comment [-wcomm ent] aruco_mip_36h12, //**** recommended ^ c:\aruco-2.0.5\src\markerdetector.h:212:60: warning: unused parameter 'r2' [-wun used-parameter] void setthresholdparamrange(size_t r1 = 0, size_t r2 = 0) {_params. _thresp aram1_range = r1; } ^ c:\aruco-2.0.5\src\markerdetector.h:267:30: warning: unused parameter 'val' [-wu nused-parameter] void setdesiredspeed(int val){} ^ in file included c:\aruco-2.0.5\src\posetracker.h:33:0, c:\aruco-2.0.5\src\aruco.h:150, c:\aruco-2.0.5\src\cvdrawingutils.h:31, c:\aruco-2.0.5\src\cvdrawingutils.cpp:28: c:\aruco-2.0.5\src\markermap.h: in member function 'void aruco::marker3dinfo::to stream(std::ostream&)': c:\aruco-2.0.5\src\markermap.h:49:77: warning: comparison between signed , uns igned integer expressions [-wsign-compare] void tostream(std::ostream &str){str<<id<<" "<<size()<<" ";for(int i=0;i<si ze();i++) str<<at(i).x<<" "<<at(i).y<<" "<<at(i).z<<" ";} ^ in file included c:\aruco-2.0.5\src\posetracker.h:33:0, c:\aruco-2.0.5\src\aruco.h:150, c:\aruco-2.0.5\src\cvdrawingutils.h:31, c:\aruco-2.0.5\src\cvdrawingutils.cpp:28: c:\aruco-2.0.5\src\markermap.h: in member function 'void aruco::marker3dinfo::fr omstream(std::istream&)': c:\aruco-2.0.5\src\markermap.h:50:80: warning: comparison between signed , uns igned integer expressions [-wsign-compare] void fromstream(std::istream &str){int s;str>>id>>s;resize(s);for(int i=0;i <size();i++) str>>at(i).x>>at(i).y>>at(i).z;} ^ [ 9%] building cxx object src/cmakefiles/aruco.dir/dictionary.cpp.obj in file included c:\aruco-2.0.5\src\dictionary.cpp:9:0: c:\aruco-2.0.5\src\markermap.h: in member function 'void aruco::marker3dinfo::to stream(std::ostream&)': c:\aruco-2.0.5\src\markermap.h:49:77: warning: comparison between signed , uns igned integer expressions [-wsign-compare] void tostream(std::ostream &str){str<<id<<" "<<size()<<" ";for(int i=0;i<si ze();i++) str<<at(i).x<<" "<<at(i).y<<" "<<at(i).z<<" ";} ^ in file included c:\aruco-2.0.5\src\dictionary.cpp:9:0: c:\aruco-2.0.5\src\markermap.h: in member function 'void aruco::marker3dinfo::fr omstream(std::istream&)': c:\aruco-2.0.5\src\markermap.h:50:80: warning: comparison between signed , uns igned integer expressions [-wsign-compare] void fromstream(std::istream &str){int s;str>>id>>s;resize(s);for(int i=0;i <size();i++) str>>at(i).x>>at(i).y>>at(i).z;} ^ c:\aruco-2.0.5\src\dictionary.cpp: in static member function 'static std::string aruco::dictionary::gettypestring(aruco::dictionary::dict_types)': c:\aruco-2.0.5\src\dictionary.cpp:236:11: warning: enumeration value 'artag' not handled in switch [-wswitch] switch(t){ ^ c:\aruco-2.0.5\src\dictionary.cpp: in member function 'aruco::markermap aruco::d ictionary::createmarkermap(cv::size, int, int, const std::vector<int>&, bool)': c:\aruco-2.0.5\src\dictionary.cpp:275:39: warning: comparison between signed , unsigned integer expressions [-wsign-compare] if (gridsize.height*gridsize.width!=ids.size())throw cv::exception(9001, "g ridsize != ids.size()invalid ", "dictionary::createmarkermap", __file__, __line_ _); ^ c:\aruco-2.0.5\src\dictionary.cpp:284:23: warning: comparison between signed , unsigned integer expressions [-wsign-compare] (int i=0;i<ids.size();i++) tinfo[i].id=ids[i]; ^ c:\aruco-2.0.5\src\dictionary.cpp:285:13: warning: unused variable 'sizey' [-wun used-variable] int sizey=gridsize.height*markersize+(gridsize.height-1)*markerdistance ; ^ c:\aruco-2.0.5\src\dictionary.cpp:286:13: warning: unused variable 'sizex' [-wun used-variable] int sizex=gridsize.width*markersize+(gridsize.width-1)*markerdistance; ^ c:\aruco-2.0.5\src\dictionary.cpp:312:37: warning: comparison between signed , unsigned integer expressions [-wsign-compare] if (curmarkeridx>=ids.size()) throw cv::exception(999," fid ucidalmarkers::createmarkermapimage_chessmarkermap","internal error. rewrite thi s!!",__file__,__line__); ^ c:\aruco-2.0.5\src\dictionary.cpp:300:13: warning: unused variable 'centerx' [-w unused-variable] int centerx=sizex/2; ^ c:\aruco-2.0.5\src\dictionary.cpp:301:13: warning: unused variable 'centery' [-w unused-variable] int centery=sizey/2; ^ c:\aruco-2.0.5\src\dictionary.cpp:303:14: warning: unused variable 'centerdata' [-wunused-variable] bool centerdata=true; ^ [ 11%] building cxx object src/cmakefiles/aruco.dir/ippe.cpp.obj c:\aruco-2.0.5\src\ippe.cpp: in function 'void ippe::ippcomputerotations(double, double, double, double, double, double, cv::outputarray, cv::outputarray)': c:\aruco-2.0.5\src\ippe.cpp:307:45: warning: variable 'ata10' set not used [ -wunused-but-set-variable] double a00, a01, a10,a11, ata00, ata01, ata10,ata11,b00, b01, b10,b11,binv0 0, binv01, binv10,binv11; ^ c:\aruco-2.0.5\src\ippe.cpp:311:19: warning: variable 'a' set not used [-wun used-but-set-variable] double b0, b1,a,gamma,dtinv; ^ [ 13%] building cxx object src/cmakefiles/aruco.dir/marker.cpp.obj c:\aruco-2.0.5\src\marker.cpp: in member function 'void aruco::marker::rotatexax is(cv::mat&)': c:\aruco-2.0.5\src\marker.cpp:299:22: error: 'm_pi' not declared in sco pe float anglerad = m_pi / 2; ^ src\cmakefiles\aruco.dir\build.make:187: recipe target 'src/cmakefiles/aruco .dir/marker.cpp.obj' failed mingw32-make[2]: *** [src/cmakefiles/aruco.dir/marker.cpp.obj] error 1 cmakefiles\makefile2:116: recipe target 'src/cmakefiles/aruco.dir/all' faile d mingw32-make[1]: *** [src/cmakefiles/aruco.dir/all] error 2 makefile:126: recipe target 'all' failed mingw32-make: *** [all] error 2 c:\aruco-2.0.5\build>mingw32-make scanning dependencies of target aruco [ 2%] building cxx object src/cmakefiles/aruco.dir/marker.cpp.obj c:\aruco-2.0.5\src\marker.cpp: in member function 'void aruco::marker::rotatexax is(cv::mat&)': c:\aruco-2.0.5\src\marker.cpp:299:22: error: 'm_pi' not declared in sco pe float anglerad = m_pi / 2; ^ src\cmakefiles\aruco.dir\build.make:187: recipe target 'src/cmakefiles/aruco .dir/marker.cpp.obj' failed mingw32-make[2]: *** [src/cmakefiles/aruco.dir/marker.cpp.obj] error 1 cmakefiles\makefile2:116: recipe target 'src/cmakefiles/aruco.dir/all' faile d mingw32-make[1]: *** [src/cmakefiles/aruco.dir/all] error 2 makefile:126: recipe target 'all' failed mingw32-make: *** [all] error 2
i have tried to codeblocks exact same error
the developper has release new version 2.0.7 fixing issue. have done have aruco:
download .zip on sourceforge
unzip it
create build folder in aruco-2.0.7
open cmake-gui configure , generate
go build folder
open cmd window there
type mingw32-make
the library should have compiled properly. if omp.h missing compiler, find source code on internet , add mingw in mingw\include.
should ready go. don't forget add aruco path & reboot. if using ide, have add library since external library issue. finally, might have issues regarding c++11. working on it. if knows how allow on mingw (i haven't find understandable explanation far)
Comments
Post a Comment