VS2010 compiling FileZilla Server source code

Source: Internet
Author: User
Tags filezilla
Compile the FileZilla server process and hope that others do not take detours
First download the relevant files:
1, Filezilla_server-0_9_41.exe
2, Zlib-1.2.5.rar
3, Tinyxml_2_6_2.zip (this is not down, 0.9.41)
When installing Filezilla_server-0_9_41.exe, select Source Code, the following figure (reproduced in the map, version of the wrong, reference, do not affect):

Unzip the appropriate files and place them in the E:\FileZilla directory:


Using VS2010 to compile the boost library: (note: 0.9.41 has been removed from the boost library and can not be compiled)

CD E:\FileZilla\boost_1_47_0\tools\build\v2
bootstrap.bat
copy bjam.exe E:\FileZilla\boost_1_47_0\
CD E:\FileZilla\boost_1_47_0\
bjam--prefix=e:\filezilla\boost  --build-type=minimal  toolset=msvc  Install
The boost library file is generated in the E:\FileZilla\boost directory.

Use VS2010 to compile zilb and FileZilla source code, because the official is used VS2008, will prompt conversion, install conversion on the line

To compile the Zib library using VS2010:
Open the ZLIB.DSP in the E:\FileZilla\zlib-1.2.5\old\visualc6 directory with VS2010
Project Properties-Configuration Properties-c/c++-code generation-Runtime settings to/MT (very important)
Build Separately, select Lib Debug and Lib release, and generate the appropriate files in the E:\FILEZILLA\ZLIB-1.2.5\OLD\VISUALC6 directory

You can now open the FileZilla Server.sln project file with VS2010, and you will be prompted to not find the GFTP project when you open it, you can ignore it.

Set up the service as the startup project;

Project Properties-Configuration Properties-c/c++-General-Additional include directory: ' E:\FileZilla\zlib-1.2.5 ' False
Usually properties-frame and reference-copy local set to False

Copy the E:\FileZilla\zlib-1.2.5\old\visualc6\Win32_LIB_Debug\zlibd.lib to the root directory (E:\FileZilla\source)
Copy the E:\FileZilla\zlib-1.2.5\old\visualc6\Win32_LIB_Release\zlib.lib to the root directory (E:\FileZilla\source)

Set project Properties-Configuration Properties-linker-Input-Additional dependencies: Atlsd.lib
View project properties in Release mode-Configuration Properties-linker-input-zlibd.lib in additional dependencies, delete and add Zlib.lib

You should now be able to compile and run.
Compile-time If prompted libcmtd.lib define conflict settings: Project Properties-Configuration Properties-linker-input-Ignore specific libraries: libcmtd.lib

Compiled source download


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.