Please help me to build the src of FZ2
Moderator: Project members
-
- 500 Command not understood
- Posts: 5
- Joined: 2005-03-31 08:20
Please help me to build the src of FZ2
I'm trying to change some small function in FileZilla to meet my parter's need, such as quickconnect to a SFTP etc. But I can't build any version of FileZilla 2, including 2.2.10src, 2.2.12src.
I've already installed VS6, CYGWIN, NSIS and Platform SDK(I've tried both XP-SP2 and 2003). But everytime a lot of errors and warnings burst out, over 30 errors. I tried to build a unchanged source package, the same situation happened.
I'm going to be mad , from downloading the SDK and CYGWIN till today, I've working on this task for nearly 1 week.
My OS is Windows XP Home Edition with SP2.
I've already installed VS6, CYGWIN, NSIS and Platform SDK(I've tried both XP-SP2 and 2003). But everytime a lot of errors and warnings burst out, over 30 errors. I tried to build a unchanged source package, the same situation happened.
I'm going to be mad , from downloading the SDK and CYGWIN till today, I've working on this task for nearly 1 week.
My OS is Windows XP Home Edition with SP2.
Last edited by DigitalSonic on 2005-03-31 08:48, edited 1 time in total.
-
- 500 Command not understood
- Posts: 5
- Joined: 2005-03-31 08:20
For an example
Version 2.2.10:
D:\My Programme\Blackbox\FileZilla_2_2_10_src\source\FzSFtp\SSH.C(997) : warning C4101: 'buf' : unreferenced local variable
D:\My Programme\Blackbox\FileZilla_2_2_10_src\source\FzSFtp\SSH.C(6388) : warning C4101: 'reason_length' : unreferenced local variable
D:\My Programme\Blackbox\FileZilla_2_2_10_src\source\FzSFtp\SSH.C(6387) : warning C4101: 'reason_string' : unreferenced local variable
D:\My Programme\Blackbox\FileZilla_2_2_10_src\source\FzSFtp\SSH.C(6389) : warning C4101: 'message' : unreferenced local variable
D:\My Programme\Blackbox\FileZilla_2_2_10_src\source\FzSFtp\SSH.C(6386) : warning C4101: 'reason_code' : unreferenced local variable
Copy FzSFtp.exe to output folder
1 file is copyed.
Compiling resources...
Compiling...
StdAfx.cpp
C:\Program Files\Microsoft Platform SDK for Windows XP SP2\include\winnt.h(252) : error C2146: syntax error : missing ';' before identifier 'WCHAR'
C:\Program Files\Microsoft Platform SDK for Windows XP SP2\include\winnt.h(252) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
OR
FtpListResult.cpp
D:\My Programme\Blackbox\FileZilla_2_2_10_src\source\FtpListResult.cpp(222) : error C2001: newline in constant
FtpControlSocket.cpp
C:\CYGWIN\USR\INCLUDE\sys/_types.h(15) : error C2632: 'long' followed by 'long' is illegal
C:\CYGWIN\USR\INCLUDE\sys/_types.h(15) : error C2144: syntax error : missing ';' before type 'long'
C:\CYGWIN\USR\INCLUDE\sys/_types.h(15) : error C2501: '__extension__' : missing storage-class or type specifiers
C:\CYGWIN\USR\INCLUDE\sys/_types.h(15) : fatal error C1004: unexpected end of file found
===============================
Version 2.2.12c:
Noting is built using build.bat (no exes, no dlls). There's no FileZilla.dsw file in the src package.
Version 2.2.10:
D:\My Programme\Blackbox\FileZilla_2_2_10_src\source\FzSFtp\SSH.C(997) : warning C4101: 'buf' : unreferenced local variable
D:\My Programme\Blackbox\FileZilla_2_2_10_src\source\FzSFtp\SSH.C(6388) : warning C4101: 'reason_length' : unreferenced local variable
D:\My Programme\Blackbox\FileZilla_2_2_10_src\source\FzSFtp\SSH.C(6387) : warning C4101: 'reason_string' : unreferenced local variable
D:\My Programme\Blackbox\FileZilla_2_2_10_src\source\FzSFtp\SSH.C(6389) : warning C4101: 'message' : unreferenced local variable
D:\My Programme\Blackbox\FileZilla_2_2_10_src\source\FzSFtp\SSH.C(6386) : warning C4101: 'reason_code' : unreferenced local variable
Copy FzSFtp.exe to output folder
1 file is copyed.
Compiling resources...
Compiling...
StdAfx.cpp
C:\Program Files\Microsoft Platform SDK for Windows XP SP2\include\winnt.h(252) : error C2146: syntax error : missing ';' before identifier 'WCHAR'
C:\Program Files\Microsoft Platform SDK for Windows XP SP2\include\winnt.h(252) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
OR
FtpListResult.cpp
D:\My Programme\Blackbox\FileZilla_2_2_10_src\source\FtpListResult.cpp(222) : error C2001: newline in constant
FtpControlSocket.cpp
C:\CYGWIN\USR\INCLUDE\sys/_types.h(15) : error C2632: 'long' followed by 'long' is illegal
C:\CYGWIN\USR\INCLUDE\sys/_types.h(15) : error C2144: syntax error : missing ';' before type 'long'
C:\CYGWIN\USR\INCLUDE\sys/_types.h(15) : error C2501: '__extension__' : missing storage-class or type specifiers
C:\CYGWIN\USR\INCLUDE\sys/_types.h(15) : fatal error C1004: unexpected end of file found
===============================
Version 2.2.12c:
Noting is built using build.bat (no exes, no dlls). There's no FileZilla.dsw file in the src package.
Re: Please help me to build the src of FZ2
Please upgrade to VS 7.1. VS6 generates wrong code and contains a bugged STL library that will cause sporadic crashes of FZS.I've already installed VS6
-
- 500 Command not understood
- Posts: 5
- Joined: 2005-03-31 08:20
-
- 500 Command not understood
- Posts: 5
- Joined: 2005-03-31 08:20
-
- 500 Command not understood
- Posts: 5
- Joined: 2005-03-31 08:20
Where to get files not provided in cvs but needed to build w
I asked this last month on the Support forum at the sourceforge project, but got no response, so I'll try asking it here.
Where should we get the files needed to compile with VS.NET 2003, but not present in the cvs repository?
(I'm repeating here what I said there)
http://sourceforge.net/tracker/index.ph ... tid=372242
I've found some possible candidates:
#1)
I am trying to use the zlib files (zlib.h, zconf.h,
zdll.exp, zdll.lib, zlib.def) from
http://www.gzip.org/zlib/
(Are these correct?)
#2)
There is a version of idna in the gnu libidn package
http://www.gnu.org/software/libidn/
I looked at version 0.5.9 which appeared to be the most
recent at
ftp://alpha.gnu.org/pub/gnu/libidn/
According to the docs in the tarball
libidn-0.5.9/doc/libidn.html
cygwin is a supported platform on Windows 2000.
I wonder if filezilla was compiled with a cygwin version of
libidn? I tend to doubt it, because I don't see a cygwin dll
in the filezilla binary zip release.
So, I am not sure what to do about the needed libidn, because the shipped binary doesn't look like it was built with cygwin, so that makes me suspect I should not try to compile with cygwin.
Any pointers are most welcome
Where should we get the files needed to compile with VS.NET 2003, but not present in the cvs repository?
(I'm repeating here what I said there)
http://sourceforge.net/tracker/index.ph ... tid=372242
I've found some possible candidates:
#1)
I am trying to use the zlib files (zlib.h, zconf.h,
zdll.exp, zdll.lib, zlib.def) from
http://www.gzip.org/zlib/
(Are these correct?)
#2)
There is a version of idna in the gnu libidn package
http://www.gnu.org/software/libidn/
I looked at version 0.5.9 which appeared to be the most
recent at
ftp://alpha.gnu.org/pub/gnu/libidn/
According to the docs in the tarball
libidn-0.5.9/doc/libidn.html
cygwin is a supported platform on Windows 2000.
I wonder if filezilla was compiled with a cygwin version of
libidn? I tend to doubt it, because I don't see a cygwin dll
in the filezilla binary zip release.
So, I am not sure what to do about the needed libidn, because the shipped binary doesn't look like it was built with cygwin, so that makes me suspect I should not try to compile with cygwin.
Any pointers are most welcome
Got it compiling with MSVC.NET 2003
I used the gnu zlib, and just made a quick, trivial hack for idna support by including my own trivial implementation of the single needed idna function, like so:
(idna.cpp)
#include "stdafx.h"
#include "idna.h"
#include <stdlib.h>
int idna_to_ascii_8z(const char *input, char **output, int flags)
{
*output = strdup(input);
return 0;
}
This simply emulates the idna expansion by duplicating the string.
This will work for ASCII only site strings -- it will of course fail miserably for non-ASCII strings
However, it allows me to compile and run with ASCII sites, and now to proceed to trying to fix the command line interface so I can use it from scripts.
(idna.cpp)
#include "stdafx.h"
#include "idna.h"
#include <stdlib.h>
int idna_to_ascii_8z(const char *input, char **output, int flags)
{
*output = strdup(input);
return 0;
}
This simply emulates the idna expansion by duplicating the string.
This will work for ASCII only site strings -- it will of course fail miserably for non-ASCII strings
However, it allows me to compile and run with ASCII sites, and now to proceed to trying to fix the command line interface so I can use it from scripts.
Hm, I did a quick test with
http://www.imc.org/idna/do-idna.cgi
and it said that my test ASCII input was invalid.
Maybe I'm wrong -- will my duplication work?
http://www.imc.org/idna/do-idna.cgi
and it said that my test ASCII input was invalid.
Maybe I'm wrong -- will my duplication work?
I thought you were going to use http://www.cmake.org/ for FZ3? This way, everyone of us could build his / her preferred project files / make files for their particular compiler, and you wouldn't have to include any project files yourself.botg wrote:Libidn gets compiled using MinGW. For FileZilla 3 I might drop VC++ project files completely, so you will have to use MinGW to compile the windows version.
I did a tiny bit more reading on IDNA, and my stubbing out the IDNA is valid for ASCII addresses.
I was misled by my misuse of the test page at
http://www.imc.org/idna/do-idna.cgi
(It is not correct to submit periods such as in "www.test.com" to that test page.)
I was misled by my misuse of the test page at
http://www.imc.org/idna/do-idna.cgi
(It is not correct to submit periods such as in "www.test.com" to that test page.)