Archive: unable to create makensis on linux with cross-compiler


unable to create makensis on linux with cross-compiler
I have installed scons and cross-compiler on my linux machine. I have downloaded NSIS source also. But when i go to the NSIS extract directory and say scons, It is throwing errors.

Here is the error after i type :: scons APPEND_CPPPATH=/usr/local/cross-tools/include/

=====================

gcc -o build/release/AdvSplash/advsplash.o -c -Os -Wall -fno-strict-aliasing -I/usr/local/cross-tools/include Contrib/AdvSplash/advsplash.c
Contrib/AdvSplash/advsplash.c:176: warning: 'dllexport' attribute directive ignored
g++ -s -mwindows -Wl,--file-alignment,512 -Wl,-Map,build/release/AdvSplash/AdvSplash.map -Wl,-e_DllMain@12 -nostdlib -Wl,--exclude-libs,msvcrt.a -shared -o build/release/AdvSplash/AdvSplash.dll build/release/AdvSplash/advsplash.o SCons/Config/memcpy.c SCons/Config/memset.c -Lbuild/release/AdvSplash -LContrib/AdvSplash -lkernel32 -luser32 -lgdi32 -lwinmm -Wl,--out-implib,build/release/AdvSplash/AdvSplash.lib -Wl,--output-def,build/release/AdvSplash/AdvSplash.def
cc1plus: error: unrecognized command line option "-mwindows"
cc1plus: error: unrecognized command line option "-mwindows"
scons: *** [build/release/AdvSplash/AdvSplash.dll] Error 1
scons: building terminated because of errors.
===========================


Looks like your cross-compiler isn't MinGW compatible. You can build just makensis and copy the plug-ins from a released version as suggested in the documentation.


Thanks kichik!!! I have already made the makensis by the option suggested by u. Its working fine.