Page 2 of 3

Re: Compiling FileZilla Server Using Visual Studio 2005

Posted: 2009-04-13 07:42
by tpraja
I used the shortlist but I encountered some errors in the report. Please give me some more details.

Re: Compiling FileZilla Server Using Visual Studio 2005

Posted: 2009-04-13 08:09
by botg
Which errors?

Re: Compiling FileZilla Server Using Visual Studio 2005

Posted: 2009-10-21 12:53
by david.dda
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.

Re: Compiling FileZilla Server Using Visual Studio 2005

Posted: 2009-10-21 15:35
by botg
Why does it look for those FileZilla in the directories of the client?

Re: Compiling FileZilla Server Using Visual Studio 2005

Posted: 2009-10-21 16:29
by david.dda
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".

Re: Compiling FileZilla Server Using Visual Studio 2005

Posted: 2009-10-21 16:42
by david.dda
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?

Re: Compiling FileZilla Server Using Visual Studio 2005

Posted: 2009-10-21 17:01
by botg
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/

Re: Compiling FileZilla Server Using Visual Studio 2005

Posted: 2009-10-21 18:10
by david.dda
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.

Re: Compiling FileZilla Server Using Visual Studio 2005

Posted: 2009-10-21 20:52
by botg
You shouldn't use older versions, they contain known security vulnerabilities. Always use the most recent version, especially on server products.

Re: Compiling FileZilla Server Using Visual Studio 2005

Posted: 2009-10-22 03:31
by boco

Re: Compiling FileZilla Server Using Visual Studio 2005

Posted: 2009-10-30 23:20
by Neckman
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

Re: Compiling FileZilla Server Using Visual Studio 2005

Posted: 2009-10-31 00:16
by botg
Yes, you need Boost.

Re: Compiling FileZilla Server Using Visual Studio 2005

Posted: 2009-10-31 00:18
by Neckman
I knew I needed Boost. But I didn't know what Boost was. Found it. Got it. Currently installing it. :lol:

Re: Compiling FileZilla Server Using Visual Studio 2005

Posted: 2009-11-11 14:02
by david.dda
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!

Re: Compiling FileZilla Server Using Visual Studio 2005

Posted: 2009-11-11 15:09
by botg
Please note that 0.9.6 is heavily outdated. We simply do not have the resources to support such old versions.