Talk:Cross Compiling FileZilla 3 for Windows under Ubuntu or Debian GNU/Linux

From FileZilla Wiki
Jump to navigationJump to search

Doing this as root is both dangerous and unnecessary. Please update the guide to use a prefix that is writable by the user, such as ~/prefix

-- OK, I'll update it.

by User:CodeSquid, mingw32 is broken in Debian 5. But, I can't find snprintf and %lu, and I'm happy to use FileZilla 3 cross-compiled in Debian 5.

tar jxvf <all libraries, filezilla tar.bz2>
find . -name "*.c*" -exec grep -H "snprintf.*\%lu" {} \; | wl -l
       0

wxWidget use some sprintf (not snprintf). However, sprintf's %lu operate correctly.

-- hmm, it's wrong. There are some problem. snprintf and %lu is used in mingw32's library.

Easiest way to check is to transfer a big files. If the broken mingw32-runtime is used, the time elapsed/remaining in the queue is not displayed properly. --CodeSquid 06:50, 20 September 2009 (UTC)

-- Add 'patching mingw32-runtime'.


You can set PKG_CONFIG_PATH to the directory containing the installed gnutls .pkg file, that way you don't have to fiddle with the old libgnutls-config. --CodeSquid 07:43, 22 September 2009 (UTC)

Compiling filezilla steps still using old gnutls[edit]

First, the text "autogen.sh of FileZilla 3 use old libgnutls-config." is not that clear... Do you mean "Since augogen.sh defaults to use the system-installed libgnutls-config instead of the version compiled above, we need to direct the compiler to find our version"

That said, when I followed the instructions, it still did not work. I should point out that the system-installed version of gnutls is 2.4.x (ubuntu 9.04) and yes, the gnutls 2.8 was downloaded and compiled and installed into the $CFGPRE directory. But during the .configure step on filezilla, it is still failing, reporting that gnutls >= 2.8 is not available... --Dekker500 12:31, 26 September 2009 (UTC)