Page 1 of 1

Error compiling the latest filezilla on windows system

Posted: 2023-06-30 02:34
by yangjian1851
The following error message is displayed when the latest filezilla is compiled:

Administrator@HWL-2020 MINGW64 ~/filezilla
# make
Making all in locales
make[1]: Entering directory '/home/Administrator/filezilla/locales'
/home/Administrator/prefix/bin/wxrc -g -e ./../src/interface/resources/xrc/*.xrc > "resources.h~" || exit 1
make[1]: *** [Makefile:586: resources.h] Error 1
make[1]: Leaving directory '/home/Administrator/filezilla/locales'
make: *** [Makefile:636: all-recursive] Error 1

Re: Error compiling the latest filezilla on windows system

Posted: 2023-06-30 06:56
by botg
Looks like you do not have a working wxrc. Make sure wxWidgets is installed correctly and the tool is usable.

Compile successful, link error

Posted: 2023-07-05 09:48
by yangjian1851
I directly opened the FileZilla.sln file in vs2019 to compile, and the link error was as follows:
1>engine.lib(filetransfer.obj) : error LNK2001: 无法解析的外部符号 "public: enum fz::aio_result __cdecl fz::writer_base::finalize(class fz::event_handler &)" (?finalize@writer_base@fz@@QEAA?AW4aio_result@2@AEAVevent_handler@2@@Z)
1>engine.lib(filetransfer.obj) : error LNK2001: 无法解析的外部符号 "public: enum fz::aio_result __cdecl fz::writer_base::add_buffer(class fz::buffer_lease &&,class fz::event_handler &)" (?add_buffer@writer_base@fz@@QEAA?AW4aio_result@2@$$QEAVbuffer_lease@2@AEAVevent_handler@2@@Z)
1>engine.lib(filetransfer.obj) : error LNK2001: 无法解析的外部符号 "public: class fz::writer_factory_holder & __cdecl fz::writer_factory_holder::operator=(class fz::writer_factory_holder const &)" (??4writer_factory_holder@fz@@QEAAAEAV01@AEBV01@@Z)
1>engine.lib(filetransfer.obj) : error LNK2001: 无法解析的外部符号 "public: class fz::reader_factory_holder & __cdecl fz::reader_factory_holder::operator=(class fz::reader_factory_holder const &)" (??4reader_factory_holder@fz@@QEAAAEAV01@AEBV01@@Z)
1>..\bin\FileZilla.exe : fatal error LNK1120: 33 个无法解析的外部命令


The static library libfilezilla.lib is also compiled with vs2019, and the static library libfilezilla.lib is associated with libgnutls-30.lib; libhogweed-6.lib; The libnettle-8.lib library is generated by the tool dlltool

Re: Error compiling the latest filezilla on windows system

Posted: 2023-07-05 18:06
by botg
Don't use Visual Studio. The only officially sanctioned way to compile FileZilla is through autotools-based build system.