Pawel
1st April 2007 00:42 UTC
Nsis 2.25 - compilation problem
Hello
New version of Nsis (2.25) have been released. I have a problem with compilation nsis menu.
Could anybody tell me what I have to do to compile nsis 2.25 sources with scons?
I type scons in cmd and I get error:
...
*** error: WXWIN must be set to build NSIS Menu!
scons: *** [build\release\NSIS Menu\NSIS] Error 1
scons: building terminated because of errors.
C:\Program Files\NSIS\src>
WXWIN must be set to build NSIS Menu! -> what is that mean?
What I have to do?
I have installed in my system wxWidgets-2.8.0.
Thanks for any help
regards
-Pawel
Pawel
1st April 2007 10:29 UTC
OK. I have added system environment variable:
WXWIN E:\Programy\Microsoft Visual Studio 8\wxWidgets-2.8.0
Then I run bat file wxbuild.bat from this folder:
C:\Program Files\NSIS\src\Contrib\NSIS Menu\wx
After this I should compile NSIS with no errors... but I got this error message:
C:\Program Files\NSIS\src>scons
scons: Reading SConscript files ...
Delete("nsis-01-Apr-2007.cvs")
Delete(".instdist")
Delete(".test")
Using Microsoft tools configuration
Checking for memset requirement... (cached) yes
Checking for C library gdi32... (cached) yes
Checking for C library user32... (cached) yes
Checking for C library pthread... (cached) no
Checking for C library stdc++... (cached) no
Checking for C library iconv... (cached) no
Checking for C library version... (cached) yes
Checking for C library dl... (cached) no
Checking for C library gdi32... (cached) yes
Checking for C library iconv... (cached) no
Checking for C library pthread... (cached) no
Checking for C library user32... (cached) yes
Checking for C++ library cppunit... (cached) no
scons: done reading SConscript files.
scons: Building targets ...
link /nologo /opt:nowin98 /map "/OUT:build\release\NSIS Menu\NSIS.exe" "/LIBPATH:E:\Programy\Microsoft Visual Studio 8\wxWidgets-2.8.0\lib\vc_lib
nsis" advapi32.lib comctl32.lib gdi32.lib shell32.lib user32.lib wxbase28.lib wxmsw28_core.lib wxmsw28_html.lib "build\release\NSIS Menu\nsismenu
\nsismenu.obj" "build\release\NSIS Menu\nsismenu\nslinks.obj" "build\release\NSIS Menu\nsismenu-rc.res"
LINK : fatal error LNK1181: cannot open input file 'wxbase28.lib'
scons: *** [build\release\NSIS Menu\NSIS.exe] Error 1181
scons: building terminated because of errors.
C:\Program Files\NSIS\src>
What I have to do yet, to compile nsis sources correctly...
regards
-Pawel
kichik
1st April 2007 18:09 UTC
Does that library exist in E:\Programy\Microsoft Visual Studio 8\wxWidgets-2.8.0\lib\vc_libnsis? If not, wxbuild.bat failed for some reason.
Pawel
1st April 2007 19:23 UTC
Originally posted by kichik
Does that library exist in E:\Programy\Microsoft Visual Studio 8\wxWidgets-2.8.0\lib\vc_libnsis? If not, wxbuild.bat failed for some reason.
No. This library doesn't exist. The wxbase28.lib doesn't exist on my system - I have scanned all my disk.
May I install new wxWidgets? There is a new version (wxMSW-2.8.3-Setup.exe)...
Any idea to correct this?
-Pawel
kichik
1st April 2007 19:29 UTC
I'm using 2.8.0. Run wxbuild.bat again and watch closely for errors.
Pawel
1st April 2007 19:43 UTC
Originally posted by kichik
I'm using 2.8.0. Run wxbuild.bat again and watch closely for errors.
Two times I type T (it means Yes) on script question.
There is some error, but don't know what does it mean...
kichik
1st April 2007 19:45 UTC
Looks like it can't find cl.exe. Make sure it's properly set in the PATH. Quote:
Pawel
1st April 2007 19:58 UTC
Yes. I have added this line to environment variable.
Properly means like that:?
CL E:\Programy\Microsoft Visual Studio 8\VC\bin
It must be here? Or somwhere else?
It doesn't work...
kichik
1st April 2007 20:02 UTC
It's probably be easier to open the build environment from the start menu group of Visual Studio.
Either that, or build NSIS without NSIS Menu. Just run:
scons SKIPUTILS="NSIS Menu"
The NSIS Menu doesn't really change according to scons settings.
Coming to think of it, you don't pass any settings to scons. Why rebuild from source at all?
Pawel
1st April 2007 20:12 UTC
Building NSIS without NSIS Menu works, but why compiling everything doesn't work at my computer, and at Your for example works?
I want to have possibility to compile everything...
Anyway, Thanks for your help.
kichik
1st April 2007 20:19 UTC
It doesn't work for you because you haven't set PATH correctly for Visual C and nmake can't find cl. Try opening the build environment from the start menu group of Visual Studio and run wxbuild.bat from there.
Pawel
1st April 2007 20:43 UTC
Originally posted by kichik
It doesn't work for you because you haven't set PATH correctly for Visual C and nmake can't find cl. Try opening the build environment from the start menu group of Visual Studio and run wxbuild.bat from there.
Yuppii!!!!!
It works! Thanks for your time and help!
I hope that soon I will finish translating nsis on polish language and compiling it. But it is many, many work...
Ps: My PATH environment variable was broken (I suppose).
Best regards
-Pawel
WebMatze
2nd April 2007 05:34 UTC
I also can't compile nsis 2.25, my problem is the nsis menu, everything compiles fine except the nsis menu exe.
here is the error i get:
"C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\bin\Win64\li
nk.exe" /nologo /opt:nowin98 /map "/OUT:build\release\NSIS Menu\NSIS.exe" /LIBPA
TH:C:\wxWidgets-2.8.0\lib\vc_libnsis advapi32.lib comctl32.lib gdi32.lib shell32
.lib user32.lib wxbase28.lib wxmsw28_core.lib wxmsw28_html.lib "build\release\NS
IS Menu\nsismenu\nsismenu.obj" "build\release\NSIS Menu\nsismenu\nslinks.obj" "b
uild\release\NSIS Menu\nsismenu-rc.res"
LINK : fatal error LNK1104: cannot open file 'msvcprt.lib'
scons: *** [build\release\NSIS Menu\NSIS.exe] Error 1104
scons: building terminated because of errors.
D:\Scripts NSIS\NSIS-20070401>
kichik
2nd April 2007 11:14 UTC
Looks like you're missing a critical part of the compiler. Do you have msvcprt.lib in your compiler LIB path?
WebMatze
2nd April 2007 17:16 UTC
i tried to add C:\platform\lib/amd64 to the LIB variable but i still get the same error.
I'm using Vista 64, Toolit 3003 and platform SDK R2
kichik
2nd April 2007 20:52 UTC
And the command line? Did you use MSTOOLKIT=yes?
kichik
2nd April 2007 21:29 UTC
Hmm... Where did msvcprt.lib come from? It's not part of the VC Toolkit or the Platform SDK. Seems like you've used nmake from a different set of build tools than the one used for building NSIS.
Delete vc_libnsis and vc_mswnsis from wxWidgets and build again using the VC Toolkit.
Nazwa 'cl' nie jest rozpoznawana jako polecenie wewnętrzne lub zewnętrzne, program wykonywalny lub plik wsadowy. |