How to make windows executables (On Linux)


Problems running or configuring the software, commands & options, compiling, different platforms, using the interface, documentation, etc.

Shoals Surfer

Posts: 276

Joined: Sunday, 6th November 2016, 19:19

Post Tuesday, 8th May 2018, 15:30

How to make windows executables (On Linux)

Okay, so my OS is Linux Mint, and I want to create windows binaries so people on windows do not have to compile my fork themselves to play it.

How do I make this :
https://github.com/Vajrapani/X-Crawl

into a nice windows executable? What I've read so far only deals with making single files into single executables, rather than something as big as the crawl codebase.
16/26 on the way to GreaterOctopode (Win all backgrounds as an Octopode)

Progress so far : OpFi, OpGl, OpWn, OpAr, OpCK, OpMo, OpBe, OpHu, OpVM, OpAM, OpWr, OpFE, OpEE, OpNe, OpTm, OpSk

Dungeon Master

Posts: 388

Joined: Monday, 18th August 2014, 20:04

Post Tuesday, 8th May 2018, 16:35

Re: How to make windows executables (On Linux)

There's some brief discussion of how to do cross-compiling here. Basically, install the mingw cross-compiling environment as appropriate under your distro, and run the build command described there.

For this message the author advil has received thanks:
Vajrapani

Shoals Surfer

Posts: 276

Joined: Sunday, 6th November 2016, 19:19

Post Wednesday, 9th May 2018, 18:59

Re: How to make windows executables (On Linux)

EDIT: Solved my own problem.

I wasn't using git at all, I was just making changes manually on my machine, then editing it on the github website. That was was dumb, and led to submodules missing.
Last edited by Vajrapani on Wednesday, 9th May 2018, 19:26, edited 1 time in total.
16/26 on the way to GreaterOctopode (Win all backgrounds as an Octopode)

Progress so far : OpFi, OpGl, OpWn, OpAr, OpCK, OpMo, OpBe, OpHu, OpVM, OpAM, OpWr, OpFE, OpEE, OpNe, OpTm, OpSk

Dungeon Master

Posts: 388

Joined: Monday, 18th August 2014, 20:04

Post Wednesday, 9th May 2018, 19:11

Re: How to make windows executables (On Linux)

So, did you run both of:

  Code:
git submodule init
git submodule update
?

:D

For this message the author advil has received thanks:
Vajrapani

Shoals Surfer

Posts: 276

Joined: Sunday, 6th November 2016, 19:19

Post Wednesday, 9th May 2018, 19:27

Re: How to make windows executables (On Linux)

:P. I wasn't using git like a dumbass.
16/26 on the way to GreaterOctopode (Win all backgrounds as an Octopode)

Progress so far : OpFi, OpGl, OpWn, OpAr, OpCK, OpMo, OpBe, OpHu, OpVM, OpAM, OpWr, OpFE, OpEE, OpNe, OpTm, OpSk

Shoals Surfer

Posts: 276

Joined: Sunday, 6th November 2016, 19:19

Post Wednesday, 9th May 2018, 20:42

Re: How to make windows executables (On Linux)

Ok, so the windows executable has been made, but I get this at the end:

  Code:
if i686-w64-mingw32-g++ -dumpmachine|grep -q x86_64; \
     then WINARCH=win64; else WINARCH=win32; fi; \
   makensis -NOCD -DVERSION=0.22-a0-425-g8dc0c08 -DWINARCH="$WINARCH" util/crawl.nsi
/bin/sh: 3: makensis: not found
make: *** [package-windows] Error 127


Apparently you can't get nsis on linux, and makensis can't be gotten easily with a 'apt-get install', and the file has been made succesfully (I guess?), so is this a big error, and I do I need 'makensis' on Linux?
16/26 on the way to GreaterOctopode (Win all backgrounds as an Octopode)

Progress so far : OpFi, OpGl, OpWn, OpAr, OpCK, OpMo, OpBe, OpHu, OpVM, OpAM, OpWr, OpFE, OpEE, OpNe, OpTm, OpSk

Ziggurat Zagger

Posts: 6454

Joined: Tuesday, 30th October 2012, 19:06

Post Wednesday, 9th May 2018, 22:47

Re: How to make windows executables (On Linux)

Vajrapani wrote:Ok, so the windows executable has been made, but I get this at the end:

  Code:
if i686-w64-mingw32-g++ -dumpmachine|grep -q x86_64; \
     then WINARCH=win64; else WINARCH=win32; fi; \
   makensis -NOCD -DVERSION=0.22-a0-425-g8dc0c08 -DWINARCH="$WINARCH" util/crawl.nsi
/bin/sh: 3: makensis: not found
make: *** [package-windows] Error 127


Apparently you can't get nsis on linux, and makensis can't be gotten easily with a 'apt-get install', and the file has been made succesfully (I guess?), so is this a big error, and I do I need 'makensis' on Linux?

to get 'makensis':
https://blog.alejandrocelaya.com/2014/0 ... -in-linux/

Technically you don't need the windows installer at all, you can just zip up the requisite stuff and send it and have your friends unzip it where it goes, the installer is just a nicety that puts things in the right places.
Spoiler: show
This high quality signature has been hidden for your protection. To unlock it's secret, send 3 easy payments of $9.99 to me, by way of your nearest theta band or ley line. Complete your transmission by midnight tonight for a special free gift!

Shoals Surfer

Posts: 276

Joined: Sunday, 6th November 2016, 19:19

Post Wednesday, 9th May 2018, 22:57

Re: How to make windows executables (On Linux)

Oh, I see. Then I should have used the
  Code:
 make CROSSHOST=i686-w64-mingw32 package-windows-zips
to just get the zip files.

rather than using
  Code:
 make CROSSHOST=i686-w64-mingw32 package-windows
and needing makensis

Thanks :D
16/26 on the way to GreaterOctopode (Win all backgrounds as an Octopode)

Progress so far : OpFi, OpGl, OpWn, OpAr, OpCK, OpMo, OpBe, OpHu, OpVM, OpAM, OpWr, OpFE, OpEE, OpNe, OpTm, OpSk

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 12 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.