[En-Nut-Discussion] New qnutconf feature: Hide disabled items

Harald Kipp harald.kipp at egnite.de
Fri Nov 18 09:39:53 CET 2011


Hi Thiago,

On 17.11.2011 21:15, Thiago A. Corrêa wrote:
> On Thu, Nov 17, 2011 at 5:29 PM, Harald Kipp <harald.kipp at egnite.de> wrote:
>> Using MSVC 2010, I had to replace NUTCONF_VERSION_STR in mainwindow.cpp
>> by "3.1.0". I think, Ulrich reported this already.
> 
> I'm using MSVC2010 as well. The constant wasn't updated? Since the
> value comes from qnutconf.pro, the project has to be regenerated for
> it to take, either using the Qt VS plugin or qmake in the command
> line.

I'm not using the Qt plug-in, but a Makefile project. Rebuild produces:

1>------ Rebuild All started: Project: qnutconf, Configuration: Release Win32 ------
1>Build started 18.11.2011 09:37:23.
1>CoreClean:
1>  
1>  Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
1>  Copyright (C) Microsoft Corporation.  All rights reserved.
1>  
1>  	del release\moc_builder.cpp release\moc_finddialog.cpp release\moc_mainwindow.cpp release\moc_nutcomponentdelegate.cpp release\moc_nutcomponentmodel.cpp release\moc_nutcomponentmodelfilterproxy.cpp release\moc_nutcomponentdetailsmodel.cpp release\moc_settings.cpp release\moc_settingsdialog.cpp
1>  	del release\qrc_qnutconf.cpp
1>  	del ui_mainwindow.h ui_settingsdialog.h ui_finddialog.h
1>  	del release\builder.obj release\dirtraverser.obj release\finddialog.obj release\main.obj release\mainwindow.obj release\nutcomponent.obj release\nutcomponentdelegate.obj release\nutcomponentmodel.obj release\nutcomponentmodelfilterproxy.obj release\nutcomponentdetailsmodel.obj release\nutcomponentmodel_p.obj release\settings.obj release\settingsdialog.obj release\systeminfo.obj release\lapi.obj release\lauxlib.obj release\lbaselib.obj release\lcode.obj release\ldblib.obj release\ldebug.obj release\ldo.obj release\ldump.obj release\lfunc.obj release\lgc.obj release\linit.obj release\liolib.obj release\llex.obj release\lmathlib.obj release\lmem.obj release\loadlib.obj release\lobject.obj release\lopcodes.obj release\loslib.obj release\lparser.obj release\lstate.obj release\lstring.obj release\lstrlib.obj release\ltable.obj release\ltablib.obj release\ltm.obj release\lundump.obj release\lvm.obj release\lzio.obj release\print.obj release\moc_builder.obj release\moc_finddial
og.obj release\moc_mainwindow.obj release\moc_nutcomponentdelegate.obj release\moc_nutcomponentmodel.obj release\moc_nutcomponentmodelfilterproxy.obj release\moc_nutcomponentdetailsmodel.obj release\moc_settings.obj release\moc_settingsdialog.obj release\qrc_qnutconf.obj
1>  	del release\qnutconf.intermediate.manifest release\qnutconf3.exp
1>  Could Not Find C:\proj\work\qnutconf\release\qnutconf.intermediate.manifest
1>  	del release\qnutconf.res
1>Rebuild:
1>  
1>  Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
1>  Copyright (C) Microsoft Corporation.  All rights reserved.
1>  
1>  	del release\moc_builder.cpp release\moc_finddialog.cpp release\moc_mainwindow.cpp release\moc_nutcomponentdelegate.cpp release\moc_nutcomponentmodel.cpp release\moc_nutcomponentmodelfilterproxy.cpp release\moc_nutcomponentdetailsmodel.cpp release\moc_settings.cpp release\moc_settingsdialog.cpp
1>  Could Not Find C:\proj\work\qnutconf\release\moc_builder.cpp
1>  	del release\qrc_qnutconf.cpp
1>  Could Not Find C:\proj\work\qnutconf\release\qrc_qnutconf.cpp
1>  	del ui_mainwindow.h ui_settingsdialog.h ui_finddialog.h
1>  Could Not Find C:\proj\work\qnutconf\ui_mainwindow.h
1>  	del release\builder.obj release\dirtraverser.obj release\finddialog.obj release\main.obj release\mainwindow.obj release\nutcomponent.obj release\nutcomponentdelegate.obj release\nutcomponentmodel.obj release\nutcomponentmodelfilterproxy.obj release\nutcomponentdetailsmodel.obj release\nutcomponentmodel_p.obj release\settings.obj release\settingsdialog.obj release\systeminfo.obj release\lapi.obj release\lauxlib.obj release\lbaselib.obj release\lcode.obj release\ldblib.obj release\ldebug.obj release\ldo.obj release\ldump.obj release\lfunc.obj release\lgc.obj release\linit.obj release\liolib.obj release\llex.obj release\lmathlib.obj release\lmem.obj release\loadlib.obj release\lobject.obj release\lopcodes.obj release\loslib.obj release\lparser.obj release\lstate.obj release\lstring.obj release\lstrlib.obj release\ltable.obj release\ltablib.obj release\ltm.obj release\lundump.obj release\lvm.obj release\lzio.obj release\print.obj release\moc_builder.obj release\moc_finddial
og.obj release\moc_mainwindow.obj release\moc_nutcomponentdelegate.obj release\moc_nutcomponentmodel.obj release\moc_nutcomponentmodelfilterproxy.obj release\moc_nutcomponentdetailsmodel.obj release\moc_settings.obj release\moc_settingsdialog.obj release\qrc_qnutconf.obj
1>  Could Not Find C:\proj\work\qnutconf\release\builder.obj
1>  	del release\qnutconf.intermediate.manifest release\qnutconf3.exp
1>  Could Not Find C:\proj\work\qnutconf\release\qnutconf.intermediate.manifest
1>  	del release\qnutconf.res
1>  Could Not Find C:\proj\work\qnutconf\release\qnutconf.res
1>  
1>  Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
1>  Copyright (C) Microsoft Corporation.  All rights reserved.
1>  
1>  	c:\Qt\4.7.2\bin\uic.exe mainwindow.ui -o ui_mainwindow.h
1>  	c:\Qt\4.7.2\bin\uic.exe settingsdialog.ui -o ui_settingsdialog.h
1>  	c:\Qt\4.7.2\bin\uic.exe finddialog.ui -o ui_finddialog.h
1>  	C:\Qt\4.7.2\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -DNUTCONF_VERSION_STR="3.1.0" -DQT_THREAD_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -I"..\..\..\Qt\4.7.2\include\QtCore" -I"..\..\..\Qt\4.7.2\include\QtGui" -I"..\..\..\Qt\4.7.2\include" -I"." -I"lua\src" -I"..\..\..\Qt\4.7.2\include\ActiveQt" -I"release" -I"." -I"..\..\..\Qt\4.7.2\mkspecs\win32-msvc2010" -D_MSC_VER=1600 -DWIN32 builder.h -o release\moc_builder.cpp
1>  	C:\Qt\4.7.2\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -DNUTCONF_VERSION_STR="3.1.0" -DQT_THREAD_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -I"..\..\..\Qt\4.7.2\include\QtCore" -I"..\..\..\Qt\4.7.2\include\QtGui" -I"..\..\..\Qt\4.7.2\include" -I"." -I"lua\src" -I"..\..\..\Qt\4.7.2\include\ActiveQt" -I"release" -I"." -I"..\..\..\Qt\4.7.2\mkspecs\win32-msvc2010" -D_MSC_VER=1600 -DWIN32 finddialog.h -o release\moc_finddialog.cpp
1>  	C:\Qt\4.7.2\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -DNUTCONF_VERSION_STR="3.1.0" -DQT_THREAD_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -I"..\..\..\Qt\4.7.2\include\QtCore" -I"..\..\..\Qt\4.7.2\include\QtGui" -I"..\..\..\Qt\4.7.2\include" -I"." -I"lua\src" -I"..\..\..\Qt\4.7.2\include\ActiveQt" -I"release" -I"." -I"..\..\..\Qt\4.7.2\mkspecs\win32-msvc2010" -D_MSC_VER=1600 -DWIN32 mainwindow.h -o release\moc_mainwindow.cpp
1>  	C:\Qt\4.7.2\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -DNUTCONF_VERSION_STR="3.1.0" -DQT_THREAD_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -I"..\..\..\Qt\4.7.2\include\QtCore" -I"..\..\..\Qt\4.7.2\include\QtGui" -I"..\..\..\Qt\4.7.2\include" -I"." -I"lua\src" -I"..\..\..\Qt\4.7.2\include\ActiveQt" -I"release" -I"." -I"..\..\..\Qt\4.7.2\mkspecs\win32-msvc2010" -D_MSC_VER=1600 -DWIN32 nutcomponentdelegate.h -o release\moc_nutcomponentdelegate.cpp
1>  	C:\Qt\4.7.2\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -DNUTCONF_VERSION_STR="3.1.0" -DQT_THREAD_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -I"..\..\..\Qt\4.7.2\include\QtCore" -I"..\..\..\Qt\4.7.2\include\QtGui" -I"..\..\..\Qt\4.7.2\include" -I"." -I"lua\src" -I"..\..\..\Qt\4.7.2\include\ActiveQt" -I"release" -I"." -I"..\..\..\Qt\4.7.2\mkspecs\win32-msvc2010" -D_MSC_VER=1600 -DWIN32 nutcomponentmodel.h -o release\moc_nutcomponentmodel.cpp
1>  	C:\Qt\4.7.2\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -DNUTCONF_VERSION_STR="3.1.0" -DQT_THREAD_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -I"..\..\..\Qt\4.7.2\include\QtCore" -I"..\..\..\Qt\4.7.2\include\QtGui" -I"..\..\..\Qt\4.7.2\include" -I"." -I"lua\src" -I"..\..\..\Qt\4.7.2\include\ActiveQt" -I"release" -I"." -I"..\..\..\Qt\4.7.2\mkspecs\win32-msvc2010" -D_MSC_VER=1600 -DWIN32 nutcomponentmodelfilterproxy.h -o release\moc_nutcomponentmodelfilterproxy.cpp
1>  	C:\Qt\4.7.2\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -DNUTCONF_VERSION_STR="3.1.0" -DQT_THREAD_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -I"..\..\..\Qt\4.7.2\include\QtCore" -I"..\..\..\Qt\4.7.2\include\QtGui" -I"..\..\..\Qt\4.7.2\include" -I"." -I"lua\src" -I"..\..\..\Qt\4.7.2\include\ActiveQt" -I"release" -I"." -I"..\..\..\Qt\4.7.2\mkspecs\win32-msvc2010" -D_MSC_VER=1600 -DWIN32 nutcomponentdetailsmodel.h -o release\moc_nutcomponentdetailsmodel.cpp
1>  	C:\Qt\4.7.2\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -DNUTCONF_VERSION_STR="3.1.0" -DQT_THREAD_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -I"..\..\..\Qt\4.7.2\include\QtCore" -I"..\..\..\Qt\4.7.2\include\QtGui" -I"..\..\..\Qt\4.7.2\include" -I"." -I"lua\src" -I"..\..\..\Qt\4.7.2\include\ActiveQt" -I"release" -I"." -I"..\..\..\Qt\4.7.2\mkspecs\win32-msvc2010" -D_MSC_VER=1600 -DWIN32 settings.h -o release\moc_settings.cpp
1>  	C:\Qt\4.7.2\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -DNUTCONF_VERSION_STR="3.1.0" -DQT_THREAD_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -I"..\..\..\Qt\4.7.2\include\QtCore" -I"..\..\..\Qt\4.7.2\include\QtGui" -I"..\..\..\Qt\4.7.2\include" -I"." -I"lua\src" -I"..\..\..\Qt\4.7.2\include\ActiveQt" -I"release" -I"." -I"..\..\..\Qt\4.7.2\mkspecs\win32-msvc2010" -D_MSC_VER=1600 -DWIN32 settingsdialog.h -o release\moc_settingsdialog.cpp
1>  	c:\Qt\4.7.2\bin\rcc.exe -name qnutconf qnutconf.qrc -o release\qrc_qnutconf.cpp
1>  	rc -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -DNUTCONF_VERSION_STR="3.1.0" -DQT_THREAD_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -fo release\qnutconf.res qnutconf.rc
1>  Microsoft (R) Windows (R) Resource Compiler Version 6.1.7600.16385
1>  
1>  Copyright (C) Microsoft Corporation.  All rights reserved.
1>  
1>  
1>  	cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -MD -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -DNUTCONF_VERSION_STR="3.1.0" -DQT_THREAD_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -I"..\..\..\Qt\4.7.2\include\QtCore" -I"..\..\..\Qt\4.7.2\include\QtGui" -I"..\..\..\Qt\4.7.2\include" -I"." -I"lua\src" -I"..\..\..\Qt\4.7.2\include\ActiveQt" -I"release" -I"." -I"..\..\..\Qt\4.7.2\mkspecs\win32-msvc2010" -Forelease\ @C:\Users\harald\AppData\Local\Temp\nm4F20.tmp
1>  builder.cpp
1>  dirtraverser.cpp
1>  finddialog.cpp
1>  main.cpp
1>  mainwindow.cpp
1>.\mainwindow.cpp(80): error C2143: syntax error : missing ')' before 'constant'
1>.\mainwindow.cpp(80): error C2059: syntax error : ')'
1>.\mainwindow.cpp(295): error C2143: syntax error : missing ')' before 'constant'
1>.\mainwindow.cpp(296): error C2059: syntax error : ')'
1>  nutcomponentdelegate.cpp
1>  nutcomponentmodel.cpp
1>  nutcomponentmodelfilterproxy.cpp
1>  nutcomponentdetailsmodel.cpp
1>  nutcomponentmodel_p.cpp
1>  settings.cpp
1>  settingsdialog.cpp
1>  systeminfo.cpp
1>  Generating Code...
1>NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\cl.EXE"' : return code '0x2'
1>  Stop.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets(43,5): error MSB3073: The command "qmake && nmake -f Makefile.Release clean && qmake && nmake -f Makefile.Release" exited with code 2.
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:09.11
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

As you can see, qmake is called and -DNUTCONF_VERSION_STR="3.1.0" is given. Quite strange.

No big deal. When replacing the 2 macro references NUTCONF_VERSION_STR by "3.1.0" in mainwindow.cpp, it compiles without problem.

Regards,

Harald



More information about the En-Nut-Discussion mailing list