i am building opencv 3.0 with extra modules from opencv contrib repository , cmake compilation goes fine. after that , when i try to build ALL_BUILD it fails and gives me following errors:
Error 1 error C2059: syntax error : 'bad suffix on number' c:\opencv_contrib-master\modules\line_descriptor\src\bitops.hpp 104 1 opencv_line_descriptor Error 5 error C2065: 'NAN' : undeclared identifier C:\opencv_contrib-master\modules\saliency\src\motionSaliencyBinWangApr2014.cpp 84 1 opencv_saliency Error 6 error C2065: 'NAN' : undeclared identifier C:\opencv_contrib-master\modules\saliency\src\motionSaliencyBinWangApr2014.cpp 92 1 opencv_saliency Error 7 error C2065: 'NAN' : undeclared identifier C:\opencv_contrib-master\modules\saliency\src\motionSaliencyBinWangApr2014.cpp 482 1 opencv_saliency Error 8 error C2065: 'NAN' : undeclared identifier C:\opencv_contrib-master\modules\saliency\src\motionSaliencyBinWangApr2014.cpp 492 1 opencv_saliency Error 3 error C2065: 'U' : undeclared identifier c:\opencv_contrib-master\modules\line_descriptor\src\bitops.hpp 104 1 opencv_line_descriptor Error 2 error C2146: syntax error : missing ',' before identifier 'U' c:\opencv_contrib-master\modules\line_descriptor\src\bitops.hpp 104 1 opencv_line_descriptor Error 4 error LNK1104: cannot open file '....\lib\Debug\opencv_line_descriptor300d.lib' C:\opencv-master\build64\modules\line_descriptor\LINK opencv_perf_line_descriptor Error 9 error LNK1104: cannot open file '....\lib\Debug\opencv_line_descriptor300d.lib' C:\opencv-master\build64\modules\line_descriptor\LINK opencv_test_line_descriptor
i am using visual studio 11 2014 on windows 8 64 bit , i did the same process on 32bit windows 7 system and it went fine. but can't figure out these errors on 64bit machine . please help THANKS in advance.