![]() |
#1 |
Junior Member
Join Date: Dec 2016
Posts: 8
|
MakeNSIS 2.50 Compile on CentOS7
Hi All--
I'm attempting to create a new build machine for my products to replace a dying one. I've downloaded the NSIS 2.50 source and am attempting to compile it. I've applied a patch to get around a gcc 4.8 compile issue, but now I'm getting a link error: code: As near as I can tell, the compile is getting done with the -m32 flag as it should. I've made sure I have the 32-bit development libraries installed. Can someone help me get past this? Thanks! CrazyDogGuy |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,350
|
I guess you need to pass "-m elf_i386" to the linker?
Have you tried NSIS v3? v2.xx is probably harder to get working on newer systems... IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Dec 2016
Posts: 8
|
Thanks for the response, Anders.
We can't update to 3.0 yet, we'd have to update a bunch of custom plugins and do a bunch of testing that we don't have the time for at the moment. I did figure out my problem... there was a clue a little earlier in the log: code: That led me to add the following to $SRCDIR/SCons/Config/gnu in the makensis environment section: code: Incidentally, for anyone else that attempts this with 2.5 and GCC later than 4.6, you'll get a compile error before you ever get to the linker if you don't apply the changes in this patch Thanks again for the help, CDG |
![]() |
![]() |
![]() |
#4 | |
Major Dude
Join Date: May 2005
Location: New Zealand
Posts: 900
|
Quote:
FYI, many of the example scripts in 2.46 haven't been changed in 3.0, so there is a pretty good chance the script itself will compile without errors. "Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me) NSIS 3 POSIX Ninja Wiki Profile |
|
![]() |
![]() |
![]() |
#5 | |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,350
|
Quote:
When you move to 3.0 you probably want to switch to Unicode as well and that might mean fixing bugs in your plug-in that usually show up when you first switch even if it was coded with TCHAR/LPTSTR/TEXT to begin with. If you stay Ansi then 3.0 and 2.5x are very similar. IntOp $PostCount $PostCount + 1 |
|
![]() |
![]() |
![]() |
|
Tags |
gcc, posix, scons |
Thread Tools | Search this Thread |
Display Modes | |
|
|