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.
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.