Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7651177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T11:26:31+00:00 2026-05-31T11:26:31+00:00

I am struggling already a few hours with the problem of calling cv::imdecode() in

  • 0

I am struggling already a few hours with the problem of calling cv::imdecode() in my native code for Android using the prebuild libraries of the OpenCV 2.3.1.

Here is what I am trying to do. I have library that detects for now QR code in the image BarcodesLibrary which is built as a static library. And then I have written some wrappers for JNI which ensures the conversion between Java/C++ objects – these modules are packaged into shared library JNI_QRBarcodesLibrary and the BarcodesLibrary is also linked into it.

And now become the errors showed in this dump. Errors relate to the inserting highgui module and calling imdecode(). Just have to mention yet that everything compiles fine and libraries are sucessfully imported to the android without imdecode().

"Compile++ thumb : JNI_QRBarcodesLibrary <= JNI_QRBarcodesLibrary.cpp
"Compile++ thumb : JNI_QRBarcodesLibrary <= jDetectedMark.cpp
"Compile++ thumb : JNI_QRBarcodesLibrary <= jImage.cpp
"Compile++ thumb : JNI_QRBarcodesLibrary <= JNIWrapper.cpp
"Compile++ thumb : JNI_QRBarcodesLibrary <= jPoint.cpp
"Compile++ thumb : JNI_QRBarcodesLibrary <= jSize.cpp
"Compile++ thumb : BarcodesLibrary <= Image.cpp
"Compile++ thumb : BarcodesLibrary <= Barcode.cpp
"Compile++ thumb : BarcodesLibrary <= QrBarcode.cpp
Prebuilt       : libopencv_contrib.a <= ../OpenCV/libs/Android/armeabi/
Prebuilt       : libopencv_calib3d.a <= ../OpenCV/libs/Android/armeabi/
Prebuilt       : libopencv_objdetect.a <= ../OpenCV/libs/Android/armeabi/
Prebuilt       : libopencv_features2d.a <= ../OpenCV/libs/Android/armeabi/
Prebuilt       : libopencv_video.a <= ../OpenCV/libs/Android/armeabi/
Prebuilt       : libopencv_imgproc.a <= ../OpenCV/libs/Android/armeabi/
Prebuilt       : libopencv_highgui.a <= ../OpenCV/libs/Android/armeabi/
Prebuilt       : libopencv_ml.a <= ../OpenCV/libs/Android/armeabi/
Prebuilt       : libopencv_legacy.a <= ../OpenCV/libs/Android/armeabi/
Prebuilt       : libopencv_flann.a <= ../OpenCV/libs/Android/armeabi/
Prebuilt       : libopencv_core.a <= ../OpenCV/libs/Android/armeabi/
Prebuilt       : lib3rdparty_libjpeg.a <= ../OpenCV/libs/Android/armeabi/
Prebuilt       : lib3rdparty_libpng.a <= ../OpenCV/libs/Android/armeabi/
Prebuilt       : lib3rdparty_libtiff.a <= ../OpenCV/libs/Android/armeabi/
Prebuilt       : lib3rdparty_libjasper.a <= ../OpenCV/libs/Android/armeabi/
Prebuilt       : lib3rdparty_zlib.a <= ../OpenCV/libs/Android/armeabi/
Prebuilt       : libgnustl_static.a <= <NDK>/sources/cxx-stl/gnu-libstdc++/libs/armeabi
StaticLibrary  : libBarcodesLibrary.a
SharedLibrary  : libJNI_QRBarcodesLibrary.so

And the build ends with this error:

./obj/local/armeabi/libopencv_highgui.a(grfmt_pxm.o):(.data.rel.ro+0x0): undefined reference to `vtable for __cxxabiv1::__enum_type_info'
./obj/local/armeabi/libopencv_highgui.a(bitstrm.o):(.data.rel.ro+0x0): undefined reference to `vtable for __cxxabiv1::__enum_type_info'
collect2: ld returned 1 exit status
make: *** [obj/local/armeabi/libJNI_QRBarcodesLibrary.so] Error 1

Well I was expecting that not all features inside this library will be supported while this library provides the OS dependent imshow, waitKey etc. But that it will be problem with the imdecode is what I was not counted with.

So do you have any ideas how to solve this problem or any other libraries that can be ported to Android and provide image decoding – especially JPEG format?

I am grateful for any tips. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T11:26:32+00:00Added an answer on May 31, 2026 at 11:26 am

    Use OpenCV.mk from OpenCV distribution for adding OpenCV into your project. It will resolve all the dependencies.

    If you are using OpenCV prebuilt binaries from SourceForge, then you can find this file in share/OpenCV subfolder. You need to include OpenCV.mk directly from that folder.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Already a few hours I am struggling with the storing time into database table.
Been struggling with this simple selector problem a couple of hours now and must
I'm struggling since a few hours with this design question. In Cocoa for example,
I've been struggling with this for a few hours. Everything just stopped working and
The problem is simple, but I'm struggling a bit already. Server server = new
I have been struggling with this jQuery Validation Plugin. Here is the code: <script
I am struggling with a Scala implicit conversion problem. The following code snippet illustrates
i'm struggling with display/hide text using javascript here. Here is what i wanted to
im struggling with syntax here: hopefully this question is v simple, im just miising
Im struggling here for a lot, Im trying to upload an image from iphone

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.