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
QtWS25 Last Chance

Using OpenCV for Linux and Android

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 3 Posters 669 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.
  • rami_95R Offline
    rami_95R Offline
    rami_95
    wrote on 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 ?

    jsulmJ 1 Reply Last reply
    0
    • rami_95R rami_95

      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 ?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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
      • rami_95R Offline
        rami_95R Offline
        rami_95
        wrote on last edited by
        #3

        @jsulm Thank you very much 😃

        Pablo J. RoginaP 1 Reply Last reply
        0
        • rami_95R rami_95

          @jsulm Thank you very much 😃

          Pablo J. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on 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

          rami_95R 1 Reply Last reply
          3
          • Pablo J. RoginaP Pablo J. Rogina

            @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.

            rami_95R Offline
            rami_95R Offline
            rami_95
            wrote on 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

            • Login

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