Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Oct 2016 17:02:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 210505] graphics/opencv: Update to 3.1
Message-ID:  <bug-210505-13-YErG3vWJMT@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-210505-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-210505-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210505

--- Comment #35 from otacilio.neto@bsd.com.br ---
This small program do not compile when using this port and -std=3Dc++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 err=
or
message appears:

[ota@nostromo /usr/home/ota/Desktop]$ c++ -I/usr/local/include -L/usr/local=
/lib
-o main main.cpp -lopencv_core -std=3Dc++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 id=
x.
    }

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-210505-13-YErG3vWJMT>