Howto: Compiling FileZilla 3 under Windows

Moderator: Project members

Message
Author
Apace
500 Command not understood
Posts: 1
Joined: 2006-08-14 18:43

Error compiling filezilla source

#31 Post by Apace » 2006-08-14 18:57

Hi botg, I followed the tutorial to setup minGW. At step 4.3 after run 'make' I got following error.

Code: Select all

../../../src/interface/StatusView.cpp:3:25: wx/wupdlock.h: No such file or directory
../../../src/interface/StatusView.cpp: In member function `void CStatusView::AddToLog(MessageType, wxString)':
../../../src/interface/StatusView.cpp:59: error: `wxWindowUpdateLocker' was not declared in this scope
../../../src/interface/StatusView.cpp:59: error: expected `;' before "lock"
../../../src/interface/StatusView.cpp:59: warning: unused variable 'wxWindowUpdateLocker'
make[3]: *** [filezilla-StatusView.o] Error 1
make[3]: Leaving directory `/home/Administrator/source/FileZilla3/compile/src/interface'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/Administrator/source/FileZilla3/compile/src/interface'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Administrator/source/FileZilla3/compile/src'
make: *** [all-recursive] Error 1
I also tried to compile the source from CVS in Visual Studio 8 and I got

Code: Select all

1>c:\documents and settings\administrator.demo3\desktop\cvsfilezilla_src\include\filezilla.h(20) : fatal error C1083: Cannot open include file: 'wx/wx.h': No such file or directory
Please let me know how I can compile the code.

Thanks

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

#32 Post by botg » 2006-08-15 09:23

Fixed in CVS.

twu2
425 Can't open data connection
Posts: 45
Joined: 2005-02-26 16:54

#33 Post by twu2 » 2006-10-16 12:18

Code: Select all

Making all in .
make[2]: Entering directory `/home/tommy/source/FileZilla3/compile/src'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/tommy/source/FileZilla3/compile/src'
make[1]: Leaving directory `/home/tommy/source/FileZilla3/compile/src'
Making all in locales
make[1]: Entering directory `/home/tommy/source/FileZilla3/compile/locales'
FILES="resources.h `find ../../locales/../src -name '*.h' -o -name '*.cpp'`"; \
/usr/local/bin/xgettext -C -k_ -kwxGetTranslation -kwxTRANSLATE -s -j -o filezilla.pot.new $FILES || exit 1
make[1]: *** [filezilla.pot] Error 1
make[1]: Leaving directory `/home/tommy/source/FileZilla3/compile/locales'
make: *** [all-recursive] Error 1
error for build FileZilla 3, any suggestion?

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

#34 Post by botg » 2006-10-16 12:41

Does 'xgettext --version' command work?

twu2
425 Can't open data connection
Posts: 45
Joined: 2005-02-26 16:54

#35 Post by twu2 » 2006-10-16 13:13

Code: Select all

tommy@TOMMY-X31 ~
$ xgettext --version
xgettext.exe (GNU gettext-tools) 0.14.5
版權所有 (C) 1995-1998, 2000-2005 Free Software Foundation, Inc.
這是自由軟體;請å

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

#36 Post by botg » 2006-10-16 14:30

Yep, that seems to be the cause.

max-holz
504 Command not implemented
Posts: 8
Joined: 2006-10-30 08:29

#37 Post by max-holz » 2006-10-30 08:31

I have this problem making autoconf:

Code: Select all

Making all in m4sugar
make[2]: Entering directory `/usr/src/autoconf-2.59/lib/m4sugar'
../../tests/autom4te                            \
        --language=m4sugar                      \
        --freeze                        \
        --output=m4sugar.m4f
../../tests/autom4te                            \
        --language=m4sh                 \
        --freeze                        \
        --output=m4sh.m4f
/bin/m4: not found
autom4te: failed to run /bin/m4: File or path name too long
make[2]: *** [m4sh.m4f] Error 1
make[2]: Leaving directory `/usr/src/autoconf-2.59/lib/m4sugar'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/autoconf-2.59/lib'
make: *** [all-recursive] Error 1

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

#38 Post by botg » 2006-10-30 08:46

Interesting. Into which directory are you trying to install mingw/msys?

max-holz
504 Command not implemented
Posts: 8
Joined: 2006-10-30 08:29

#39 Post by max-holz » 2006-10-30 08:56

botg wrote:Interesting. Into which directory are you trying to install mingw/msys?
c:\dev\mingw and c:\dev\msys

max-holz
504 Command not implemented
Posts: 8
Joined: 2006-10-30 08:29

#40 Post by max-holz » 2006-10-30 22:08

When I rebuild should I repeat steps from 4.2 to 4.4? :oops:

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

#41 Post by botg » 2006-10-30 23:09

max-holz wrote:When I rebuild should I repeat steps from 4.2 to 4.4? :oops:
If you only want to rebuild FZ, then yes. However, from time to time it might be useful to redo section 2 as well if wxWidgets gets updated.

max-holz
504 Command not implemented
Posts: 8
Joined: 2006-10-30 08:29

#42 Post by max-holz » 2006-11-02 14:41

I got this error with latest source:

Code: Select all

if g++ -DHAVE_CONFIG_H -I. -I../../../src/interface -I../../src/include -I../../../src/interface/../include -I/opt/wxWidgets/lib/wx/include/msw-unicode-release-static-2.7 -I/opt/wxWidgets/include/wx-2.7 -D__WXMSW__ -I/local/include -mthreads -g -O2 -Wall -g -fexceptions -MT filezilla-settingsdialog.o -MD -MP -MF ".deps/filezilla-settingsdialog.Tpo" -c -o filezilla-settingsdialog.o `test -f 'settingsdialog.cpp' || echo '../../../src/interface/'`settingsdialog.cpp; \
then mv -f ".deps/filezilla-settingsdialog.Tpo" ".deps/filezilla-settingsdialog.Po"; else rm -f ".deps/filezilla-settingsdialog.Tpo"; exit 1; fi
../../../src/interface/settingsdialog.cpp: In member function `bool CSettingsDialog::LoadPages()':
../../../src/interface/settingsdialog.cpp:139: error: 'class wxPanel' has no member named 'SetInitialSize'
make[3]: *** [filezilla-settingsdialog.o] Error 1
make[3]: Leaving directory `/home/Proprietario/source/FileZilla3/compile/src/interface'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/Proprietario/source/FileZilla3/compile/src/interface'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Proprietario/source/FileZilla3/compile/src'
make: *** [all-recursive] Error 1

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

#43 Post by botg » 2006-11-02 18:22

Minimum required wx version will be bumped to 2.7.2 soon.

max-holz
504 Command not implemented
Posts: 8
Joined: 2006-10-30 08:29

#44 Post by max-holz » 2006-11-02 20:17

botg wrote:Minimum required wx version will be bumped to 2.7.2 soon.
I have tried to compile Daily Snapshot but it fails.

max-holz
504 Command not implemented
Posts: 8
Joined: 2006-10-30 08:29

#45 Post by max-holz » 2006-11-08 18:13

If I understand well now compiling FileZilla3 required compilation and installation of:

libtasn1-0.3.6.tar.gz

opencdk-0.5.9.tar.gz

libgcrypt-1.2.3.tar.gz

lzo-2.02.tar.gz

gnutls-1.5.4.tar.bz2

also need to put NASM in the MinGw/bin directory

Can I do this without breaking the actual eviroment, especially autoconf that seems to be very sensible to new software install or must I repeat all the installation from the beginning?

Needs to recompile wxWidgets 2.7.2 after all these installations?

Post Reply