Compile on Windows via WSL1/Debian and MinGW

Moderator: Project members

Post Reply
Message
Author
iam_sysop
226 Transfer OK
Posts: 62
Joined: 2021-10-08 21:33

Compile on Windows via WSL1/Debian and MinGW

#1 Post by iam_sysop » 2021-10-09 01:40

If anyone is interested in a guide for compiling on Windows via WSL/Debian and MinGW-64 I posted a gist here: https://gist.github.com/thecarnie/d1b16 ... e8e4a2d012

It's technically a cross-compile but uses WSL as the host for Debian instead of a VM or bare-metal install.

I'm able to build 3.55+ so far with it and everything seems to work (albeit with a couple minor tweaks to the build process from what's in the wiki).

iam_sysop
226 Transfer OK
Posts: 62
Joined: 2021-10-08 21:33

Re: Compile on Windows via WSL1/Debian and MinGW

#2 Post by iam_sysop » 2021-10-09 23:28

Forgot to note that's for the client. Haven't made it to FZ server yet.

iam_sysop
226 Transfer OK
Posts: 62
Joined: 2021-10-08 21:33

Re: Compile on Windows via WSL1/Debian and MinGW

#3 Post by iam_sysop » 2021-10-19 05:13

Updated for FileZilla v3.56.x / libfilezilla 0.34+

https://gist.github.com/thecarnie/d1b16 ... e8e4a2d012

User avatar
oibaf
Contributor
Posts: 398
Joined: 2021-07-16 21:02
First name: Fabio
Last name: Alemagna

Re: Compile on Windows via WSL1/Debian and MinGW

#4 Post by oibaf » 2021-10-19 08:38

Let us know if you need help for the server. :)

iam_sysop
226 Transfer OK
Posts: 62
Joined: 2021-10-08 21:33

Re: Compile on Windows via WSL1/Debian and MinGW

#5 Post by iam_sysop » 2021-10-19 16:07

oibaf wrote:
2021-10-19 08:38
Let us know if you need help for the server. :)
I went through last night and worked up the Server build page -- and have successful builds so far. I didn't run into the stuck installer bug just yet in my testing.

I do have one question:

Currently, the FZ Server source tarball is only available via the FileZilla downloads page. Is there a seperate SVN for the FZ Server sources, or is SVN restricted on that code base? I found a way to link to the source tarball for FZ Server, but didn't see current code in the svn. The trunk seems far out of date vs. what's in the source tarball.

Thank you so much for your time and for the work on development!

iam_sysop
226 Transfer OK
Posts: 62
Joined: 2021-10-08 21:33

Re: Compile on Windows via WSL1/Debian and MinGW

#6 Post by iam_sysop » 2021-10-20 08:06

Updated + Moved:

https://github.com/thecarnie/make-filezilla

-- includes guides for FileZilla Client 3.56.x+ & FileZilla Server 1.0.1x+

iam_sysop
226 Transfer OK
Posts: 62
Joined: 2021-10-08 21:33

Re: Compile on Windows via WSL1/Debian and MinGW

#7 Post by iam_sysop » 2021-12-29 04:32

Updated for FileZilla Client 3.57.x+ & libfilezilla 0.35+

iam_sysop
226 Transfer OK
Posts: 62
Joined: 2021-10-08 21:33

Re: Compile on Windows via WSL1/Debian and MinGW

#8 Post by iam_sysop » 2023-09-10 20:24

Updated for FileZilla Client 3.65.x+ & libfilezilla 0.44+

Update coming soon for FileZilla Server as well as some helper scripts that do all the legwork...

User avatar
botg
Site Admin
Posts: 35507
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Compile on Windows via WSL1/Debian and MinGW

#9 Post by botg » 2023-09-10 22:15

I do not condone the use of third-party scripts to build tool and dependency chains. Such scripts lead to learned helplessness.

Only building things by hand, and if so inclined, writing your very own scripts, result in actual understanding of the used technologies.

iam_sysop
226 Transfer OK
Posts: 62
Joined: 2021-10-08 21:33

Re: Compile on Windows via WSL1/Debian and MinGW

#10 Post by iam_sysop » 2023-09-11 03:07

botg wrote:
2023-09-10 22:15
I do not condone the use of third-party scripts to build tool and dependency chains. Such scripts lead to learned helplessness.

Only building things by hand, and if so inclined, writing your very own scripts, result in actual understanding of the used technologies.
I apologize if I have gone outside the bounds of what is allowed.

Would an admin or moderator do the favor of just deleting this whole thread.

Thank you.

User avatar
botg
Site Admin
Posts: 35507
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Compile on Windows via WSL1/Debian and MinGW

#11 Post by botg » 2023-09-11 07:56

Why delete it? Nothing disallowed in this topic. I'm merely voicing my opinion on using third-party automated build scripts.

In my experience, such scripts tend to be very fragile, and users relying on such scripts won't be able to fix them because they never learned how building it by hand works.

On this note, I very much recommend at least once doing the whole Linux From Scratch build.

iam_sysop
226 Transfer OK
Posts: 62
Joined: 2021-10-08 21:33

Re: Compile on Windows via WSL1/Debian and MinGW

#12 Post by iam_sysop » 2023-09-13 06:53

botg wrote:
2023-09-11 07:56
Why delete it? Nothing disallowed in this topic. I'm merely voicing my opinion on using third-party automated build scripts.

In my experience, such scripts tend to be very fragile, and users relying on such scripts won't be able to fix them because they never learned how building it by hand works.

On this note, I very much recommend at least once doing the whole Linux From Scratch build.
Fair enough --

In agreement with your views on scripts, I merely offered them as secondary to the actual how-to document -- but I completely agree with your points regarding automation.

Before WSL, I used to fight the Windows Compile using MinGW/GCC and it was a nightmare - because no two Windows installs are the same and there is just sooo much host OS interference that it was untenable in the long term. Then I moved to building directly on Debian which changed the game (as noted in the Wiki). The scripts originally came into play then for me because I would run the process by hand to work out bugs and get a working build, but then I go back to ground zero with a clean VM until the process works right. The same method applied with the WSL builds is even easier because installing a clean Debian backed userspace can be done via powershell in minutes vs going through a full bare install. That's where the scripts helped only because of repetition when finalizing instructions for the builds. This at least kept any helpers up to date with the build instructions - but there's no way to guarantee a "builder" does retrieve those new scripts. For sake of avoiding confusion or possibility of stale scripts on a user's build, they've been pulled from the repo.

iam_sysop
226 Transfer OK
Posts: 62
Joined: 2021-10-08 21:33

Re: Compile on Windows via WSL1/Debian and MinGW

#13 Post by iam_sysop » 2023-09-17 09:04

Updated for FileZilla Server v1.7.3+
(Previously updated for FileZilla Client v3.65.0)

https://github.com/iam-sysop/make-filezilla

Post Reply