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. [Solved] Qt everywhere 5.3.2 source compile failure on beaglebone black with -DQT_NO_DEBUG_OUTPUT
Forum Updated to NodeBB v4.3 + New Features

[Solved] Qt everywhere 5.3.2 source compile failure on beaglebone black with -DQT_NO_DEBUG_OUTPUT

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 Posters 1.5k 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
    pgregory
    wrote on last edited by
    #1

    I'm planning on developing beaglebone debian 7.6 applications on a beaglebone black using Qt 5.3.2
    I compiled the qt everywhere 5.3.2 open source library fine on the beaglebone with the following configure options

    configure -v -opensource -confirm-license -prefix /usr/local/qt-5.3.2 -no-largefile -qt-zlib -qt-libpng -qt-libjpeg -no-nis -no-cups -opengl es2 -qt-xcb -qt-freetype -qt-xkbcommon -no-kms -v

    And it compiles and works fine.
    However, the terminal is overrun with debugging messages and it runs very slow.
    I attempted to turn off the debugging messages using the option:

    configure -v -opensource -confirm-license -prefix /usr/local/qt-5.3.2 -no-largefile -qt-zlib -qt-libpng -qt-libjpeg -no-nis -no-cups -opengl es2 -qt-xcb -qt-freetype -qt-xkbcommon -no-kms -v -DQT_NO_DEBUG_OUTPUT -DQT_NO_WARNING_OUTPUT

    Now it compiles until it reaches qtdeclarative/src/quick/scenegraph/coreapi/qsgbatchrenderer.cpp:

    src/qtdeclarative/src/quick/scenegraph/coreapi/qsgbatchrenderer.cpp:256:20: error: expected primary-expression before 'while'

    It bombs out trying to compile the line

        QDebug d = qDebug();
    

    I'm compiling with gcc version 4.6.3-14

    Any ideas on how to get the compile to work?
    Or another way to disable debug and warning console messages?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      There's a patch pending for 5.4 for that problem.

      In between you can comment the offending code since it's all debugging related and you don't seem interested

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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

        Commenting out the code that uses QDebug in a manner that throws exceptions when debug messages are turned off works.
        I successfully compiled the code with -DQT_NO_DEBUG_OUTPUT -DQT_NO_WARNING_OUTPUT.
        It runs without messages output to the console window.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Patch got in, so you'll be fine when 5.4 RC comes out

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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