I tried to create opencv 2.4.10 on Mac 10.10.3 with Xcode 6.3. The following errors occurred while creating.
/Users/Shirui/work/program/opencv-2.4.10/modules/legacy/src/calibfilter.cpp:98:9: error: array comparison '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: array address 'this-> latestCounts' will always evaluate to 'true' [-Werror, -Wpointer-bool-conversion] if (latestCounts) ~~ ^ ~~~~~ ~~~~~~ Created 2 errors.
Commands I used:
mkdir path-to-opencv-source/build cd path-to-opencv-source/build cmake -G "Unix Makefiles" .. make -j8
thanks a lot
source share