[Bug 210505] graphics/opencv: Update to 3.1
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Oct 31 17:02:54 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210505
--- Comment #35 from otacilio.neto at bsd.com.br ---
This small program do not compile when using this port and -std=c++11 or above.
#include <opencv2/opencv.hpp>
int main(){
cv::Mat myMat;
return 0;
}
If the user uses c++98 it compiles fine, but, from c++11 and above this error
message appears:
[ota at nostromo /usr/home/ota/Desktop]$ c++ -I/usr/local/include -L/usr/local/lib
-o main main.cpp -lopencv_core -std=c++11
In file included from main.cpp:1:
In file included from /usr/local/include/opencv2/opencv.hpp:46:
In file included from /usr/local/include/opencv2/core.hpp:3165:
/usr/local/include/opencv2/core/utility.hpp:362:47: error: reinterpret_cast
from
'nullptr_t' to 'int *' is not allowed
operation(*reinterpret_cast<_Tp*>(0), reinterpret_cast<int*>(NULL));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
When open the file this warning is there:
template<typename _Tp, typename Functor> inline
void Mat::forEach_impl(const Functor& operation) {
if (false) {
operation(*reinterpret_cast<_Tp*>(0), reinterpret_cast<int*>(NULL));
// If your compiler fail in this line.
// Please check that your functor signature is
// (_Tp&, const int*) <- multidimential
// or (_Tp&, void*) <- in case of you don't need current idx.
}
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list