Results 1 to 3 of 3

Thread: Error C1902 when using autodetected CDB debugger

  1. #1
    Join Date
    Oct 2016
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Error C1902 when using autodetected CDB debugger

    Hello,

    I am trying to setup the CDB debugger, but i get the error C1902 for each .cpp file in my project.
    I am using QT Creator 4.1.0 based on QT 5.7.0 MSVC2013, 32bit, built on August the 24th 2016, revision: 8c80a86266 on a Windows 10 64bit machine.
    I tried following kits:
    Desktop QT 5.7.0 MSVC2015_64bit with auto-detected CDB x64 debugger, the x86 debugger and GNU gdb 7.8 MinGW 4.9.1 32bit (out of curiousity), same result
    Desktop QT 5.6.1 MSVC2015 64bit with same debuggers.
    cmake is undefined.
    The compiler is the Microsoft Visual C++ Compiler 14.0 (x86_amd64)

    I tried with Clean Environment and with System Environment. Running is no problem, but with Debugging i get the C1902 error message.

    My Qbs Profile for 5.7.0 is architecture x86_64 target OS is windows with toolchain msvc.

    I installed the Windows SDK with sdksetup.exe and checked for a Microsoft Signature, the timestamp is friday the 29th of july 2016 of the installer.

    The PC is in a Policy Group with restrictions, i deactivated the antivirus software (kaspersky) - same result.

    I had a look into http://wiki.qt.io/Qt_Creator_Windows_Debugging and haven't found the qtcreatorcdbext64.dll and the link on this page is not working for me. Could this be the problem?


    Added after 10 minutes:


    Ok, after i cleared and rebuild the project again, some C1902 error vanished, there are still 4 left from the previous 8.


    Added after 20 minutes:


    Heres the Compile Output:

    16:23:43: The process "C:\Program Files (x86)\QT\Tools\QtCreator\bin\jom.exe" exited normally.
    16:23:43: Starting: "C:\Program Files (x86)\QT\Tools\QtCreator\bin\jom.exe"
    "C:\Program Files (x86)\QT\Tools\QtCreator\bin\jom.exe" -f Makefile.Debug
    cl -c -nologo -Zc:wchar_t -FS -Zc:strictStrings -Zc:throwingNew -Zi -MDd -GR -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -EHsc /Fddebug\MultiFTP.pdb -DUNICODE -DWIN32 -DWIN64 -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I..\MultiFTP -I. -I"..\..\..\..\Program Files (x86)\QT\5.7\msvc2015_64\include" -I"..\..\..\..\Program Files (x86)\QT\5.7\msvc2015_64\include\QtWidgets" -I"..\..\..\..\Program Files (x86)\QT\5.7\msvc2015_64\include\QtGui" -I"..\..\..\..\Program Files (x86)\QT\5.7\msvc2015_64\include\QtANGLE" -I"..\..\..\..\Program Files (x86)\QT\5.7\msvc2015_64\include\QtNetwork" -I"..\..\..\..\Program Files (x86)\QT\5.7\msvc2015_64\include\QtCore" -Idebug -I. -I"..\..\..\..\Program Files (x86)\QT\5.7\msvc2015_64\mkspecs\win32-msvc2015" -Fodebug\ @C:\Users\KNERIN~1\AppData\Local\Temp\switchwebpan el.obj.10656.31.jom
    switchwebpanel.cpp
    ..\MultiFTP\switchwebpanel.cpp: fatal error C1902: Fehler im Programmdatenbank-Manager. šberprfen Sie die Installation.
    jom: C:\Users\Public\software\MultiFTPDebug\Makefile.De bug [debug\switchwebpanel.obj] Error 2
    cl -c -nologo -Zc:wchar_t -FS -Zc:strictStrings -Zc:throwingNew -Zi -MDd -GR -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -EHsc /Fddebug\MultiFTP.pdb -DUNICODE -DWIN32 -DWIN64 -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I..\MultiFTP -I. -I"..\..\..\..\Program Files (x86)\QT\5.7\msvc2015_64\include" -I"..\..\..\..\Program Files (x86)\QT\5.7\msvc2015_64\include\QtWidgets" -I"..\..\..\..\Program Files (x86)\QT\5.7\msvc2015_64\include\QtGui" -I"..\..\..\..\Program Files (x86)\QT\5.7\msvc2015_64\include\QtANGLE" -I"..\..\..\..\Program Files (x86)\QT\5.7\msvc2015_64\include\QtNetwork" -I"..\..\..\..\Program Files (x86)\QT\5.7\msvc2015_64\include\QtCore" -Idebug -I. -I"..\..\..\..\Program Files (x86)\QT\5.7\msvc2015_64\mkspecs\win32-msvc2015" -Fodebug\ @C:\Users\KNERIN~1\AppData\Local\Temp\qtelnet.obj. 10656.62.jom
    qtelnet.cpp
    cl -c -nologo -Zc:wchar_t -FS -Zc:strictStrings -Zc:throwingNew -Zi -MDd -GR -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -EHsc /Fddebug\MultiFTP.pdb -DUNICODE -DWIN32 -DWIN64 -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I..\MultiFTP -I. -I"..\..\..\..\Program Files (x86)\QT\5.7\msvc2015_64\include" -I"..\..\..\..\Program Files (x86)\QT\5.7\msvc2015_64\include\QtWidgets" -I"..\..\..\..\Program Files (x86)\QT\5.7\msvc2015_64\include\QtGui" -I"..\..\..\..\Program Files (x86)\QT\5.7\msvc2015_64\include\QtANGLE" -I"..\..\..\..\Program Files (x86)\QT\5.7\msvc2015_64\include\QtNetwork" -I"..\..\..\..\Program Files (x86)\QT\5.7\msvc2015_64\include\QtCore" -Idebug -I. -I"..\..\..\..\Program Files (x86)\QT\5.7\msvc2015_64\mkspecs\win32-msvc2015" -Fodebug\ @C:\Users\KNERIN~1\AppData\Local\Temp\switchview.o bj.10656.93.jom
    cl -c -nologo -Zc:wchar_t -FS -Zc:strictStrings -Zc:throwingNew -Zi -MDd -GR -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -EHsc /Fddebug\MultiFTP.pdb -DUNICODE -DWIN32 -DWIN64 -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I..\MultiFTP -I. -I"..\..\..\..\Program Files (x86)\QT\5.7\msvc2015_64\include" -I"..\..\..\..\Program Files (x86)\QT\5.7\msvc2015_64\include\QtWidgets" -I"..\..\..\..\Program Files (x86)\QT\5.7\msvc2015_64\include\QtGui" -I"..\..\..\..\Program Files (x86)\QT\5.7\msvc2015_64\include\QtANGLE" -I"..\..\..\..\Program Files (x86)\QT\5.7\msvc2015_64\include\QtNetwork" -I"..\..\..\..\Program Files (x86)\QT\5.7\msvc2015_64\include\QtCore" -Idebug -I. -I"..\..\..\..\Program Files (x86)\QT\5.7\msvc2015_64\mkspecs\win32-msvc2015" -Fodebug\ @C:\Users\KNERIN~1\AppData\Local\Temp\dropwatcher. obj.10656.125.jom
    ..\MultiFTP\qtelnet.cpp: fatal error C1902: Fehler im Programmdatenbank-Manager. šberprfen Sie die Installation.
    switchview.cpp
    jom: C:\Users\Public\software\MultiFTPDebug\Makefile.De bug [debug\qtelnet.obj] Error 2
    ..\MultiFTP\switchview.cpp: fatal error C1902: Fehler im Programmdatenbank-Manager. šberprfen Sie die Installation.
    dropwatcher.cpp
    jom: C:\Users\Public\software\MultiFTPDebug\Makefile.De bug [debug\switchview.obj] Error 2
    ..\MultiFTP\dropwatcher.cpp: fatal error C1902: Fehler im Programmdatenbank-Manager. šberprfen Sie die Installation.
    jom: C:\Users\Public\software\MultiFTPDebug\Makefile.De bug [debug\dropwatcher.obj] Error 2
    jom: C:\Users\Public\software\MultiFTPDebug\Makefile [debug] Error 2
    16:23:43: The process "C:\Program Files (x86)\QT\Tools\QtCreator\bin\jom.exe" exited with code 2.
    Error while building/deploying project QTWidget (kit: Desktop Qt 5.7.0 MSVC2015_64bit)
    When executing step "Make"
    16:23:43: Elapsed time: 00:02.

    I have my project setup in the public user folder of the file system, because my user has a space in its name.
    Last edited by Eggi; 10th October 2016 at 16:39.

  2. #2
    Join Date
    Sep 2016
    Posts
    78
    Thanked 1 Time in 1 Post
    Qt products
    Qt5

    Default Re: Error C1902 when using autodetected CDB debugger

    Are you trying static build?

  3. #3
    Join Date
    Oct 2016
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Error C1902 when using autodetected CDB debugger

    I used the web installer and installed visual studio before i installed QT Creator and afterwards i installed the windows sdk.
    You want to say, that i should try static build? I read that it is recommended to use MinGW as environment. I had a look at this and there it says that the dynamic version is recommended for debugging. Atm i don't really need a static version, i have already deploployed my application on another machine, so i would like to stay at dynamic linking.

Similar Threads

  1. Qt won't build: Fatal error C1902, need help.
    By Lonatico in forum Installation and Deployment
    Replies: 0
    Last Post: 25th August 2013, 21:54
  2. Replies: 1
    Last Post: 19th January 2013, 06:08
  3. Debugger: None of the debugger engines [...] capable of debugging binaries
    By schludy in forum Installation and Deployment
    Replies: 1
    Last Post: 21st February 2012, 19:32
  4. Error using debugger in Linux
    By Frej in forum Qt Programming
    Replies: 0
    Last Post: 11th February 2010, 14:28
  5. Need Qt IDE with Debugger
    By rajeshs in forum General Discussion
    Replies: 3
    Last Post: 10th October 2007, 13:21

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.