|
|
#1 |
|
Junior Member
Join Date: Jul 2014
Posts: 5
|
NSIS posix build
G.3 Building on POSIX suggests that if a cross-compiler is not available to use certain commands. And that's fine.
However, if a cross-complier is available, there are no instructions given in the documentation as to how to proceed. Attempting to cross-compile 3.0b0 using correct gcc but scons will fail after the message: code: Suggestions? |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Jul 2014
Posts: 5
|
Found my error.
I was passing 'x86_64-...' as the compiler to use. However, NSIS is looking for i686 (or similar). Still, the absence of POSIX instuctions could be fixed, no? |
|
|
|
|
|
#3 | ||
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
|
I know JasonFriday13 uses this successfully:
Quote:
The online docs are sadly out of date but the 3.0 docs include this tidbit: Quote:
IntOp $PostCount $PostCount + 1 |
||
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Jul 2014
Posts: 5
|
NSIS posix build
I've been playing with the PKGBUILD script for the 2.46 build from the Arch User Repositories.
I think I have 3.0b0 building and I'm testing it out now. Just seems strange to be only able to use the i686-w64-mingw32 compiler (32 bit version) only. I'll have to tryout the command line information you provided. I missed the part about XGCC. I saw a post in my "googling" mention it, but no real details. I'll have to dig through the documentation again. Thanks for the feedback! ![]() ![]()
|
|
|
|
|
|
#5 |
|
Major Dude
Join Date: May 2005
Location: New Zealand
Posts: 916
|
If I had setup the ZLIB_W32 variable for the zlib files on my main system (it's currently volatile), I would be using this: `scons XGCC_W32_PREFIX=i686-w64-mingw32- PREFIX="/home/jason/nsis_install" install`.
I also have a virtual machine setup with the old i586 mingw32 triplet toolchain installed, along with wxWidgets (dev package from the ubuntu repository) and the zlib windows files, and apart from skipping the System plugin because of the Call.sx problem, I can compile the source using "scons". Also, apart from the cross-platform utilities (genpat.exe, librarylocal.exe, NSIS.exe, technically not makensisw.exe as it's in the wrong directory on linux), help file, and makensis.exe, it will compile the installer too. Now that's an idea, I could add a TARGET_WINDOWS option for the posix build so that everything is compiled as windows targets, and only makensis is compiled for both windows and linux so that dist-installer works. I did a quick search for chm compilers on linux and found this: http://manpages.ubuntu.com/manpages/...d-2.6.2.1.html. It's provided with the "fp-utils-2.x.x" package under ubuntu. I'll start experimenting with this to see if it's fesable to target windows from a posix build. The only snag I can see is with the .zip file generation, as it's possible the posix built makensis can make it into the windows targeted .zip file (where it shouldn't be included). "Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me) NSIS 3 POSIX Ninja Wiki Profile |
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Jul 2014
Posts: 5
|
|
|
|
|
|
|
#7 | |
|
Major Dude
Join Date: May 2005
Location: New Zealand
Posts: 916
|
^^ No problem
.Quote:
This is a dead end for me, time to work on something else. "Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me) NSIS 3 POSIX Ninja Wiki Profile |
|
|
|
|
|
|
#8 | |
|
Junior Member
Join Date: Jul 2014
Posts: 5
|
Quote:
The sequence I use: - download and expand zip - cd into expanded folder - make a build folder - cd into build folder - run configure with... --> change x86_64 to i686 if building 32bit versioncode: --> set the prefix destination to suit - make - make install When cross building against wxW, pass the path to wx-config. code: There is also winres when making the final executable code: Shout in my direction if there is something else I can help clear away. |
|
|
|
|
|
|
#9 |
|
Major Dude
Join Date: May 2005
Location: New Zealand
Posts: 916
|
wxWidgets is only used for NSIS Menu, and all it displays is an html document. That process looks a bit complicated just for cross-compiling the NSIS Menu. If someone wants to do the hard yards, power to them. I took the easy yards.
"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me) NSIS 3 POSIX Ninja Wiki Profile |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|