I have run nmake -f Makefile.nmake setup nmake -f Makefile.nmake distclean sucessfully.. when I run nmake -f makefile.nmake all this is what I get. is it normal if no, how do I correct it?
asked 04 Jun '14, 11:28 aman edited 04 Jun '14, 14:09 grahamb ♦ |
2 Answers:
You shouldn't need to set the MSVC_VARIANT in config.nmake for VS2012 onwards. The vcvarsxx batch file you call for your appropriate build sets the environment variable "VisualStudioVersion" and this is picked up by config.nmake. The default out of the box build doesn't require any changes to config.nmake if you define the following environment variables, adjusting the paths to suit your installation:
I also have the following additional variables set out of habit:
Revert any changes you have made to any of the source files; answered 04 Jun '14, 14:00 grahamb ♦ showing 5 of 15 show 10 more comments |
As stated in the error message, you need to edit config.nmake file do as to set MSVC_VARIANT to MSVC2013 answered 04 Jun '14, 11:35 Pascal Quantin edited 04 Jun '14, 13:35 I get this after resolving that error.:
'ml64' is not recognized as an internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'ml64' : return code '0x1' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0 \VC\BIN\nmake.exe"' : return code '0x2' Stop. (04 Jun '14, 13:13) aman Sigh. ml64 is the Visual Studio assembler. I think it's included with the Express editions, but I'm not 100% sure. You seem to be attempting to build a 64 bit version of Wireshark, have you initialised the cmd prompt for an x64 build using the I would strongly suggest you build the 32 bit x86 version first, as all the docs and guides are setup for that. Only move to the x64 version after you have successfully built the x86 version, and you must do an (04 Jun '14, 14:07) grahamb ♦ |
Thanks @grahamb that error resolved. it compiles for 4-5 minutes on makefile.nmake all command, and gives an error as :
wireshark-tap-register.c link /NOLOGO /DYNAMICBASE /NXCOMPAT /LARGEADDRESSAWARE /INCREMENTAL:NO /DEBUG /MACHINE:x86 /SafeSEH /FIXED:no /SUBSYSTEM:WINDOWS /MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture=''" /VERSION:1.990 /OUT:....\wireshark-qt-release\qtshark.exe C:\Windows\TEMP\nm1858.tmp Qt5Widgets.lib(Qt5Widgets.dll) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\link.EXE"' : return code '0x458' Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.EXE"' : return code '0x2' Stop.
I cant see your latest reply, but its saying you answered 3 mins ago..?
This looks like a linker mismatch again, you're running a 32 bit link (
/MACHINE:x86
) and attempting to link with a 64 bit library (QT5Widgets.lib).Have you set
QT5_BASE_DIR
to point to an x64 version of QT? You can check from your current cmd prompt, rundumpbin /headers %QT5_BASE_DIR%\lib\QT5Widgets.lib > hdrs.txt
and looking at the first portion of the output (FILE HEADER VALUES) which will tell you the machine type of the library.It gives FILE HEADER VALUES 8664 machine (x64) 3 number of sections 53751489 time date stamp Thu May 15 15:24:57 2014 112 file pointer to symbol table 8 number of symbols 0 size of optional header 0 characteristics
so shall I use cygwin of 32bit for wireshark?
and my qt is C:\Qt\Qt5.3.0\5.3\msvc2013_64 so shall this too be for 32 or 64 will do in this case?
Your QT is a 64 bit version as shown by the dumpbin output and the path name(msvc2013_64). You need a 32 bit version to build a 32 bit version of Wireshark. Try this one: http://download.qt-project.org/official_releases/qt/5.3/5.3.0/qt-opensource-windows-x86-msvc2013-5.3.0.exe
and how about cygwin? that also is supposed to be for 32 bit?
I have made it all for 32bits, and wireshark has built. When I run packaging it says:
bash -o igncr pod2html --title="asn2deb - The Wires hark Network Analyzer 1.99.0" --css=ws.css --noindex asn2deb.pod > asn2deb.html cd .. set copycmd=/y if not exist wireshark-gtk2 mkdir wireshark-gtk2 xcopy epan\libwireshark.dll wireshark-gtk2 /d
epan\libwireshark.dll
Sharing violation
NMAKE : fatal error U1077: 'C:\Windows\System32\xcopy.EXE' : return code '0x4' Stop.
How to solve this
@grahamb cant view your comment..?
Something is blocking the copying of epan\libwireshark.dll into the wireshark-gtk2 directory. Do you still have Wireshark running from the wireshark-gtk2 directory after testing your build?
still some problem, not able to see your comment..:(
ya it is running after sucessfull build.. shall I close it and run the packaging command?
yes, that should be all you need.
Thanks for you help and patience @grahamb. It really helped alot. and finally I have my environment build for development..
Well done, great tenacity displayed there.