Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. command line app (debug only) links to QtCored.dll?
Forum Updated to NodeBB v4.3 + New Features

command line app (debug only) links to QtCored.dll?

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
5 Posts 4 Posters 941 Views 3 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.
  • D Offline
    D Offline
    davecotter
    wrote on last edited by
    #1

    I have an app that's command line only, does NOT use QtCore. In fact, here are the first 2 lines of the .pro file:

    QT -= qtcore
    QT -= gui
    

    the release app runs fine, but when i run the debug app, i get this:

    0_1535952060954_Screen Shot 2018-09-02 at 10.08.41 PM.png

    And I'm all like, what you talkin' bout? Indeed, if i stick "QtCored.dll" there, manually, the app runs. But why? I specifically do NOT want it.

    JKSHJ 1 Reply Last reply
    0
    • D davecotter

      I have an app that's command line only, does NOT use QtCore. In fact, here are the first 2 lines of the .pro file:

      QT -= qtcore
      QT -= gui
      

      the release app runs fine, but when i run the debug app, i get this:

      0_1535952060954_Screen Shot 2018-09-02 at 10.08.41 PM.png

      And I'm all like, what you talkin' bout? Indeed, if i stick "QtCored.dll" there, manually, the app runs. But why? I specifically do NOT want it.

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by JKSH
      #3

      @aha_1980's solution is correct.

      @davecotter said in command line app (debug only) links to QtCored.dll?:

      QT -= qtcore
      

      For the record, the variable is core, not qtcore

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      3
      • aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #2

        @davecotter said in command line app (debug only) links to QtCored.dll?:

        But why? I specifically do NOT want it.

        Then simply replace the two lines with: CONFIG -= QT.

        Regards

        Qt has to stay free or it will die.

        1 Reply Last reply
        3
        • D davecotter

          I have an app that's command line only, does NOT use QtCore. In fact, here are the first 2 lines of the .pro file:

          QT -= qtcore
          QT -= gui
          

          the release app runs fine, but when i run the debug app, i get this:

          0_1535952060954_Screen Shot 2018-09-02 at 10.08.41 PM.png

          And I'm all like, what you talkin' bout? Indeed, if i stick "QtCored.dll" there, manually, the app runs. But why? I specifically do NOT want it.

          JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by JKSH
          #3

          @aha_1980's solution is correct.

          @davecotter said in command line app (debug only) links to QtCored.dll?:

          QT -= qtcore
          

          For the record, the variable is core, not qtcore

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          3
          • D Offline
            D Offline
            davecotter
            wrote on last edited by
            #4

            as @JKSH pointed out, i needed this line:

            QT -= core
            

            instead of the line that i had. I would have marked yours as the answer, but this forum software ONLY alows me to mark my OWN answers as an answer. go figure.

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

              @davecotter said in command line app (debug only) links to QtCored.dll?:

              as @JKSH pointed out, i needed this line:

              QT -= core
              

              instead of the line that i had. I would have marked yours as the answer, but this forum software ONLY alows me to mark my OWN answers as an answer. go figure.

              Fixed

              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