I tried to build opencv 2.4.10 on Mac 10.10.3 with Xcode 6.3. And the following errors occurred by building.
/Users/Shirui/work/program/opencv-2.4.10/modules/legacy/src/calibfilter.cpp:98:9: error: comparison of array 'this->latestPoints' not equal to a null pointer is always true [-Werror,-Wtautological-pointer-compare] if (latestPoints != NULL) ^~~~~~~~~~~~ ~~~~ /Users/Shirui/work/program/opencv-2.4.10/modules/legacy/src/calibfilter.cpp:526:9: error: address of array 'this->latestCounts' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion] if( latestCounts ) ~~ ^~~~~~~~~~~~ 2 errors generated.
The commands I used:
mkdir path-to-opencv-source/build
cd path-to-opencv-source/build
cmake -G "Unix Makefiles" ..
make -j8
Thanks a lot