Updated by Kirill Kornyakov about 12 years ago

Hello,

the compilation with this cmake option:
<pre>
cmake -D WITH_OPENCL:bool=ON -D WITH_QT:bool=ON -D WITH_OPENGL:bool=ON -D WITH_OPENCLAMDFFT:bool=ON -D WITH_OPENCLAMDBLAS:bool=ON -D WITH_TBB:bool=ON [...]
</pre>
fall into error.
Including:

<pre>
matrix_operations.hpp: In member function ‘void cv::ocl::oclMat::assignTo(cv::ocl::oclMat&, int) const’:
OpenCV-2.4.3/modules/ocl/include/opencv2/ocl/matrix_operations.hpp:299:61: attention : declaration of ‘type’ shadows a member of 'this' [-Wshadow]
OpenCV-2.4.3/modules/ocl/include/opencv2/ocl/matrix_operations.hpp: In member function ‘cv::ocl::oclMat cv::ocl::oclMat::operator()(cv::Range, cv::Range) const’:
OpenCV-2.4.3/modules/ocl/include/opencv2/ocl/matrix_operations.hpp:373:76: attention : declaration of ‘colRange’ shadows a member of 'this' [-Wshadow]
OpenCV-2.4.3/modules/ocl/include/opencv2/ocl/matrix_operations.hpp:373:76: attention : declaration of ‘rowRange’ shadows a member of 'this' [-Wshadow]
OpenCV-2.4.3/modules/ocl/src/fft.cpp: At global scope:
/home/franck/DataCenter/projets/OpenCV/OpenCV-2.4.3/modules/ocl/src/fft.cpp:104:25: erreur: ‘void cv::ocl::fft_setup()’ should have been declared inside ‘cv::ocl’
OpenCV-2.4.3/modules/ocl/src/fft.cpp:114:28: erreur: ‘void cv::ocl::fft_teardown()’ should have been declared inside ‘cv::ocl’
OpenCV-2.4.3/modules/ocl/src/fft.cpp: In function ‘void cv::ocl::fft_teardown()’:
OpenCV-2.4.3/modules/ocl/src/fft.cpp:121:48: attention : comparaison entre des expressions entières signée et non signée [-Wsign-compare]
OpenCV-2.4.3/modules/ocl/src/fft.cpp: In constructor ‘cv::ocl::FftPlan::FftPlan(cv::Size, int, int, int, cv::ocl::FftType)’:
OpenCV-2.4.3/modules/ocl/src/fft.cpp:153:12: attention : unused variable ‘clLengthsOut’ [-Wunused-variable]
OpenCV-2.4.3/modules/ocl/src/fft.cpp: In destructor ‘cv::ocl::FftPlan::~FftPlan()’:
OpenCV-2.4.3/modules/ocl/src/fft.cpp:205:39: attention : comparaison entre des expressions entières signée et non signée [-Wsign-compare]
</pre>


An another example of error:
in precomp.hpp line ligne 49:
<pre>
if _MSC_VER >= 1200
#pragma warning( disable: 4251 4710 4711 4514 4996 )
#endif
</pre>

On g++ for linux, _MSC_VER is not defined and a there are warning, lot of warning...
OPENCLAMDBLAS and OPENCLAMDFFT seems to have been implementer for Visual C + + and windows but not for linux.

Back