gyandeep8693 / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

Linker errors between javaCV and openCV while installing JavaCV artifact #443

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install openCV 2.4.8.
2. Install javacpp artifact (latest source code)
3. Try to Install javacv artifact (latest source code)

What is the expected output? What do you see instead?
Expectation is clean installation of cv artifact. Lots of errors regarding 
missing constructor definition for VectorAdapter

What version of the product are you using? On what operating system?
GNU Make 3.81
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 
2014-02-14T12:37:52-05:00)
Java version: 1.6.0_65, vendor: Apple Inc.
Mac OS X 10.9.2

Please provide any additional information below.
the complete build log is attached

But the errors are as follows
/Users/Sabi/Development/Android-Development/JavaCV-Project/javacv/target/classes
/com/googlecode/javacv/cpp/jniopencv_features2d.cpp:1955:37: error: no matching 
constructor for initialization of 'VectorAdapter<CvMat *, cv::Mat>'
    VectorAdapter< CvMat*,cv::Mat > adapter3((const ::CvMat**)ptr3, size3);
                                    ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Sabi/Development/Android-Development/JavaCV-Project/javacv/target/classes
/com/googlecode/javacv/cpp/jniopencv_features2d.cpp:276:5: note: candidate 
constructor not viable: no known conversion from 'const ::CvMat **' (aka 'const 
CvMat **') to 'CvMat *const *' for 1st argument
    VectorAdapter(const P* ptr, typename std::vector<T>::size_type size) : ptr((P*)ptr), size(size),
    ^
/Users/Sabi/Development/Android-Development/JavaCV-Project/javacv/target/classes
/com/googlecode/javacv/cpp/jniopencv_features2d.cpp:278:5: note: candidate 
constructor not viable: requires single argument 'vec', but 2 arguments were 
provided
    VectorAdapter(const std::vector<T>& vec) : ptr(0), size(0), vec2(vec), vec(vec2) { }
    ^
/Users/Sabi/Development/Android-Development/JavaCV-Project/javacv/target/classes
/com/googlecode/javacv/cpp/jniopencv_features2d.cpp:279:5: note: candidate 
constructor not viable: requires single argument 'vec', but 2 arguments were 
provided
    VectorAdapter(      std::vector<T>& vec) : ptr(0), size(0), vec(vec) { }
    ^
/Users/Sabi/Development/Android-Development/JavaCV-Project/javacv/target/classes
/com/googlecode/javacv/cpp/jniopencv_features2d.cpp:274:59: note: candidate 
constructor (the implicit copy constructor) not viable: requires 1 argument, 
but 2 were provided
template<typename P, typename T = P> class JavaCPP_hidden VectorAdapter {
                                                          ^
/Users/Sabi/Development/Android-Development/JavaCV-Project/javacv/target/classes
/com/googlecode/javacv/cpp/jniopencv_features2d.cpp:2179:37: error: no matching 
constructor for initialization of 'VectorAdapter<CvMat *, cv::Mat>'
    VectorAdapter< CvMat*,cv::Mat > adapter4((const ::CvMat**)ptr4, size4);
                                    ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Sabi/Development/Android-Development/JavaCV-Project/javacv/target/classes
/com/googlecode/javacv/cpp/jniopencv_features2d.cpp:276:5: note: candidate 
constructor not viable: no known conversion from 'const ::CvMat **' (aka 'const 
CvMat **') to 'CvMat *const *' for 1st argument
    VectorAdapter(const P* ptr, typename std::vector<T>::size_type size) : ptr((P*)ptr), size(size),
    ^
/Users/Sabi/Development/Android-Development/JavaCV-Project/javacv/target/classes
/com/googlecode/javacv/cpp/jniopencv_features2d.cpp:278:5: note: candidate 
constructor not viable: requires single argument 'vec', but 2 arguments were 
provided
    VectorAdapter(const std::vector<T>& vec) : ptr(0), size(0), vec2(vec), vec(vec2) { }
    ^
/Users/Sabi/Development/Android-Development/JavaCV-Project/javacv/target/classes
/com/googlecode/javacv/cpp/jniopencv_features2d.cpp:279:5: note: candidate 
constructor not viable: requires single argument 'vec', but 2 arguments were 
provided
    VectorAdapter(      std::vector<T>& vec) : ptr(0), size(0), vec(vec) { }
    ^
/Users/Sabi/Development/Android-Development/JavaCV-Project/javacv/target/classes
/com/googlecode/javacv/cpp/jniopencv_features2d.cpp:274:59: note: candidate 
constructor (the implicit copy constructor) not viable: requires 1 argument, 
but 2 were provided
template<typename P, typename T = P> class JavaCPP_hidden VectorAdapter {
                                                          ^
/Users/Sabi/Development/Android-Development/JavaCV-Project/javacv/target/classes
/com/googlecode/javacv/cpp/jniopencv_features2d.cpp:2288:37: error: no matching 
constructor for initialization of 'VectorAdapter<CvMat *, cv::Mat>'
    VectorAdapter< CvMat*,cv::Mat > adapter4((const ::CvMat**)ptr4, size4);
                                    ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Sabi/Development/Android-Development/JavaCV-Project/javacv/target/classes
/com/googlecode/javacv/cpp/jniopencv_features2d.cpp:276:5: note: candidate 
constructor not viable: no known conversion from 'const ::CvMat **' (aka 'const 
CvMat **') to 'CvMat *const *' for 1st argument
    VectorAdapter(const P* ptr, typename std::vector<T>::size_type size) : ptr((P*)ptr), size(size),
    ^
/Users/Sabi/Development/Android-Development/JavaCV-Project/javacv/target/classes
/com/googlecode/javacv/cpp/jniopencv_features2d.cpp:278:5: note: candidate 
constructor not viable: requires single argument 'vec', but 2 arguments were 
provided
    VectorAdapter(const std::vector<T>& vec) : ptr(0), size(0), vec2(vec), vec(vec2) { }
    ^
/Users/Sabi/Development/Android-Development/JavaCV-Project/javacv/target/classes
/com/googlecode/javacv/cpp/jniopencv_features2d.cpp:279:5: note: candidate 
constructor not viable: requires single argument 'vec', but 2 arguments were 
provided
    VectorAdapter(      std::vector<T>& vec) : ptr(0), size(0), vec(vec) { }
    ^
/Users/Sabi/Development/Android-Development/JavaCV-Project/javacv/target/classes
/com/googlecode/javacv/cpp/jniopencv_features2d.cpp:274:59: note: candidate 
constructor (the implicit copy constructor) not viable: requires 1 argument, 
but 2 were provided
template<typename P, typename T = P> class JavaCPP_hidden VectorAdapter {
                                                          ^
/Users/Sabi/Development/Android-Development/JavaCV-Project/javacv/target/classes
/com/googlecode/javacv/cpp/jniopencv_features2d.cpp:2697:37: error: no matching 
constructor for initialization of 'VectorAdapter<CvMat *, cv::Mat>'
    VectorAdapter< CvMat*,cv::Mat > adapter2((const ::CvMat**)ptr2, size2);
                                    ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Sabi/Development/Android-Development/JavaCV-Project/javacv/target/classes
/com/googlecode/javacv/cpp/jniopencv_features2d.cpp:276:5: note: candidate 
constructor not viable: no known conversion from 'const ::CvMat **' (aka 'const 
CvMat **') to 'CvMat *const *' for 1st argument
    VectorAdapter(const P* ptr, typename std::vector<T>::size_type size) : ptr((P*)ptr), size(size),
    ^
/Users/Sabi/Development/Android-Development/JavaCV-Project/javacv/target/classes
/com/googlecode/javacv/cpp/jniopencv_features2d.cpp:278:5: note: candidate 
constructor not viable: requires single argument 'vec', but 2 arguments were 
provided
    VectorAdapter(const std::vector<T>& vec) : ptr(0), size(0), vec2(vec), vec(vec2) { }
    ^
/Users/Sabi/Development/Android-Development/JavaCV-Project/javacv/target/classes
/com/googlecode/javacv/cpp/jniopencv_features2d.cpp:279:5: note: candidate 
constructor not viable: requires single argument 'vec', but 2 arguments were 
provided
    VectorAdapter(      std::vector<T>& vec) : ptr(0), size(0), vec(vec) { }
    ^
/Users/Sabi/Development/Android-Development/JavaCV-Project/javacv/target/classes
/com/googlecode/javacv/cpp/jniopencv_features2d.cpp:274:59: note: candidate 
constructor (the implicit copy constructor) not viable: requires 1 argument, 
but 2 were provided
template<typename P, typename T = P> class JavaCPP_hidden VectorAdapter {
                                                          ^
/Users/Sabi/Development/Android-Development/JavaCV-Project/javacv/target/classes
/com/googlecode/javacv/cpp/jniopencv_features2d.cpp:2847:37: error: no matching 
constructor for initialization of 'VectorAdapter<CvMat *, cv::Mat>'
    VectorAdapter< CvMat*,cv::Mat > adapter3((const ::CvMat**)ptr3, size3);
                                    ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Sabi/Development/Android-Development/JavaCV-Project/javacv/target/classes
/com/googlecode/javacv/cpp/jniopencv_features2d.cpp:276:5: note: candidate 
constructor not viable: no known conversion from 'const ::CvMat **' (aka 'const 
CvMat **') to 'CvMat *const *' for 1st argument
    VectorAdapter(const P* ptr, typename std::vector<T>::size_type size) : ptr((P*)ptr), size(size),
    ^
/Users/Sabi/Development/Android-Development/JavaCV-Project/javacv/target/classes
/com/googlecode/javacv/cpp/jniopencv_features2d.cpp:278:5: note: candidate 
constructor not viable: requires single argument 'vec', but 2 arguments were 
provided
    VectorAdapter(const std::vector<T>& vec) : ptr(0), size(0), vec2(vec), vec(vec2) { }
    ^
/Users/Sabi/Development/Android-Development/JavaCV-Project/javacv/target/classes
/com/googlecode/javacv/cpp/jniopencv_features2d.cpp:279:5: note: candidate 
constructor not viable: requires single argument 'vec', but 2 arguments were 
provided
    VectorAdapter(      std::vector<T>& vec) : ptr(0), size(0), vec(vec) { }
    ^
/Users/Sabi/Development/Android-Development/JavaCV-Project/javacv/target/classes
/com/googlecode/javacv/cpp/jniopencv_features2d.cpp:274:59: note: candidate 
constructor (the implicit copy constructor) not viable: requires 1 argument, 
but 2 were provided
template<typename P, typename T = P> class JavaCPP_hidden VectorAdapter {
                                                          ^
/Users/Sabi/Development/Android-Development/JavaCV-Project/javacv/target/classes
/com/googlecode/javacv/cpp/jniopencv_features2d.cpp:2952:37: error: no matching 
constructor for initialization of 'VectorAdapter<CvMat *, cv::Mat>'
    VectorAdapter< CvMat*,cv::Mat > adapter3((const ::CvMat**)ptr3, size3);
                                    ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Sabi/Development/Android-Development/JavaCV-Project/javacv/target/classes
/com/googlecode/javacv/cpp/jniopencv_features2d.cpp:276:5: note: candidate 
constructor not viable: no known conversion from 'const ::CvMat **' (aka 'const 
CvMat **') to 'CvMat *const *' for 1st argument
    VectorAdapter(const P* ptr, typename std::vector<T>::size_type size) : ptr((P*)ptr), size(size),
    ^
/Users/Sabi/Development/Android-Development/JavaCV-Project/javacv/target/classes
/com/googlecode/javacv/cpp/jniopencv_features2d.cpp:278:5: note: candidate 
constructor not viable: requires single argument 'vec', but 2 arguments were 
provided
    VectorAdapter(const std::vector<T>& vec) : ptr(0), size(0), vec2(vec), vec(vec2) { }
    ^
/Users/Sabi/Development/Android-Development/JavaCV-Project/javacv/target/classes
/com/googlecode/javacv/cpp/jniopencv_features2d.cpp:279:5: note: candidate 
constructor not viable: requires single argument 'vec', but 2 arguments were 
provided
    VectorAdapter(      std::vector<T>& vec) : ptr(0), size(0), vec(vec) { }
    ^
/Users/Sabi/Development/Android-Development/JavaCV-Project/javacv/target/classes
/com/googlecode/javacv/cpp/jniopencv_features2d.cpp:274:59: note: candidate 
constructor (the implicit copy constructor) not viable: requires 1 argument, 
but 2 were provided
template<typename P, typename T = P> class JavaCPP_hidden VectorAdapter {

Original issue reported on code.google.com by sabirock...@gmail.com on 17 Mar 2014 at 7:55

Attachments:

GoogleCodeExporter commented 9 years ago
Yes, sorry about that. I forgot to update the code after making a few changes 
in JavaCPP. This revision should fix this:
http://code.google.com/p/javacv/source/detail?r=beb7137485d0b2cbc844b6362c4afcf2
39b5d2c0
Let me know if you come up with any other issues, and thanks for reporting!

Original comment by samuel.a...@gmail.com on 18 Mar 2014 at 11:51