Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Using OpenCV for Linux and Android

Using OpenCV for Linux and Android

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 3 Posters 673 Views
  • 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.
  • R Offline
    R Offline
    rami_95
    wrote on 16 Jul 2019, 10:53 last edited by
    #1

    Hello everyone,

    I've built opencv for Linux and managed to use it to make an application on computer but i would like to run the application also on Android devices.

    So my question is, since Qt is a cross-platform framework, is it possible to run opencv applications simply on Android or should i build opencv again for android ??
    Because all i found on the internet was some sort of opencv android sdk like this one which doesn't include CMakeList file, that's why i couldn't compile it with CMake.

    Can anyone help me please or give me a helpful link for the setup ?

    J 1 Reply Last reply 16 Jul 2019, 11:03
    0
    • R rami_95
      16 Jul 2019, 10:53

      Hello everyone,

      I've built opencv for Linux and managed to use it to make an application on computer but i would like to run the application also on Android devices.

      So my question is, since Qt is a cross-platform framework, is it possible to run opencv applications simply on Android or should i build opencv again for android ??
      Because all i found on the internet was some sort of opencv android sdk like this one which doesn't include CMakeList file, that's why i couldn't compile it with CMake.

      Can anyone help me please or give me a helpful link for the setup ?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 16 Jul 2019, 11:03 last edited by
      #2

      @rami_95 I think you will have to build OpenCV for Android.
      Take a look at https://opencv.org/android/

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      4
      • R Offline
        R Offline
        rami_95
        wrote on 16 Jul 2019, 12:00 last edited by
        #3

        @jsulm Thank you very much 😃

        P 1 Reply Last reply 16 Jul 2019, 13:39
        0
        • R rami_95
          16 Jul 2019, 12:00

          @jsulm Thank you very much 😃

          P Offline
          P Offline
          Pablo J. Rogina
          wrote on 16 Jul 2019, 13:39 last edited by
          #4

          @rami_95 you may want to check Amin Ahmadi's blog regarding build OpenCV for Android yourself, and more important chcking out some examples about integrating Qt and OpenCV for such platform.

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          R 1 Reply Last reply 16 Jul 2019, 15:58
          3
          • P Pablo J. Rogina
            16 Jul 2019, 13:39

            @rami_95 you may want to check Amin Ahmadi's blog regarding build OpenCV for Android yourself, and more important chcking out some examples about integrating Qt and OpenCV for such platform.

            R Offline
            R Offline
            rami_95
            wrote on 16 Jul 2019, 15:58 last edited by
            #5

            @Pablo-J.-Rogina Thank you very much Pablo 😃 the blog was really helpful and explained every step.
            One last problem remained .. the setup breaks at 38% when building dependencies for core. It seems that some files may have a bug but i really doubt about that.
            The errors are:

            • 'to_string' is not a member of 'std'
            • control reaches end of non-void function [Werror=return-type]

            I'll try the version of OpenCV that Amin Ahmadi recommended in the blog and hope that it works.

            1 Reply Last reply
            0

            5/5

            16 Jul 2019, 15:58

            • Login

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