Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. General Issues in using QT creator:
Forum Updated to NodeBB v4.3 + New Features

General Issues in using QT creator:

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 4 Posters 630 Views 2 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.
  • KiraK Offline
    KiraK Offline
    Kira
    wrote on last edited by Kira
    #1

    Hello everyone,
    Recently while using QT creator came across certain issue would like to know your opinion on the same:
    The issue are mainly based on the thread below which have been solved:
    https://forum.qt.io/topic/103330/issue-with-the-thread

    Issues:

    1. Unable to use the debug mode when included a library built in release mode.
      -> I am working on windows 10 platform recently i had to use tensorflow for which only release mode library was available.
      So when i included the library and run my program it debug mode it would give me an error: failed to initialized the gdb.
      Can anybody provide explanation for the issue ?

    2. When i used cout and qDebug() together. The cout element used to get printed first than randomly at any instant of time qDebug used to print its log.
      -> I have observed that cout endling with endl gets printed first than the qDebug.
      -> There are certain times for example when i use opencv along with qt to print some logs i needed cout for ex: size of an image.
      -> To print the qt logs for example if i need to get the QList element i used to qDebug(). At that time unordered logs created a lot of confusion.
      Is there any solution for the same ?

    3.Some time when i add a file to pro file the and build the program it doesn't gets included
    ->It often occur so i have to delete build folder and rebuild it for the files to get included.
    -> I came across certain forums which said that this was not required but the solution and explanation was not clear.

    KroMignonK aha_1980A 2 Replies Last reply
    0
    • KiraK Kira

      Hello everyone,
      Recently while using QT creator came across certain issue would like to know your opinion on the same:
      The issue are mainly based on the thread below which have been solved:
      https://forum.qt.io/topic/103330/issue-with-the-thread

      Issues:

      1. Unable to use the debug mode when included a library built in release mode.
        -> I am working on windows 10 platform recently i had to use tensorflow for which only release mode library was available.
        So when i included the library and run my program it debug mode it would give me an error: failed to initialized the gdb.
        Can anybody provide explanation for the issue ?

      2. When i used cout and qDebug() together. The cout element used to get printed first than randomly at any instant of time qDebug used to print its log.
        -> I have observed that cout endling with endl gets printed first than the qDebug.
        -> There are certain times for example when i use opencv along with qt to print some logs i needed cout for ex: size of an image.
        -> To print the qt logs for example if i need to get the QList element i used to qDebug(). At that time unordered logs created a lot of confusion.
        Is there any solution for the same ?

      3.Some time when i add a file to pro file the and build the program it doesn't gets included
      ->It often occur so i have to delete build folder and rebuild it for the files to get included.
      -> I came across certain forums which said that this was not required but the solution and explanation was not clear.

      KroMignonK Offline
      KroMignonK Offline
      KroMignon
      wrote on last edited by
      #2

      @Kira said in General Issues in using QT creator::

      Some time when i add a file to pro file the and build the program it doesn't gets included

      Which kind of file did you add c++/h file with SOURCES += or HEADERS += ?
      In this case, saving the project file should rerun qmake and so create a new Makefile.
      if not, simply right click on project and select Run qmake (or with Build/Run qmake)

      It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

      KiraK 1 Reply Last reply
      1
      • KroMignonK KroMignon

        @Kira said in General Issues in using QT creator::

        Some time when i add a file to pro file the and build the program it doesn't gets included

        Which kind of file did you add c++/h file with SOURCES += or HEADERS += ?
        In this case, saving the project file should rerun qmake and so create a new Makefile.
        if not, simply right click on project and select Run qmake (or with Build/Run qmake)

        KiraK Offline
        KiraK Offline
        Kira
        wrote on last edited by Kira
        #3

        @KroMignon : Ohhk sure. Will try :)

        1 Reply Last reply
        0
        • KiraK Kira

          Hello everyone,
          Recently while using QT creator came across certain issue would like to know your opinion on the same:
          The issue are mainly based on the thread below which have been solved:
          https://forum.qt.io/topic/103330/issue-with-the-thread

          Issues:

          1. Unable to use the debug mode when included a library built in release mode.
            -> I am working on windows 10 platform recently i had to use tensorflow for which only release mode library was available.
            So when i included the library and run my program it debug mode it would give me an error: failed to initialized the gdb.
            Can anybody provide explanation for the issue ?

          2. When i used cout and qDebug() together. The cout element used to get printed first than randomly at any instant of time qDebug used to print its log.
            -> I have observed that cout endling with endl gets printed first than the qDebug.
            -> There are certain times for example when i use opencv along with qt to print some logs i needed cout for ex: size of an image.
            -> To print the qt logs for example if i need to get the QList element i used to qDebug(). At that time unordered logs created a lot of confusion.
            Is there any solution for the same ?

          3.Some time when i add a file to pro file the and build the program it doesn't gets included
          ->It often occur so i have to delete build folder and rebuild it for the files to get included.
          -> I came across certain forums which said that this was not required but the solution and explanation was not clear.

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Kira said in General Issues in using QT creator::

          Unable to use the debug mode when included a library built in release mode.

          Under Windows, this is not supported. Debug and release libraries might use different (incompatible) versions of the C runtime which can lead to undefined behavior including crashes. That is the reason why Qt libraries exists as (large) Debug and (small) Release libs on Windows.

          Note that this is a general problem, not a Qt or Creator problem.

          Regards

          Qt has to stay free or it will die.

          1 Reply Last reply
          2
          • fcarneyF Offline
            fcarneyF Offline
            fcarney
            wrote on last edited by
            #5

            @aha_1980 said in General Issues in using QT creator::

            @Kira said in General Issues in using QT creator::

            Unable to use the debug mode when included a library built in release mode.

            Under Windows, this is not supported. Debug and release libraries might use different (incompatible) versions of the C runtime which can lead to undefined behavior including crashes. That is the reason why Qt libraries exists as (large) Debug and (small) Release libs on Windows.
            Note that this is a general problem, not a Qt or Creator problem.

            I assume this means statically linked libraries? Or does this apply to dlls as well? At some point a debug program has to access system dlls to run at all.

            C++ is a perfectly valid school of magic.

            aha_1980A 1 Reply Last reply
            0
            • fcarneyF fcarney

              @aha_1980 said in General Issues in using QT creator::

              @Kira said in General Issues in using QT creator::

              Unable to use the debug mode when included a library built in release mode.

              Under Windows, this is not supported. Debug and release libraries might use different (incompatible) versions of the C runtime which can lead to undefined behavior including crashes. That is the reason why Qt libraries exists as (large) Debug and (small) Release libs on Windows.
              Note that this is a general problem, not a Qt or Creator problem.

              I assume this means statically linked libraries? Or does this apply to dlls as well? At some point a debug program has to access system dlls to run at all.

              aha_1980A Offline
              aha_1980A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @fcarney said in General Issues in using QT creator::

              Or does this apply to dlls as well? At some point a debug program has to access system dlls to run at all.

              It does apply to DLLs. I cannot tell you more about this, you can google a bit around or see for example https://bugreports.qt.io/browse/QTCREATORBUG-21821

              And as said, it might work, it's just not guaranteed.

              System DLLs seems not to apply to this. Maybe system they are not affected because they are not using C++ ? I really cannot tell.

              Regards

              Qt has to stay free or it will die.

              1 Reply Last reply
              2
              • fcarneyF Offline
                fcarneyF Offline
                fcarney
                wrote on last edited by
                #7

                @aha_1980 said in General Issues in using QT creator::

                It does apply to DLLs.

                Dang it. I searched a bit and it comes down to runtime libraries using different representations for objects. I also found this. Thanks for setting us straight.

                C++ is a perfectly valid school of magic.

                1 Reply Last reply
                1
                • KiraK Offline
                  KiraK Offline
                  Kira
                  wrote on last edited by
                  #8

                  Thanks everyone for your replies

                  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