Small environment to cross-compile for win32 from Linux

Linux specific questions.
Landeel
Posts: 763
Joined: Jan 25, 2007 10:32
Location: Brazil
Contact:

Small environment to cross-compile for win32 from Linux

Postby Landeel » Apr 15, 2020 13:13

This is a small pre-configured environment to create win32 executables from Linux.
You will need 'wine' and the normal fbc installation in '/usr/local'.
Much smaller than mingw-w64.
Works for me. I hope it's useful for someone.
https://sourceforge.net/projects/freebasic-snap/files/fbcwin-1.07.1-win32-cross-Linux.tar.bz2/download
systemctl
Posts: 182
Joined: Mar 27, 2020 5:15

Re: Small environment to cross-compile for win32 from Linux

Postby systemctl » Apr 16, 2020 16:04

Landeel wrote:This is a small pre-configured environment to create win32 executables from Linux.
You will need 'wine' and the normal fbc installation in '/usr/local'.
Much smaller than mingw-w64.
Works for me. I hope it's useful for someone.
https://sourceforge.net/projects/freebasic-snap/files/fbcwin-1.07.1-win32-cross-Linux.tar.bz2/download


Excuse me but wine itself is a beast, it pulled in many dependency packages, the wine prefix (.wine) also count, so how could it's much smaller than mingw-w64 I wonder?

I checked with Synaptic Package Manager on Linux Mint Debian and saw that mingw-w64 needs about 809 MB, wine needs about 911 MB. They are almost the same.

Please correct me if I'm wrong.
Landeel
Posts: 763
Joined: Jan 25, 2007 10:32
Location: Brazil
Contact:

Re: Small environment to cross-compile for win32 from Linux

Postby Landeel » Apr 16, 2020 16:44

Yes, wine dependencies are bigger, but I think wine is something most Linux users will have already installed.
I have no other use for mingw-64.
But this can work with mingw-64 too, just change the "win32-*" links to the appropriate tools.
Coolman
Posts: 231
Joined: Nov 05, 2010 15:09

Re: Small environment to cross-compile for win32 from Linux

Postby Coolman » Apr 16, 2020 17:03

as far as I'm concerned, it's out of the question to install wine. too heavy. in order not to pollute the main system, I used an lxd container. after its creation, I installed wine 5 and many development programs, lazarus freepascal linux and windows, freebasic linux and windows and many other programming languages all isolated without any access to the real system...
Landeel
Posts: 763
Joined: Jan 25, 2007 10:32
Location: Brazil
Contact:

Re: Small environment to cross-compile for win32 from Linux

Postby Landeel » Apr 16, 2020 17:48

I use Linux (Lubuntu) as my main desktop OS.
I play some Windows games and use FreeBASIC to develop games for Windows, so I can't imagine using it without wine.
systemctl
Posts: 182
Joined: Mar 27, 2020 5:15

Re: Small environment to cross-compile for win32 from Linux

Postby systemctl » Apr 17, 2020 8:40

Landeel wrote:I use Linux (Lubuntu) as my main desktop OS.
I play some Windows games and use FreeBASIC to develop games for Windows, so I can't imagine using it without wine.


I use wine, too. But mostly for some small games. My computer is not powerful.

The thing I hate most about wine is if you don't careful you could have it messed up your minetypes. It registered the Windows programs installed on wine as the default applications to open many file types. It's annoying. Even if you uninstalled the program the file types association still there. I have to find through out my entire home dir to delete these leftovers by wine.

p/s: I just found an option of winecfg preventing wine to mess with minetypes, but I've not yet tested it.
Landeel
Posts: 763
Joined: Jan 25, 2007 10:32
Location: Brazil
Contact:

Re: Small environment to cross-compile for win32 from Linux

Postby Landeel » Apr 17, 2020 10:42

systemctl wrote:p/s: I just found an option of winecfg preventing wine to mess with minetypes, but I've not yet tested it.

Oh, good tip! I never noticed there was this option!
systemctl
Posts: 182
Joined: Mar 27, 2020 5:15

Re: Small environment to cross-compile for win32 from Linux

Postby systemctl » Apr 17, 2020 13:39

Landeel wrote:
systemctl wrote:p/s: I just found an option of winecfg preventing wine to mess with minetypes, but I've not yet tested it.

Oh, good tip! I never noticed there was this option!


I'm using wine 4.0 shipped with Debian 10. I think previous version of wine doesn't have this option.

Return to “Linux”

Who is online

Users browsing this forum: No registered users and 3 guests