Old 28th August 2007, 09:31   #1
spartanvats
Junior Member
 
Join Date: Aug 2007
Posts: 2
Angry 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.
===========================
spartanvats is offline   Reply With Quote
Old 28th August 2007, 21:07   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 29th August 2007, 08:29   #3
spartanvats
Junior Member
 
Join Date: Aug 2007
Posts: 2
Thanks kichik!!! I have already made the makensis by the option suggested by u. Its working fine.
spartanvats is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump