Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [solved]How do I configure Qt 5.3 for Android opencv 2.4.9 ? (on mac os x)
Forum Updated to NodeBB v4.3 + New Features

[solved]How do I configure Qt 5.3 for Android opencv 2.4.9 ? (on mac os x)

Scheduled Pinned Locked Moved Mobile and Embedded
21 Posts 4 Posters 12.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #6

    There's something that puzzles me, why do you have

    @CONFIG+=link_pkgconfig PKGCONFIG+=opencv@

    since you already link to the static libraries ?

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
    • I Offline
      I Offline
      ismail_gz
      wrote on last edited by
      #7

      You're right but I already deleted that line. Despite this occurred error.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #8

        Did you do a full rebuild ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • I Offline
          I Offline
          ismail_gz
          wrote on last edited by
          #9

          Yes, I did

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #10

            Re-reading your error, it seems you are using a method that is not implement for android. Can you share the OpenCV code you are using ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • I Offline
              I Offline
              ismail_gz
              wrote on last edited by
              #11

              it's a simple code:

              @#include "opencv2/opencv.hpp"
              #include "opencv2/highgui/highgui.hpp"

              using namespace cv;

              int main(int argc, char *argv[])
              {
              namedWindow("output",1);
              Mat output = Mat::zeros(120,350,CV_8UC3);
              putText(output,"Hello world :)", cvPoint(15,70), FONT_HERSHEY_PLAIN,3,cvScalar(0,255,0),4);
              imshow("Output",output);
              waitKey(0);
              return 0;
              }@

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #12

                Wild guess but I'd say that either namedWindow, imshow or both are not implemented for android

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • I Offline
                  I Offline
                  ismail_gz
                  wrote on last edited by
                  #13

                  Could you recommend a sample code.

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #14

                    Not really, since you are currently using OpenCV only code, you should rather ask on the OpenCV forum for their support on android

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • J Offline
                      J Offline
                      johnthesoftware
                      wrote on last edited by
                      #15

                      Did you resolve this? I'm about to try the same thing on Fedora.

                      1 Reply Last reply
                      0
                      • J Offline
                        J Offline
                        johnthesoftware
                        wrote on last edited by
                        #16

                        Did you resolve this? I'm about to try the same thing on Fedora.

                        1 Reply Last reply
                        0
                        • I Offline
                          I Offline
                          ismail_gz
                          wrote on last edited by
                          #17

                          No, I couldn't yet. My main problem is sample code at the moment. I couldn't find sample code about this subject. But I found configurations from this "link":http://stackoverflow.com/questions/27562311/how-to-integrate-opencv-into-qt-creator-android-project
                          I hope that helps.

                          1 Reply Last reply
                          0
                          • I Offline
                            I Offline
                            ismail_gz
                            wrote on last edited by
                            #18

                            No, I couldn't yet. My main problem is sample code at the moment. I couldn't find sample code about this subject. But I found configurations from this "link":http://stackoverflow.com/questions/27562311/how-to-integrate-opencv-into-qt-creator-android-project
                            I hope that helps.

                            1 Reply Last reply
                            0
                            • I Offline
                              I Offline
                              ismail_gz
                              wrote on last edited by
                              #19

                              Finally, I found it. Configurations are my previous reply. And you must copy libnative_camera_r4.2.0.so(must be compatible with the your android version(this is important)) to project_root/android/libs/armeabi-v7a/ .
                              Then you can watch "this":https://www.youtube.com/watch?v=0ONxIy8itRA video for source code.

                              1 Reply Last reply
                              0
                              • I Offline
                                I Offline
                                ismail_gz
                                wrote on last edited by
                                #20

                                Finally, I found it. Configurations are my previous reply. And you must copy libnative_camera_r4.2.0.so(must be compatible with the your android version(this is important)) to project_root/android/libs/armeabi-v7a/ .
                                Then you can watch "this":https://www.youtube.com/watch?v=0ONxIy8itRA video for source code.

                                1 Reply Last reply
                                0
                                • A Offline
                                  A Offline
                                  amahta
                                  wrote on last edited by
                                  #21

                                  This is already solved but anyway here is how I do it all the time:
                                  http://amin-ahmadi.com/2015/06/23/opencv-qt-android-adding-required-libraries-and-includes/

                                  Thou shalt programme
                                  http://www.amin-ahmadi.com

                                  1 Reply Last reply
                                  0

                                  • Login

                                  • Login or register to search.
                                  • First post
                                    Last post
                                  0
                                  • Categories
                                  • Recent
                                  • Tags
                                  • Popular
                                  • Users
                                  • Groups
                                  • Search
                                  • Get Qt Extensions
                                  • Unsolved