![]() |
#1 |
Junior Member
Join Date: Mar 2016
Posts: 2
|
Problems compiling custom version of NSIS
Hi,
Following is the machine environment: 1. Windows 7 64 Bit enterprise. 2. Python 2.6, 3. Scons 2.4.1, 4. On Scons prompt, ZLIB_W32 path set to C:\Dev\Zlib1.2.7 5. VS2013 professional. Command used: scons SKIPUTILS="MakeLangId","NSIS Menu" I am able to build the NSIS code which I download from svn link of the official NSIS site. The problem starts when I want to add some cpp source / header files to the NSIS code to customize behavior. I have added my cpp files in the sconstruct scripts at Contrib\system, Contrib\nsexec and Source\exehead. The build output is attached. Also the sonctruct scripts which I have modified. Thanks in advance. Last edited by Anders; 1st March 2016 at 21:23. Reason: Changed title |
![]() |
![]() |
![]() |
#2 |
Major Dude
Join Date: May 2005
Location: New Zealand
Posts: 893
|
The build environments for the plugins and the exehead are C based, this is for compatibility with older systems by not using the CRT. You are trying to compile C++ code in a C environment, that's why you get all these errors about missing external symbols. If you can, try porting the code to C and then it will work.
Alternatively you can add the CRT to the list of libraries, but be aware that as soon as you do this, the installer will now require the MSVCRT redistributable package installed on the clients machine before the installer will even run, and installers that don't run are a major headache for the end user. "Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me) NSIS 3 POSIX Ninja Wiki Profile |
![]() |
![]() |
![]() |
#3 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,332
|
MSVCRT does not exist in minimal installs of Windows 95. The math plugin at least links with some of the CRT .libs, you can look at its files for some hints on how to enable the CRT. Or just create a new project in Visual Studio and compile the plugins that way.
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#4 |
Junior Member
Join Date: Mar 2016
Posts: 2
|
Thanks a lot, everybody. We have chosen to go the C way and I am able to build it with my changes.
Regards |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|