Hi need help to figure out how to resolve the fatal error with uic.exe for about_dialog.ui when build wireshark on windows target. Please see the logs below :
asked 29 May ‘15, 11:20 PraveenDua edited 29 May ‘15, 14:25 grahamb ♦ |
One Answer:
That's a failure in the uic tool from the qt development toolkit. Currently all the Wireshark 12.x buildbots are using QT 5.1.1 with MSVC2010. I don't think the MSVC version is the issue here, more likely to be the QT version. Do you really need the QT version of Wireshark 1.12.5, it's not very functional, the development version is much better? Can you try a different version of QT? If you can move onwards with Wireshark, you might want to try building the development version. answered 29 May '15, 14:34 grahamb ♦ |
i dont need to have the Qt version. how do i target to build the development version instead of Qt version ?
also, in the meantime, i updated to visual studio 2013 and now i get the error :
C:\Development\wireshark-1.12.5\config.h(272) : fatal error C1189: #error : Your MSVC_VARIANT setting in config.nmake doesn't match the MS compiler version! (.\moc_time_shift_dialog.cpp) moc_wireshark_application.cpp _MSC_VER is:1800 but required is:1600 C:\Development\wireshark-1.12.5\config.h(272) : fatal error C1189: #error : Your MSVC_VARIANT setting in config.nmake doesn't match the MS compiler version! (.\moc_wireshark_application.cpp) NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\cl.EXE"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.EXE"' : return code '0x2' Stop.
This is using visual studio 2013 :
C:\Development\wireshark-1.12.5>set vi VisualStudioVersion=12.0
The error is because of the setting of MSVC_VARIANT in your copy config.nmake. For VS2013 it should be set to 1800.
I'm not sure if it works correctly in 1.12.x, but in the dev sources you shouldn't require any changes at all in config.nmake to build with VS2013.
The development version is in the git "master" branch. I guess you are using a tarball of the sources, it's much easier to use git as you can then keep track of any local modifications as well.
Note that in the development version, QT is the primary UI, the GTK version is being deprecated.
Since i now have both VS2010 and 2013 - it is somehow picking up MSVC10 as the compiler. Not clear why because all p[ath variables are correctly pointing to VS2013
Have you cleaned the build since switching compilers, e.g.
nmake -f makefile.nmake distclean
?Double check any changes to config.nmake.