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

[closed] Makefile.nmake error

0

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's gravatar image

aman
36151620
accept rate: 0%

closed 02 Jun '14, 14:07

grahamb's gravatar image

grahamb ♦
19.8k330206

The question has been closed for the following reason “Duplicate Question” by grahamb 02 Jun ‘14, 14:07


One Answer:

0

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin

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.

Where am I going wrong?

You are not following the developers guide!

Please follow the developers guide by the word.

So,

cd C:\Development\wireshark
nmake -f Makefile.nmake verify_tools

Regards
Kurt

answered 02 Jun '14, 12:37

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

edited 02 Jun '14, 12:38

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.

(02 Jun '14, 12:40) aman

See the answers to the following question

http://ask.wireshark.org/questions/4725/file-win32mak-not-found-stop

Most certainly, your build environment is not set up properly!

Did you, really, really, really, follow the developers guide by the word?

(02 Jun '14, 12:45) Kurt Knochner ♦

ya I followed as per the guide, but getting strange errors since last week.. really stressed for it..

(02 Jun '14, 12:47) aman

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..

(02 Jun '14, 12:48) aman

what is the output of the following command, if you run it in the DOS box where you tried to run nmake?

set

Please don't post a screenshot of the window. Post the text output!

Or even beter

set > set.txt

Then post the content of set.txt

(02 Jun '14, 12:48) Kurt Knochner ♦

This is what I get:

c:\Development\wireshark>set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\saroyaa\AppData\Roaming
CLASSPATH=C:\Program Files (x86)\IBM\RationalSDLC\ClearQuest\cqjni.jar
CLEARCASE_PRIMARY_GROUP=MITEL\ccusers
CLEARQUEST_HOME=C:\Program Files (x86)\IBM\RationalSDLC\ClearQuest
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=CA626547
ComSpec=C:\Windows\system32\cmd.exe
EMC_AUTOPLAY=C:\Program Files (x86)\Common Files\Roxio Shared\OEM\
FP_NO_HOST_CHECK=NO
HOMEDRIVE=M:
HOMEPATH=\
HOMESHARE=\\ottnfpd02\saroyaa$
IBMLDAP_ALTHOME=C:\Program Files (x86)\IBM\RationalSDLC\common\codeset
JRE_HOME=C:\Program Files (x86)\IBM\RationalSDLC\Common\Java5.0\jre
LOCALAPPDATA=C:\Users\saroyaa\AppData\Local
LOGONSERVER=\\OTTADC02
MITEL_IPA_HOME=C:\Program Files (x86)\Mitel\IP Phone Analyzer (Internal Release)

NUMBER_OF_PROCESSORS=2 OS=Windows_NT PATH=C:\Python27;C:\Windows\System32;C:\Program Files (x86)\Microsoft Visual St udio 10.0\VC\bin;C:\Development\wireshark PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 15 Stepping 11, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=0f0b ProgramData=C:\ProgramData ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files PROMPT=$P$G PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules
PUBLIC=C:\Users\Public RATIONAL_COMMON=C:\Program Files (x86)\IBM\RationalSDLC\Common RATIONAL_COMMON_LIB=C:\Program Files (x86)\IBM\RationalSDLC\Common\lib RATIONAL_HOME=C:\Program Files (x86)\IBM\RationalSDLC RATIONAL_ICU4J_DIR=C:\Program Files (x86)\IBM\RationalSDLC\common\java\icu RATIONAL_ICU4J_VERSION=4_8 SESSIONNAME=Console SystemDrive=C: SystemRoot=C:\Windows TEMP=saroyaa\AppData\Local\Temp TISDIR=C:\Program Files (x86)\IBM\RationalSDLC\common TMP=C:\Windows\TEMP USERDNSDOMAIN=MITEL.COM USERDOMAIN=MITEL USERNAME=saroyaa USERPROFILE=C:\Users\saroyaa VS100COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools
windir=C:\Windows windows_tracing_flags=3 windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log

c:\Development\wireshark>

(02 Jun ‘14, 12:50) aman

Can we solve it using set INCLUDE=%INCLUDE%;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include ?

(02 Jun ‘14, 13:02) aman

ya I followed as per the guide, but getting strange errors since last week.. really stressed for it..

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?

nmake -f makefile.nmake verify_tools

(02 Jun ‘14, 13:09) Kurt Knochner ♦

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?

(02 Jun ‘14, 13:16) aman

@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.

(02 Jun ‘14, 14:03) grahamb ♦

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.

(02 Jun ‘14, 14:07) grahamb ♦
showing 5 of 11 show 6 more comments