Need guide to compile FileZilla Server under Windows

Moderator: Project members

Message
Author
koofi
504 Command not implemented
Posts: 7
Joined: 2022-02-01 19:03
First name: Hk
Last name: Koofi

Need guide to compile FileZilla Server under Windows

#1 Post by koofi » 2022-02-01 20:24

Dear Developers, Hi

I have a goal to add a file versioning feature + a different log system to FileZilla Server.

I have found the Source code of the latest stable version of FileZilla Server (1.2.0) from this page.

Before starting to develop on it I needed to make sure whether there is a sufficient guide to Build and Compile it but I could not find any.

Please help me if you have any information on how to build and compile FileZilla Server (the latest stable version) under Windows 10.

Thank you in advance.

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

Re: Need guide to compile FileZilla Server under Windows

#2 Post by iam_sysop » 2022-02-02 06:49

The wiki guides (https://wiki.filezilla-project.org/Client_Compile) will work, but instead of downloading the client sources, replace those steps with the server source archive from the downloads page -- https://filezilla-project.org/download. ... ype=server.

There is also this, but it's "unofficial" - user submitted guide - uses WSL-1/Debian on Windows and I get reproduce-able builds that work: https://github.com/thecarnie/make-filezilla

koofi
504 Command not implemented
Posts: 7
Joined: 2022-02-01 19:03
First name: Hk
Last name: Koofi

Re: Need guide to compile FileZilla Server under Windows

#3 Post by koofi » 2022-02-02 10:34

iam_sysop wrote:
2022-02-02 06:49
The wiki guides (https://wiki.filezilla-project.org/Client_Compile) will work


Thank You 'iam_sysop', do you have a successful build and compile experience with the wiki guide?

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

Re: Need guide to compile FileZilla Server under Windows

#4 Post by oibaf » 2022-02-02 12:58

What do you mean by "file versioning"?

koofi
504 Command not implemented
Posts: 7
Joined: 2022-02-01 19:03
First name: Hk
Last name: Koofi

Re: Need guide to compile FileZilla Server under Windows

#5 Post by koofi » 2022-02-02 13:39

oibaf wrote:
2022-02-02 12:58
What do you mean by "file versioning"?
So every time a file that already exists in the server gets uploaded, the FTP server automatically renames the file name with the version (e.x list_v2.8.csv), and also the FTP server will archive the old file to a path.

Dear oibaf, seems like you are a FileZilla server developer, do you have any instructions on how I can compile and build the FileZilla server project?
and any idea how to import it to the visual studio so I can start working on it?

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

Re: Need guide to compile FileZilla Server under Windows

#6 Post by iam_sysop » 2022-02-02 16:00

koofi wrote:
2022-02-02 10:34
iam_sysop wrote:
2022-02-02 06:49
The wiki guides (https://wiki.filezilla-project.org/Client_Compile) will work


Thank You 'iam_sysop', do you have a successful build and compile experience with the wiki guide?
I don't use the Visual Studio solutions -- any time I build FileZilla (client or server) I do the cross-compile method via Linux (Debian) or using Windows Subsystem for Linux (v1) with Debian as the file-system. That is almost always successful for both client and server.

The MinGW/MSYS2 "native" Windows build is somewhat tedious so I tend to avoid it (even though it is a valid / usable method that produces working builds if there are no errors with the libraries)

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

Re: Need guide to compile FileZilla Server under Windows

#7 Post by oibaf » 2022-02-02 17:53

koofi wrote:
2022-02-02 13:39
oibaf wrote:
2022-02-02 12:58
What do you mean by "file versioning"?
So every time a file that already exists in the server gets uploaded, the FTP server automatically renames the file name with the version (e.x list_v2.8.csv), and also the FTP server will archive the old file to a path.
How do you intend to make this work, in practice? How would you inform the server about the version?
Dear oibaf, seems like you are a FileZilla server developer, do you have any instructions on how I can compile and build the FileZilla server project?
and any idea how to import it to the visual studio so I can start working on it?
The instructions that you were given above work just fine. Visual Studio is not supported at the moment, I myself work on Linux using QtCreator as an IDE. The official build is made using the automake/autoconf tools. Even the windows binaries are crosscompiled from Linux.

koofi
504 Command not implemented
Posts: 7
Joined: 2022-02-01 19:03
First name: Hk
Last name: Koofi

Re: Need guide to compile FileZilla Server under Windows

#8 Post by koofi » 2022-02-03 09:02

iam_sysop wrote:
2022-02-02 16:00

I don't use the Visual Studio solutions -- any time I build FileZilla (client or server) I do the cross-compile method via Linux (Debian) or using Windows Subsystem for Linux (v1) with Debian as the file-system. That is almost always successful for both client and server.

The MinGW/MSYS2 "native" Windows build is ...
Thank you very much "iam_sysop", appreciate your quick response.

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

Re: Need guide to compile FileZilla Server under Windows

#9 Post by botg » 2022-02-03 09:27

Please mind the GNU Affero General Public License FileZilla Server is distributed under. One part of the license requires that when making changes to FileZilla Server, you need to make the source code available to everyone who uses the modified version over a network. Please also pay attention to our trademark policy, especially the section that deals with modifications.

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

Re: Need guide to compile FileZilla Server under Windows

#10 Post by iam_sysop » 2022-02-03 20:02

botg wrote:
2022-02-03 09:27
Please mind the GNU Affero General Public License FileZilla Server is distributed under. One part of the license requires that when making changes to FileZilla Server, you need to make the source code available to everyone who uses the modified version over a network. Please also pay attention to our trademark policy, especially the section that deals with modifications.
What complications apply with libfilezilla/FileZilla Client being under GPLv2 and FileZilla Server being under AGPLv3+?

Per your request, the LICENSE applied on my compilation help pages have all been moved to AGPLv3+ - but does this now affect the files that are based on libfilezilla and FileZilla client but not Server? How does I properly apply this with libfilezilla being a standalone library that is used in both projects with differing licenses?

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

Re: Need guide to compile FileZilla Server under Windows

#11 Post by botg » 2022-02-04 08:31

AGPLv3+ and GPLv3+ are cross-compatible. libfilezilla is distributed under GPLv2+. Linking libfilezilla against FileZilla Server is thus possible by applying the GPLv3 to libfilezilla.

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

Re: Need guide to compile FileZilla Server under Windows

#12 Post by iam_sysop » 2022-02-04 16:08

botg wrote:
2022-02-04 08:31
AGPLv3+ and GPLv3+ are cross-compatible. libfilezilla is distributed under GPLv2+. Linking libfilezilla against FileZilla Server is thus possible by applying the GPLv3 to libfilezilla.
Thank you for the clarification!

koofi
504 Command not implemented
Posts: 7
Joined: 2022-02-01 19:03
First name: Hk
Last name: Koofi

Re: Need guide to compile FileZilla Server under Windows

#13 Post by koofi » 2022-02-04 18:44

oibaf wrote:
2022-02-02 17:53
How do you intend to make this work, in practice? How would you inform the server about the version?
Basically for now my idea is very basic, I want to rely on the file name, let's say if we have a "test.csv" file on the server and the client downloaded it, then again attempts to upload the same file to the server, base on equal names FTP server will ask if this is the new version of the current hosted file? If the answer is yes then a version number will append to the end of the file name.

Thank you for your quick reply to my question.

koofi
504 Command not implemented
Posts: 7
Joined: 2022-02-01 19:03
First name: Hk
Last name: Koofi

Re: Need guide to compile FileZilla Server under Windows

#14 Post by koofi » 2022-02-04 19:16

botg wrote:
2022-02-03 09:27
Please mind the GNU Affero General Public License FileZilla Server is distributed under. One part of the license requires that when making changes to FileZilla Server, you need to make the source code available to everyone who uses the modified version over a network. Please also pay attention to our trademark policy, especially the section that deals with modifications.

Thank you Tim, of course this will be one of my main observations.

koofi
504 Command not implemented
Posts: 7
Joined: 2022-02-01 19:03
First name: Hk
Last name: Koofi

Re: Need guide to compile FileZilla Server under Windows

#15 Post by koofi » 2022-02-09 22:45

Dear Developers,

Any Idea why I'm getting an error when trying to use the "install.nsi" file in NSIS ?

ERROR:

!include: could not find: "common_install.nsh"
!include: could not find: "server_uninstall.nsh"
!include: could not find: "gui_uninstall.nsh"

I have searched the whole source directories and could not find these 3 files.

Post Reply