環境搭建
1、拿到filezilla-3.8.1源碼,wxWidgets-2.8.12源碼
filezilla 傳送門
wxWidgets 傳送門
下面是編譯環境的搭建(目前記錄的是uos上搭建環境的問題與解決方案,部分疑難問題的錯誤信息在括號內標註,ubuntu 16.04也可,不過貌似問題會更多一些)
wxWidgets:
1、./configure 如果出現./config.guess: unable to guess system type 執行下面的代碼
wget -O config.guess ‘http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD’
wget -O config.sub ‘http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD’
2、完整的configure: ./configure --with-gtk --enable-unicode --disable-shared
3、缺少gtk-2.0 直接sudo apt install gtk-2.0 即可
4、make
5、sudo make install
依賴:
sqlite3(filezilla need)
gtk-2.0(wxWidgets need)
filezilla:
./configure --prefix=/home/lyg/Desktop/ --with-tinyxml=builtin --without-dbus
make
make install
問題&&方案:
1、autoreconf -ivf (config/missing:行81: aclocal-1.15:未找到命令)
2、base_64 char–>int (error: narrowing conversion of ‘-2’ from ‘int’ to ‘char’ inside { })
3、src/interface/Makefile --> LIBS = -lX11 (undefined reference to symbol ‘XGetWindowAttributes’)