PDA

View Full Version : Error C1902 when using autodetected CDB debugger



Eggi
10th October 2016, 16:39
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.

davinciomare
10th October 2016, 20:06
Are you trying static build?

Eggi
11th October 2016, 07:25
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 (https://wiki.qt.io/Building_a_static_Qt_for_Windows_using_MinGW) 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.