Archive: How to build nsis source code


How to build nsis source code
I want to change message "unpacking data" ,for that i have downloaded nsis source code and changd file Source\exehead\lang.h,for the compilation of nsis source code i refer following link http://nsis.sourceforge.net/Docs/AppendixG.html

I have installed python-2.5.1.msi, scons-0.97.win32.exe ,Microsoft visual tooltip 2003,microsoft visual c++ 2006,

but when i run "scons MSTOOLKIT=yes" command prompt it gives error "Scons is not recognised as an internal or external command,operable program or batch file"

Please tell me how to build nsis source code,give me exact steps what to do to compile nsis source code.


you need scons 1.x now if you are compiling code from svn, but the "Scons is not recognised as an internal or external command,operable program or batch file" command is a cmd.exe error message, meaning it can't find scons. the scons batch file is in the scripts subfolder (where you installed python) so run it with full path or add it to your path env


is it posible to show some other window above "unpacking data" window?

Thanks,
Dhiraj


hi,

i am tryed very much but i am not able to recompile nsis,i have follow th e steps given in http://nsis.sourceforge.net/Docs/AppendixG.html

I have installed python-2.5.1.msi, scons-1.3.0.win32.exe but ,still same error is coming
"Scons is not recognised as an internal or external command,operable program or batch file"

Please someone tell me,what i have to do to recompile nsis source code,

Thanks,
Dhiraj


i already told you


hi Anders,

I have do as you tell i have executed scons-1.3.0.bat present in script folder,but same error reproduced then also i try second case,added that path to environment path but still same "Scons is not recognised as an internal or external command,operable program or batch file" error is coming,

Please,tell me if you have another solution,

Thanks,
Dhiraj


Hi,

i have executed following

set MSSDK=C:\Path\To\Platform SDK
set VCToolkitInstallDir=C:\Path\To\VCToolkit
scons MSTOOLKIT=yes

now ,i got new error

C:\dev\nsis\nsis-2.45-src>scons MSTOOLKIT=yes
scons: Reading SConscript files ...
Mkdir("build\release\config")
Delete("nsis-14-May-2010.cvs")
Delete(".instdist")
Delete(".test")
Using Microsoft tools configuration
Checking for memset requirement... no
Checking for C library gdi32... yes
Checking for C library user32... yes
Checking for C library pthread... no
Checking for C library iconv... no
Checking for C library version... yes
Checking for C library dl... no
Checking for C library gdi32... yes
Checking for C library iconv... no
Checking for C library pthread... no
Checking for C library user32... yes
Checking for C library version... yes
Checking for C++ library cppunit... no
scons: done reading SConscript files.
scons: Building targets ...
scons: *** [build\release\AdvSplash\AdvSplash.dll] AttributeError : 'NoneType' o
bject has no attribute '__dict__'
scons: building terminated because of errors.

please ,any one please suggest what to do to remove this error?


You probably don't want to build all the plug-ins so add the SKIPPLUGINS=all to the scons command line.

Stu


hi,
i run scons MSTOOLKIT=yes SKIPPLUGINS=all but following error comes:


scons: Building targets ...
"C:\Program Files\Microsoft Platform SDK\\bin\Win64\link.exe" /nologo /opt:nowin
98 /map /OUT:build\release\Library\LibraryLocal\LibraryLocal.exe oleaut32.lib ve
rsion.lib build\release\Library\LibraryLocal\LibraryLocal.obj build\release\Libr
ary\LibraryLocal\ResourceEditor.obj build\release\Library\LibraryLocal\util.obj
build\release\Library\LibraryLocal\winchar.obj
LibraryLocal.obj : error LNK2019: unresolved external symbol "__int64 std::_Fpz"
(?_Fpz@std@@3_JA) referenced in function "protected: virtual class std::fpos<in
t> __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::seekoff
(long,int,int)" (?seekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE?AV?
$fpos@H@2@JHH@Z)
LibraryLocal.obj : error LNK2019: unresolved external symbol "long const std::_B
ADOFF" (?_BADOFF@std@@3JB) referenced in function "protected: virtual class std:
:fpos<int> __thiscall std::basic_streambuf<char,struct std::char_traits<char> >:
:seekoff(long,int,int)" (?seekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@
@MAE?AV?$fpos@H@2@JHH@Z)
LibraryLocal.obj : error LNK2019: unresolved external symbol "public: void __thi
scall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ) re
ferenced in function "public: int __thiscall std::basic_string<char,struct std::
char_traits<char>,class std::allocator<char> >::compare(unsigned int,unsigned in
t,char const *,unsigned int)const " (?compare@?$basic_string@DU?$char_traits@D@s
td@@V?$allocator@D@2@@std@@QBEHIIPBDI@Z)
ResourceEditor.obj : error LNK2001: unresolved external symbol "public: void __t
hiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ)
util.obj : error LNK2001: unresolved external symbol "public: void __thiscall st
d::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ)
winchar.obj : error LNK2001: unresolved external symbol "public: void __thiscall
std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ)
LibraryLocal.obj : error LNK2019: unresolved external symbol "public: void __thi
scall std::locale::facet::_Register(void)" (?_Register@facet@locale@std@@QAEXXZ)
referenced in function "class std::ctype<char> const & __cdecl std::use_facet<c
lass std::ctype<char> >(class std::locale const &)" (??$use_facet@V?$ctype@D@std
@@@std@@YAABV?$ctype@D@0@ABVlocale@0@@Z)
LibraryLocal.obj : error LNK2019: unresolved external symbol "public: class std:
:locale::facet const * __thiscall std::locale::_Getfacet(unsigned int)const " (?
_Getfacet@locale@std@@QBEPBVfacet@12@I@Z) referenced in function "class std::cty
pe<char> const & __cdecl std::use_facet<class std::ctype<char> >(class std::loca
le const &)" (??$use_facet@V?$ctype@D@std@@@std@@YAABV?$ctype@D@0@ABVlocale@0@@Z
)
LibraryLocal.obj : error LNK2019: unresolved external symbol "public: void __thi
scall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBEXXZ) re
ferenced in function "protected: bool __thiscall std::basic_string<char,struct s
td::char_traits<char>,class std::allocator<char> >::_Grow(unsigned int,bool)" (?
_Grow@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAE_NI_N@Z)
ResourceEditor.obj : error LNK2001: unresolved external symbol "public: void __t
hiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBEXXZ)
util.obj : error LNK2001: unresolved external symbol "public: void __thiscall st
d::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBEXXZ)
winchar.obj : error LNK2001: unresolved external symbol "public: void __thiscall
std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBEXXZ)
LibraryLocal.obj : error LNK2019: unresolved external symbol "public: void __thi
scall std::ios_base::_Addstd(void)" (?_Addstd@ios_base@std@@QAEXXZ) referenced i
n function "protected: void __thiscall std::basic_ios<char,struct std::char_trai
ts<char> >::init(class std::basic_streambuf<char,struct std::char_traits<char> >
*,bool)" (?init@?$basic_ios@DU?$char_traits@D@std@@@std@@IAEXPAV?$basic_streamb
uf@DU?$char_traits@D@std@@@2@_N@Z)
LibraryLocal.obj : error LNK2019: unresolved external symbol "struct _iobuf * __
cdecl std::_Fiopen(char const *,int,int)" (?_Fiopen@std@@YAPAU_iobuf@@PBDHH@Z) r
eferenced in function "public: class std::basic_filebuf<char,struct std::char_tr
aits<char> > * __thiscall std::basic_filebuf<char,struct std::char_traits<char>
>::open(char const *,int,int)" (?open@?$basic_filebuf@DU?$char_traits@D@std@@@st
d@@QAEPAV12@PBDHH@Z)
build\release\Library\LibraryLocal\LibraryLocal.exe : fatal error LNK1120: 8 unr
esolved externals
scons: *** [build\release\Library\LibraryLocal\LibraryLocal.exe] Error 1120
scons: building terminated because of errors.

after that i have tried

C:\dev\nsis\nsis-2.45-src>scons MSTOOLKIT=yes SKIPPLUGINS=all -c LibraryLocal
i have also refered http://forums.winamp.com/showthread.php?postid=1787297 link but it still not works
then again execute scons MSTOOLKIT=yes SKIPPLUGINS=all ,but same error comes,

Please suggest a solution for this problem,

Thanks,
Dhiraj