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

Hello,

one more time i would like to ask a stupid question :

MAKENSIS="NSIS\makensis.exe"

What is here wrong ;) I have install nsis-2.46-setup.exe at c:\NSIS. I can't run the packaging. Every time i try

nmake -f Makefile.nmake packaging

i get an error, that he don't find makensis.exe. Please help me. He say :

? NSIS not available (MAKENSIS not defined in config.nmake)

NMAKE : fatal error U1077: 'exit' : return code '0x1' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0 \VC\BIN\amd64\nmake.exe"' : return code '0x2'

asked 17 Mar '14, 09:26

Alias_alias's gravatar image

Alias_alias
21558
accept rate: 0%


You haven't followed the development guide correctly (see here):

To install it, simply download the latest released version (currently 2.46) from http://nsis.sourceforge.net and start the downloaded installer.

After installation is complete. the Wireshark build process will then pick-up the installed version of makensis automatically (as long as it's in a standard location).

Edit:

The above statements were incorrect, there appears to be an issue with config.nmake and the default NSIS installer location on a 64 bit OS.

permanent link

answered 17 Mar '14, 09:50

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

edited 19 Mar '14, 09:14

I have try that too. But nothing. Every time i get the same error.

So i would like to set the path manuel. How can i make that ?

(17 Mar '14, 11:14) Alias_alias

Must i make the Setup again ?

(17 Mar '14, 11:15) Alias_alias

Where is the installed version of nsis in your system, i.e. the path to makensis.exe?

(17 Mar '14, 14:47) grahamb ♦

First it was at :

C:\Program Files (x86)\NSIS

Then i have delete NISIS and try :

C:\NSIS

But nothing he don't found NSIS.

When I Install NSIS at : C:\Program Files (x86)\NSIS , I get :

  C:\Development\wireshark(besser)>nmake -f Makefile.nmake packaging
  Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
  Copyright (C) Microsoft Corporation.  All rights reserved.
  Can't find Qt. This will become a problem at some point.
  ? NSIS not available (MAKENSIS not defined in config.nmake)
  NMAKE : fatal error U1077: 'exit' : return code '0x1'
  Stop.
  C:\Development\wireshark(besser)>
(18 Mar '14, 01:22) Alias_alias
1

@Alias_alias,

Your "answer" has been converted to a comment as that's how this site works. Please read the FAQ for more information.

Config.nmake looks for makensis.exe in $(PROGRAM_FILES)\NSIS\makensis.exe and $(PROGRAM_FILES_W6432)\NSIS\makensis.exe and those variables resolve to the env variables ProgramFiles and ProgramW6432 respectively, which on my Win 7 machine are both set to C:\Program Files.

Thus, even though the nsis installer will (by default) install to the ProgramFiles(x86) location, config.nmake isn't looking for it there. Please raise a bug for this on the Wireshark Bugzilla.

To fix your immediate problem, edit config.nmake and uncomment the line #MAKENSIS="\custom\path\to\NSIS\makensis.exe" by removing the '#' and adding the correct path, e.g. MAKENSIS="C:\Program Files (x86)\NSIS\makensis.exe.

(18 Mar '14, 02:48) grahamb ♦

Ok next round ;)FIRST THANKS !

I have add : MAKENSIS="C:\Program Files (x86)\NSIS\makensis.exe" to config.nmake and Makefile.nmake and now it start. Now there is an other error. I try now to fix it. If I have more Problems i post again ;)

So thanks a lot !

(18 Mar '14, 03:20) Alias_alias
showing 5 of 6 show 1 more comments
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:

×13
×2

question asked: 17 Mar '14, 09:26

question was seen: 4,383 times

last updated: 09 Aug '14, 04:08

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