Compiling FileZilla Server Using Visual Studio 2005

Moderator: Project members

Message
Author
tpraja
500 Command not understood
Posts: 2
Joined: 2009-04-13 07:10
First name: Palanivel
Last name: Raja

Re: Compiling FileZilla Server Using Visual Studio 2005

#16 Post by tpraja » 2009-04-13 07:42

I used the shortlist but I encountered some errors in the report. Please give me some more details.

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

Re: Compiling FileZilla Server Using Visual Studio 2005

#17 Post by botg » 2009-04-13 08:09

Which errors?

david.dda
550 File not found
Posts: 33
Joined: 2009-10-19 11:39
First name: David
Last name: Ope

Re: Compiling FileZilla Server Using Visual Studio 2005

#18 Post by david.dda » 2009-10-21 12:53

Hi, I tried to compile the FileZilla server in Microsoft Visual Studio 2008 using this tutorial and following all the steps, but I´ve got some errors at the end of the build process. Does anybody have any idea what to do?

Compiling...
tinyxmlparser.cpp
c1xx : fatal error C1083: Cannot open source file: '..\..\..\..\FileZilla3\src\tinyxml\tinyxmlparser.cpp': No such file or directory
tinyxmlerror.cpp
c1xx : fatal error C1083: Cannot open source file: '..\..\..\..\FileZilla3\src\tinyxml\tinyxmlerror.cpp': No such file or directory
tinyxml.cpp
c1xx : fatal error C1083: Cannot open source file: '..\..\..\..\FileZilla3\src\tinyxml\tinyxml.cpp': No such file or directory
tinystr.cpp
c1xx : fatal error C1083: Cannot open source file: '..\..\..\..\FileZilla3\src\tinyxml\tinystr.cpp': No such file or directory


When I look inside the FileZilla Server Solution Project in M.Visual2008 there are 2 Projects open (FZS Interface and Service) I can see the missing files (tinyxmlparser.cpp, tinyxmlerror.cpp, tinyxml.cpp and tinystr.cpp) in the folder structures of "FZS Interface"-"Quellcodedateien" and also in "Service"-"Quellcodedateien". Many thanks.

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

Re: Compiling FileZilla Server Using Visual Studio 2005

#19 Post by botg » 2009-10-21 15:35

Why does it look for those FileZilla in the directories of the client?

david.dda
550 File not found
Posts: 33
Joined: 2009-10-19 11:39
First name: David
Last name: Ope

Re: Compiling FileZilla Server Using Visual Studio 2005

#20 Post by david.dda » 2009-10-21 16:29

Do you think there is some mistake in the FileZilla Server source code? Should I try to compile some older version of FileZilla Server source code? Please, could you send me a link of an older version of FZ Server, which should work without these "tiny...cpp files from FileZilla3".

david.dda
550 File not found
Posts: 33
Joined: 2009-10-19 11:39
First name: David
Last name: Ope

Re: Compiling FileZilla Server Using Visual Studio 2005

#21 Post by david.dda » 2009-10-21 16:42

To make it easier I am posting all the steps I did, maybe I did some mistake somewhere:

First I downloaded the FileZilla_Server-0_9_33.exe file. Run it and chose the Full Installation with all the components being checked. Afterwords, I copied the Source File to "Visual Studio 2008" "Projects" folder.

Boost - I Downloaded the newest "boost_1_39_setup.exe" file, run it and selected - Visual Studio 2008 as Compiler and as Variants: "Multithread, static runtime" and "Multithread Debug, static runtime" as I wasn´t sure, which one I really need.


Zlib - I downloaded the zlib123.zip file. Than I opened the zlibstat.vcproj from ZLib\zlib123\contrib\vstudio\vc8 folder. Actually there are 5 .vcproj files in the ZLib\zlib123\contrib\vstudio\vc8 folder and one .sln file.

MV2008 converted automatically vc8 project to Visual Strudio 2008 - I guess to a vc9 projects?


following steps are related to the steps of the tutorial "Compiling FileZilla Server Using Visual Studio 2005" http://forum.filezilla-project.org/view ... 930#p26930

Step5: setting the PATH: I chose in the solution explorer of MV2008 the solution file "Solution FileZilla server" - than opened Tools->Oprions->Projects->VC++ Directories
here I selected WIN32 as "Platform" - this was actually a default value and selected "include files" from the "Show directories for"-drop-down menu, now I clicked on the symbol of the yellow folder
saying "New Line" and selected the path "C:\FileZilla\ZLib\zlib123


Step6: Path for the zlib.lib directory, which should be included to the project library path
I selected: C:\FileZilla\ZLib\zlib123\contrib\vstudio\vc8\x86\ZlibStatRelease where the zlib.lib file was inside.


Step7: Path for boost directory is C:\Program Files\boost\boost_1_39

Step8: Path for boost lib directory to the project library path: C:\Program Files\boost\boost_1_39\lib?
The names of the boost-RegEx libraries contain its version number "1_39" in the file names: example: libboost_regex-vc90-s-1_39.lib
Shouldn't I rename these libraries (as we renamed the zlib.lib library)?


Step9: file Hyperlink.h from the FZS Interface project hasn´t been imported into VisualStudio,
it can just be found in the mics folder in the Windows Explorer.


Step 9 and 10: the code, which should be changed isn't in the hyperlink.cpp and hiperlink.h included, maybe it has been already changed.

I tried to build, clean and rebuild the solution, but got always the same error message:


Compiling...
tinyxmlparser.cpp
c1xx : fatal error C1083: Cannot open source file: '..\..\..\..\FileZilla3\src\tinyxml\tinyxmlparser.cpp': No such file or directory
tinyxmlerror.cpp
c1xx : fatal error C1083: Cannot open source file: '..\..\..\..\FileZilla3\src\tinyxml\tinyxmlerror.cpp': No such file or directory
tinyxml.cpp
c1xx : fatal error C1083: Cannot open source file: '..\..\..\..\FileZilla3\src\tinyxml\tinyxml.cpp': No such file or directory
tinystr.cpp
c1xx : fatal error C1083: Cannot open source file: '..\..\..\..\FileZilla3\src\tinyxml\tinystr.cpp': No such file or directory



I don´t know, where these tiny...cpp files come from?

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

Re: Compiling FileZilla Server Using Visual Studio 2005

#22 Post by botg » 2009-10-21 17:01

There has been an error with the Visual Studio project files.

Please fetch the latest revision of the source from the Subversion repository at https://filezilla.svn.sourceforge.net/s ... filezilla/

david.dda
550 File not found
Posts: 33
Joined: 2009-10-19 11:39
First name: David
Last name: Ope

Re: Compiling FileZilla Server Using Visual Studio 2005

#23 Post by david.dda » 2009-10-21 18:10

I tried to compile an older version (exactly: FileZilla_Server-0_9_23, ca. 1 year old) and it worked well, I´ve just got about 280 warnings during the compilation process, but no errors. So you´r right, there might be some trouble with the vcproj files in the newest version. How can I get all the files from the "source" folder of the latest revision from the Subversion repository? It has just a tree structure, so that I can see the content of the files in my browser, but can´t download the entire "source" folder with all the files, including the .vcproj files. Thank you a lot.

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

Re: Compiling FileZilla Server Using Visual Studio 2005

#24 Post by botg » 2009-10-21 20:52

You shouldn't use older versions, they contain known security vulnerabilities. Always use the most recent version, especially on server products.

User avatar
boco
Contributor
Posts: 26910
Joined: 2006-05-01 03:28
Location: Germany

Re: Compiling FileZilla Server Using Visual Studio 2005

#25 Post by boco » 2009-10-22 03:31

No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

User avatar
Neckman
500 Command not understood
Posts: 5
Joined: 2009-10-30 22:48
First name: Scott
Last name: Gregg

Re: Compiling FileZilla Server Using Visual Studio 2005

#26 Post by Neckman » 2009-10-30 23:20

Apparently there still IS a problem with the Visual Studio projects. On a fresh checkout, I am getting these errors:
Error 8 fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source? c:\ReleaseManagement\FileZilla\FileZilla Server\source\tinyxml\tinyxmlparser.cpp 1640
Error 10 fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source? c:\ReleaseManagement\FileZilla\FileZilla Server\source\tinyxml\tinyxmlerror.cpp 54
Error 13 fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source? c:\ReleaseManagement\FileZilla\FileZilla Server\source\tinyxml\tinyxml.cpp 1890
Error 15 fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source? c:\ReleaseManagement\FileZilla\FileZilla Server\source\tinyxml\tinystr.cpp 117
Error 27 fatal error C1083: Cannot open include file: 'boost/regex.hpp': No such file or directory c:\ReleaseManagement\FileZilla\FileZilla Server\source\iputils.cpp 21
The first four are easily fixed (by disabling precompiled headers for the problem files), and the last is a lack of Boost (? - need to research this), but the problem does still exist...

- Scott
- Scott

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

Re: Compiling FileZilla Server Using Visual Studio 2005

#27 Post by botg » 2009-10-31 00:16

Yes, you need Boost.

User avatar
Neckman
500 Command not understood
Posts: 5
Joined: 2009-10-30 22:48
First name: Scott
Last name: Gregg

Re: Compiling FileZilla Server Using Visual Studio 2005

#28 Post by Neckman » 2009-10-31 00:18

I knew I needed Boost. But I didn't know what Boost was. Found it. Got it. Currently installing it. :lol:
- Scott

david.dda
550 File not found
Posts: 33
Joined: 2009-10-19 11:39
First name: David
Last name: Ope

Re: Compiling FileZilla Server Using Visual Studio 2005

#29 Post by david.dda » 2009-11-11 14:02

Hi, I tried to compile the version 0_9_32 (year 2009-06) of FileZilla Server with Visual Studio 2008 and it worked well. I am trying to use FileZilla Server for analyzing some C++ Source Code Analyzers, therefore I would like to compile some older versions of FileZillaServer as well to see whether the Source Code Analyzer can find already fixed bugs or not - I want to conduct this test to find out, if the usage of Source Code Analyzers can really improve the software quality and find some of those important bugs that have been already fixed. Therefore I am trying to compile an older version 0_9_6 (year 2005-03), "Interface"-project was compiled with some warning but without any errors, but "Service"-project shows me by all older version an error:
´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´
.\ControlSocket.cpp(2723) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´
the Function look like this:
CControlSocket::CreateTransferSocket(CTransferSocket *pTransferSocket)
{
´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´
Please can anyone help me? Many thanks!

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

Re: Compiling FileZilla Server Using Visual Studio 2005

#30 Post by botg » 2009-11-11 15:09

Please note that 0.9.6 is heavily outdated. We simply do not have the resources to support such old versions.

Post Reply