One additional item. When building an NSIS install package on a Win7 64 bit system, the NSIS installs to "C:\Program Files (x86)\NSIS". In config.nmake, the makensis.exe files uses "C:\Program Files", thus failing.
I did the following:
Added: PROGRAM_FILES_NSIS=%%ProgramFiles(x86)%%
Changed: MAKENSIS="$(PROGRAM_FILES)\NSIS\makensis.exe"
To: MAKENSIS="$(PROGRAM_FILES_NSIS)\NSIS\makensis.exe"
Worked like a charm. I would guess that there are more elegant solutions to the problem that would detect the path and make the correct choice. I will leave that to folks smarter than me.
From: Graham Bloice <graham.bloice@xxxxxxxxxxxxx>
To: Developer support list for Wireshark <wireshark-dev@xxxxxxxxxxxxx>
Sent: Thursday, January 31, 2013 3:50 AM
Subject: Re: [Wireshark-dev] Win7 - 64 bit build
On 31 January 2013 00:18, Ed Beroset
<beroset@xxxxxxxxxxxxxx> wrote:
Alex Lindberg wrote:
I was having issues compiling a x64 build of Wireshark on a Win7x64 bit PC. I followed the instructions to the letter as referenced in the Win build page:
http://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html
All to no avail. After reinstalling several times and googling for most of the day, the answer was found.
The referenced sugested setup batch file to build x64 Wireshark is:
@echo off
echo Adding things to the path...
set PATH=%PATH%;.
set PATH=%PATH%;c:\cygwin\bin echo Setting up Visual Studio environment...
call "c:\Program Files\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat" amd64 title Command Prompt (VC++ 2010)
The issue was that the vcvars32.bat amd64 branch is broken. The script is looking for files that don't exist.
To fix this the line 'call "c:\windows..." line should now read:
call "c:\Program Files\Microsoft SDKs\Windows\v7.1\BIn\SetEnv.cmd" /x64
The /x64 can be changed to set any number of different compile options.
Thanks for reporting back. I have been intending to redo the build instructions for a while and this gives me both the confirmation that the existing instructions really need revision and that the edits that I have in mind will work. Now all I need is to actually get around to doing the work! :) Thanks!
Ed
Note that the extra options to SetEnv could be important, the default is to build a debug version (/Debug), targeted at Win7 (/WIN7). Read the first part of SetEnv to get all the options info.
Graham
___________________________________________________________________________
Sent via: Wireshark-dev mailing list <
wireshark-dev@xxxxxxxxxxxxx>
Archives:
http://www.wireshark.org/lists/wireshark-devUnsubscribe:
https://wireshark.org/mailman/options/wireshark-dev mailto:
wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe