I started building wireshark from scratch following the guide given. I am facing this error C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin>nmake -f Makefile.nma ke Verify_tools Microsoft (R) Program Maintenance Utility Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved. NMAKE : fatal error U1052: file 'Makefile.nmake' not found Stop. Where am I going wrong? asked 02 Jun '14, 12:28 aman closed 02 Jun '14, 14:07 grahamb ♦ |
The question has been closed for the following reason “Duplicate Question” by grahamb 02 Jun ‘14, 14:07
One Answer:
If you start nmake in that directory, it won't work, as the Wireshark Makfile is for sure not located in the installation directory of the compiler.
You are not following the developers guide! Please follow the developers guide by the word. So,
Regards answered 02 Jun '14, 12:37 Kurt Knochner ♦ edited 02 Jun '14, 12:38 showing 5 of 11 show 6 more comments |
Thanks Kurt for your reply. Here i get this error: C:\Development\wireshark>nmake -f Makefile.nmake Verify_tools
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved.
Makefile.nmake(8) : fatal error U1052: file 'win32.mak' not found Stop.
See the answers to the following question
Most certainly, your build environment is not set up properly!
Did you, really, really, really, follow the developers guide by the word?
ya I followed as per the guide, but getting strange errors since last week.. really stressed for it..
I have win32.mak and I can see that in the folder where it should be.. but its not being called.. I dont know why..
what is the output of the following command, if you run it in the DOS box where you tried to run nmake?
Please don't post a screenshot of the window. Post the text output!
Or even beter
Then post the content of set.txt
This is what I get:
Can we solve it using set INCLUDE=%INCLUDE%;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include ?
WIRESHARK_TARGET_PLATFORM is missing. Cygwin path is missing. Some other things are missing.
Are you really sure you followed the developers guide? I doubt it!
What is the output of the following command, if you run it in the same directory you ran the set command?
I followed the guide, I dont know where I misses any step.. I am not sure, but I followed it.. C:>“C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat Setting environment for using Microsoft Visual Studio 2010 x86 tools.
C:>set WIRESHARK_TARGET_PLATFORM=win32
C:>cd C:\Development\wireshark
C:\Development\wireshark>nmake -f Makefile.nmake verify_tools
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved.
Makefile.nmake(8) : fatal error U1052: file ‘win32.mak’ not found Stop.
C:\Development\wireshark>
and now I have WIRESHARK_TARGET_PLATFORM in the set.txt but not the cygwin.. where am I going wrong?
@aman,
I’m sorry but this is still a continuation of your other open questions where VS 2010 isn’t installed properly.
If it was installed correctly, running vcvars32.bat would add the following to the environment:
DevEnvDir=C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ Framework35Version=v3.5 FrameworkDir=C:\Windows\Microsoft.NET\Framework\ FrameworkDIR32=C:\Windows\Microsoft.NET\Framework\ FrameworkVersion=v4.0.30319 FrameworkVersion32=v4.0.30319 INCLUDE=c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE;c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\ATLMFC\INCLUDE;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include; LIB=c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\LIB;c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\ATLMFC\LIB;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib; LIBPATH=C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Windows\Microsoft.NET\Framework\v3.5;c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\LIB;c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\ATLMFC\LIB; VCINSTALLDIR=c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\ VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio 10.0\ WindowsSdkDir=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A</code>
along with a few additions to the PATH.
As you don’t have that, we’re back to the basic issue of installing VS2010 correctly.
In my opinion, this is just a restatement of the question Makefile.nmake gives cl not found error, so I’m closing this one to prevent confusion between the two questions.