cv2cg icon indicating copy to clipboard operation
cv2cg copied to clipboard

Build fails on Mac OS X (High Sierra)

Open rngadam opened this issue 8 years ago • 2 comments

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

rngadam avatar Dec 02 '17 09:12 rngadam

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.

simbaforrest avatar Dec 19 '17 21:12 simbaforrest

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.

rngadam avatar Dec 20 '17 02:12 rngadam