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. Camera access in Android Device

Camera access in Android Device

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 3 Posters 1.9k 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.
  • VineelaV Offline
    VineelaV Offline
    Vineela
    wrote on last edited by
    #1

    I'm not able to access android camera in my Qt widget application..i tried QCamera API it's returning error in Debug shown as below

    D libCamera.so: ../Camera/main.cpp:13 (int main(int, char**)): hi
    W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqgif.so: unsupported flags DT_FLAGS_1=0x81
    W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqicns.so: unsupported flags DT_FLAGS_1=0x81
    W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqico.so: unsupported flags DT_FLAGS_1=0x81
    W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqjpeg.so: unsupported flags DT_FLAGS_1=0x81
    W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqtga.so: unsupported flags DT_FLAGS_1=0x81
    W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqtiff.so: unsupported flags DT_FLAGS_1=0x81
    W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqwbmp.so: unsupported flags DT_FLAGS_1=0x81
    W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqwebp.so: unsupported flags DT_FLAGS_1=0x81
    W libCamera.so: (null):0 ((null)): The video surface is not compatible with any format supported by the camera
    V BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@42a0529
    D Camera : app passed NULL surface
    D Camera : app passed NULL surface
    W libCamera.so: (null):0 ((null)): The video surface is not compatible with any format supported by the camera
    D Camera : app passed NULL surface
    D Camera : app passed NULL surface

    "org.qtproject.example" died.

    jsulmJ M 2 Replies Last reply
    0
    • VineelaV Vineela

      I'm not able to access android camera in my Qt widget application..i tried QCamera API it's returning error in Debug shown as below

      D libCamera.so: ../Camera/main.cpp:13 (int main(int, char**)): hi
      W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqgif.so: unsupported flags DT_FLAGS_1=0x81
      W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqicns.so: unsupported flags DT_FLAGS_1=0x81
      W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqico.so: unsupported flags DT_FLAGS_1=0x81
      W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqjpeg.so: unsupported flags DT_FLAGS_1=0x81
      W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqtga.so: unsupported flags DT_FLAGS_1=0x81
      W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqtiff.so: unsupported flags DT_FLAGS_1=0x81
      W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqwbmp.so: unsupported flags DT_FLAGS_1=0x81
      W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqwebp.so: unsupported flags DT_FLAGS_1=0x81
      W libCamera.so: (null):0 ((null)): The video surface is not compatible with any format supported by the camera
      V BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@42a0529
      D Camera : app passed NULL surface
      D Camera : app passed NULL surface
      W libCamera.so: (null):0 ((null)): The video surface is not compatible with any format supported by the camera
      D Camera : app passed NULL surface
      D Camera : app passed NULL surface

      "org.qtproject.example" died.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Vineela Does your app have the permission to use the camera?

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

      VineelaV 1 Reply Last reply
      3
      • VineelaV Vineela

        I'm not able to access android camera in my Qt widget application..i tried QCamera API it's returning error in Debug shown as below

        D libCamera.so: ../Camera/main.cpp:13 (int main(int, char**)): hi
        W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqgif.so: unsupported flags DT_FLAGS_1=0x81
        W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqicns.so: unsupported flags DT_FLAGS_1=0x81
        W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqico.so: unsupported flags DT_FLAGS_1=0x81
        W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqjpeg.so: unsupported flags DT_FLAGS_1=0x81
        W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqtga.so: unsupported flags DT_FLAGS_1=0x81
        W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqtiff.so: unsupported flags DT_FLAGS_1=0x81
        W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqwbmp.so: unsupported flags DT_FLAGS_1=0x81
        W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqwebp.so: unsupported flags DT_FLAGS_1=0x81
        W libCamera.so: (null):0 ((null)): The video surface is not compatible with any format supported by the camera
        V BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@42a0529
        D Camera : app passed NULL surface
        D Camera : app passed NULL surface
        W libCamera.so: (null):0 ((null)): The video surface is not compatible with any format supported by the camera
        D Camera : app passed NULL surface
        D Camera : app passed NULL surface

        "org.qtproject.example" died.

        M Offline
        M Offline
        mvuori
        wrote on last edited by
        #3

        The problem is as the message tells: "The video surface is not compatible with any format supported by the camera"
        Try putting QVideoFrame::Format_NV21 in the list of supported formats

        VineelaV 1 Reply Last reply
        1
        • jsulmJ jsulm

          @Vineela Does your app have the permission to use the camera?

          VineelaV Offline
          VineelaV Offline
          Vineela
          wrote on last edited by
          #4

          @jsulm Yes I've added other files where in Android Manifest.xml I've given permission like,

          android.permission.CAMERA

          So, is there anything else to add with, to make it work?

          jsulmJ 1 Reply Last reply
          0
          • VineelaV Vineela

            @jsulm Yes I've added other files where in Android Manifest.xml I've given permission like,

            android.permission.CAMERA

            So, is there anything else to add with, to make it work?

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Vineela Take a look at what @mvuori wrote

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

            1 Reply Last reply
            0
            • M mvuori

              The problem is as the message tells: "The video surface is not compatible with any format supported by the camera"
              Try putting QVideoFrame::Format_NV21 in the list of supported formats

              VineelaV Offline
              VineelaV Offline
              Vineela
              wrote on last edited by
              #6

              @mvuori How can I use it ? Any examples coz I'm a beginner to Qt...

              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