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

qdebug compile problem

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 463 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.
  • O Offline
    O Offline
    ofmrew
    wrote on 27 Dec 2021, 16:50 last edited by
    #1

    I have:
    in .pro QT += core gui
    in mainwindow.h #include <QDebug>

    in mainwindow.cpp qDeBug() << "Starting";

    When I compile:

    11:36:51: Running steps for project TryIntrinsics2...
    11:36:51: Configuration unchanged, skipping qmake step.
    11:36:51: Starting: "D:\Qt\Tools\mingw810_64\bin\mingw32-make.exe" -j16
    D:/Qt/Tools/mingw810_64/bin/mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory 'D:/QtPrograms/build-TryIntrinsics2-Desktop_Qt_6_2_0_MinGW_64_bit-Debug'
    g++ -c -fno-keep-inline-dllexport -mavx512f -g -std=gnu++1z -Wall -Wextra -Wextra -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I../TryIntrinsics2 -I. -I../../Qt/6.2.0/mingw81_64/include -I../../Qt/6.2.0/mingw81_64/include/QtWidgets -I../../Qt/6.2.0/mingw81_64/include/QtGui -I../../Qt/6.2.0/mingw81_64/include/QtCore -Idebug -I. -I/include -I../../Qt/6.2.0/mingw81_64/mkspecs/win32-g++ -o debug\mainwindow.o ..\TryIntrinsics2\mainwindow.cpp
    ..\TryIntrinsics2\mainwindow.cpp: In destructor 'virtual MainWindow::~MainWindow()':
    ..\TryIntrinsics2\mainwindow.cpp:17:1: error: 'qDeBug' was not declared in this scope
    qDeBug() << "Starting";
    ^~~~~~
    ..\TryIntrinsics2\mainwindow.cpp:17:1: note: suggested alternative: 'qDebug'
    qDeBug() << "Starting";
    ^~~~~~
    qDebug
    mingw32-make[1]: *** [Makefile.Debug:587: debug/mainwindow.o] Error 1
    mingw32-make[1]: Leaving directory 'D:/QtPrograms/build-TryIntrinsics2-Desktop_Qt_6_2_0_MinGW_64_bit-Debug'
    mingw32-make: *** [Makefile:45: debug] Error 2
    11:36:53: The process "D:\Qt\Tools\mingw810_64\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project TryIntrinsics2 (kit: Desktop Qt 6.2.0 MinGW 64-bit)
    When executing step "Make"
    11:36:53: Elapsed time: 00:02.

    What am I doing wrong>

    1 Reply Last reply
    0
    • O Offline
      O Offline
      ofmrew
      wrote on 27 Dec 2021, 17:00 last edited by
      #2

      I should add that I installed Win 11 after I had installed Qt6. If that helps--I had seen some internet post about reinstalling qt.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on 27 Dec 2021, 17:32 last edited by
        #3

        @ofmrew said in qdebug compile problem:

        ..\TryIntrinsics2\mainwindow.cpp:17:1: note: suggested alternative: 'qDebug'
        qDeBug() << "Starting";

        Isn't this enough information to fix your error?

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        1 Reply Last reply
        0
        • O Offline
          O Offline
          ofmrew
          wrote on 27 Dec 2021, 17:40 last edited by
          #4

          I now believe that it is not a QDeBug problem, but something in that particular program that is causing the problem. I tried two other old program and the qDeBug() worked. Sorry, I just jumped the gun on this.

          1 Reply Last reply
          0

          1/4

          27 Dec 2021, 16:50

          • Login

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