This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

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 :

    xcopy ".\profiles\Classic\colorfilters" wireshark-gtk2\profiles\Classic /d
.\profiles\Classic\colorfilters
1 File(s) copied
    cd ui/qt
    C:\Qt\Qt5.3.2\5.3\msvc2013_opengl\bin\qmake CONFIG+=release QtShark.pro
    nmake

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

    C:\Qt\Qt5.3.2\5.3\msvc2013_opengl\bin\uic.exe about_dialog.ui -o ui_about_dialog.h
NMAKE : fatal error U1077: 'C:\Qt\Qt5.3.2\5.3\msvc2013_opengl\bin\uic.exe' : return code '0xc0000135'
Stop.
NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.EXE"' : return code '0x2'
Stop.

C:\Development\wireshark-1.12.5>

asked 29 May '15, 11:20

PraveenDua's gravatar image

PraveenDua
6113
accept rate: 0%

edited 29 May '15, 14:25

grahamb's gravatar image

grahamb ♦
19.8k330206


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.

permanent link

answered 29 May '15, 14:34

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

i dont need to have the Qt version. how do i target to build the development version instead of Qt version ?

(29 May '15, 16:08) PraveenDua

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

(29 May '15, 17:02) PraveenDua

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.

(30 May '15, 00:47) grahamb ♦

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

(30 May '15, 15:58) PraveenDua

Have you cleaned the build since switching compilers, e.g. nmake -f makefile.nmake distclean?

Double check any changes to config.nmake.

(31 May '15, 01:49) grahamb ♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×254
×193
×110
×25
×7

question asked: 29 May '15, 11:20

question was seen: 2,593 times

last updated: 31 May '15, 01:49

p​o​w​e​r​e​d by O​S​Q​A