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
Forum Updated to NodeBB v4.3 + New Features

Camera access in Android Device

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 3 Posters 2.0k 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.
  • V Offline
    V Offline
    Vineela
    wrote on 30 Jul 2018, 12:07 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.

    J M 2 Replies Last reply 30 Jul 2018, 12:42
    0
    • V Vineela
      30 Jul 2018, 12:07

      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.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 30 Jul 2018, 12:42 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

      V 1 Reply Last reply 31 Jul 2018, 04:54
      3
      • V Vineela
        30 Jul 2018, 12:07

        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 30 Jul 2018, 18:56 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

        V 1 Reply Last reply 31 Jul 2018, 07:26
        1
        • J jsulm
          30 Jul 2018, 12:42

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

          V Offline
          V Offline
          Vineela
          wrote on 31 Jul 2018, 04:54 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?

          J 1 Reply Last reply 31 Jul 2018, 04:54
          0
          • V Vineela
            31 Jul 2018, 04:54

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

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 31 Jul 2018, 04:54 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
              30 Jul 2018, 18:56

              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

              V Offline
              V Offline
              Vineela
              wrote on 31 Jul 2018, 07:26 last edited by
              #6

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

              1 Reply Last reply
              0

              6/6

              31 Jul 2018, 07:26

              • Login

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