Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when build native wrapper OpenCvSharpExtern #1708

Open
contisummer opened this issue Sep 25, 2024 · 0 comments
Open

error when build native wrapper OpenCvSharpExtern #1708

contisummer opened this issue Sep 25, 2024 · 0 comments

Comments

@contisummer
Copy link

Summary of your issue

Environment

ubuntu22.04

What did you do when you faced the problem?

when I Build native wrapper OpenCvSharpExtern:
cd opencvsharp/src
mkdir build
cd build
cmake ..
make -j

Example code:

no code

Output:

It has error: logs as elow:
uif17693@uif17693:~/opencvsharp/src/build$ make -j2
Consolidate compiler generated dependencies of target OpenCvSharpExtern
[  2%] Building CXX object OpenCvSharpExtern/CMakeFiles/OpenCvSharpExtern.dir/aruco.cpp.o
[  5%] Building CXX object OpenCvSharpExtern/CMakeFiles/OpenCvSharpExtern.dir/bgsegm.cpp.o
In file included from /home/uif17693/opencvsharp/src/OpenCvSharpExtern/aruco.cpp:1:
/home/uif17693/opencvsharp/src/OpenCvSharpExtern/aruco.h: In function ‘cv::aruco::DetectorParameters cpp(const aruco_DetectorParameters&)’:
/home/uif17693/opencvsharp/src/OpenCvSharpExtern/aruco.h:80:12: error: ‘struct cv::aruco::DetectorParameters’ has no member named ‘useAruco3Detection’
   80 |         pp.useAruco3Detection = p.useAruco3Detection;
      |            ^~~~~~~~~~~~~~~~~~
/home/uif17693/opencvsharp/src/OpenCvSharpExtern/aruco.h:81:12: error: ‘struct cv::aruco::DetectorParameters’ has no member named ‘minSideLengthCanonicalImg’
   81 |         pp.minSideLengthCanonicalImg = p.minSideLengthCanonicalImg;
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/uif17693/opencvsharp/src/OpenCvSharpExtern/aruco.h:82:12: error: ‘struct cv::aruco::DetectorParameters’ has no member named ‘minMarkerLengthRatioOriginalImg’
   82 |         pp.minMarkerLengthRatioOriginalImg = p.minMarkerLengthRatioOriginalImg;
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/uif17693/opencvsharp/src/OpenCvSharpExtern/aruco.cpp:1:
/home/uif17693/opencvsharp/src/OpenCvSharpExtern/aruco.h: In function ‘ExceptionStatus aruco_readDictionary(const char*, cv::aruco::Dictionary**)’:
/home/uif17693/opencvsharp/src/OpenCvSharpExtern/aruco.h:158:34: error: ‘class cv::aruco::Dictionary’ has no member named ‘readDictionary’; did you mean ‘Dictionary’?
  158 |         auto result = dictionary.readDictionary(rootNode);
      |                                  ^~~~~~~~~~~~~~
      |                                  Dictionary
/home/uif17693/opencvsharp/src/OpenCvSharpExtern/aruco.h: In function ‘ExceptionStatus aruco_Dictionary_generateImageMarker(cv::aruco::Dictionary*, int, int, cv::_OutputArray*, int)’:
/home/uif17693/opencvsharp/src/OpenCvSharpExtern/aruco.h:238:14: error: ‘class cv::aruco::Dictionary’ has no member named ‘generateImageMarker’
  238 |         obj->generateImageMarker(id, sidePixels, *img, borderBits);
      |              ^~~~~~~~~~~~~~~~~~~
make[2]: *** [OpenCvSharpExtern/CMakeFiles/OpenCvSharpExtern.dir/build.make:76: OpenCvSharpExtern/CMakeFiles/OpenCvSharpExtern.dir/aruco.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:98: OpenCvSharpExtern/CMakeFiles/OpenCvSharpExtern.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
uif17693@uif17693:~/opencvsharp/src/build$ 

What did you intend to be?

How to solve the error ?Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant