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. Unable to deploy any application on Android - QDebug errors
Forum Updated to NodeBB v4.3 + New Features

Unable to deploy any application on Android - QDebug errors

Scheduled Pinned Locked Moved Solved Installation and Deployment
6 Posts 2 Posters 1.3k Views 1 Watching
  • 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.
  • P Offline
    P Offline
    PaperMoon
    wrote on last edited by
    #1

    Hi,

    I am unable to deploy any Qt application on Android. Most of the errors are related to QDebug. Debugging is turned 'on' on the device.

    Please help. Is there some other setting that needs to be changed/edited/configured?
    Thanks for any inputs.
    'QDebug' does not name a type
    'QDebug' has not been declared
    'QtDebugMsg' was not declared in this scope

    Dev environment

    • Linux Debian

    • Qt - 5.7

    • Android - 5.1

    • ABI - armeabi-v7a

    • GCC - 4.9

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2
      #include <QDebug>
      

      Add this include in relevant c++ files and it should work.

      (Z(:^

      1 Reply Last reply
      1
      • P Offline
        P Offline
        PaperMoon
        wrote on last edited by
        #3

        I tried that. Although there are no explicit calls to qDebug.
        I tried Qt examples to test my dev environment.

        Last example that I tried - googlesuggest 0_1510035574763_qDebugErrorSnapshot.png

        The errors are emitting from Qt core files e.g.
        qobject.h
        qmetatype.h

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Hm, that's unusual. Try reinstalling Qt perhaps?

          (Z(:^

          P 1 Reply Last reply
          1
          • P Offline
            P Offline
            PaperMoon
            wrote on last edited by
            #5

            Reinstalling Qt with latest version. Will update how it goes. Thanks!

            1 Reply Last reply
            0
            • sierdzioS sierdzio

              Hm, that's unusual. Try reinstalling Qt perhaps?

              P Offline
              P Offline
              PaperMoon
              wrote on last edited by
              #6

              @sierdzio Thanks. Reinstalling Qt solved the problem.

              1 Reply Last reply
              1

              • Login

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