cv2cg
cv2cg copied to clipboard
Build fails on Mac OS X (High Sierra)
AprilCalib.cpp:66:25: error: use of overloaded operator '[]' is ambiguous (with operand types 'ConfigHelper::ConfigNode' and 'const char [5]')
std::string mode = cfn["mode"].str();
CMakeCache.txt:CMAKE_CXX_COMPILER:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ --version
Apple LLVM version 9.0.0 (clang-900.0.38)
Target: x86_64-apple-darwin17.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Hi, I do not have Mac and never code with Mac so I cannot test it... The code was written and tested under windows and ubuntu. I'll try to look into this issue later and see if I can fix it. Suggestions are welcome.
You an actually install and use clang on Ubuntu which would probably reveal these issues.
I'm guessing the default language enforcement is more strict on clang.