Menu

#27 Problem building using Android NDK

v1.0 (example)
open
nobody
None
5
2017-03-31
2017-03-31
No

Hi,

I tried building this for android using CMake on Windows. Using the published zip file for aruco-2.0.19. The build works fine for windows, and compiles fine under linux. However, when cross-compiling against the android toolchain, it is having problems :

markerlabeler.cpp: In static member function 'static cv::Ptr<aruco::markerlabeler> aruco::MarkerLabeler::create(std::string, std::string)':
D:/Builds/source/aruco-2.0.19/src/markerlabeler.cpp:34:28: error: 'stof' is not a member of 'std'
db->setParams(dict,std::stof(params));</aruco::markerlabeler>

and

D:/Builds/source/aruco-2.0.19/src/markerdetector.cpp: In member function 'void aruco::MarkerDetector::setDictionary(std::string, float)':
D:/Builds/source/aruco-2.0.19/src/markerdetector.cpp:1139:56: error: 'to_string' is not a member of 'std'
markerIdDetector= MarkerLabeler::create( dict_type,std::to_string(error_correction_rate));

Tried with Android NDK 10e and 14

seems to be having problems with the std library.

I have tried with both the r10e and r14b

Any suggestions for getting this working on Android?

Discussion


Log in to post a comment.

MongoDB Logo MongoDB