Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Using OpenCV for Linux and Android

    Installation and Deployment
    3
    5
    276
    Loading More Posts
    • 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_95
      rami_95 last edited by

      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 ?

      jsulm 1 Reply Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion @rami_95 last edited by

        @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 Reply Quote 4
        • rami_95
          rami_95 last edited by

          @jsulm Thank you very much 😃

          Pablo J. Rogina 1 Reply Last reply Reply Quote 0
          • Pablo J. Rogina
            Pablo J. Rogina @rami_95 last edited by

            @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_95 1 Reply Last reply Reply Quote 3
            • rami_95
              rami_95 @Pablo J. Rogina last edited by

              @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 Reply Quote 0
              • First post
                Last post