Pi: LInux: Building FreeFileSync on Pi4

Resources:

 

It appears that you don't have dependency wxWidgets installed ("wx-config: not found")
 
cjmssmd
Posts: 1
Joined: 9 Jul 2019
  •  

    Post by cjmssmd • 09 Jul 2019, 12:27

    I'm curious, did you ever get this to work?
     
    jmsxl
    Posts: 17
    Joined: 5 Oct 2018
    •  

      Post by jmsxl • 20 Jul 2019, 21:29

      Here's a web page that shows the steps to build on Linux: https://github.com/jeffli678/build-FreeFileSync

      That page references another page https://solarianprogrammer.com/2016/10/07/building-gcc-ubuntu-linux/ that shows how to build a newer version of gcc, which you'll likely need to do as well. When building gcc on the Pi, here are the configure options I used:

      Code: Select all

      ../gcc-9.1.0/configure -v --prefix=/usr/local/gcc-9.1 --program-suffix=-9.1 --enable-languages=c,c++ --disable-multilib --without-included-gettext --enable-threads=posix --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --disable-libquadmath-support --enable-plugin --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp --with-float=hard --disable-werror --enable-checking=release
      Many of those are probably the build defaults for gcc but I included them based on the output of the older gcc already installed with raspbian ("gcc -v") just to be sure. Building gcc on the Pi takes a long time.
       
      bgstack15
      Posts: 85
      Joined: 7 Jan 2018
      •  

        Post by bgstack15 • 22 Jul 2019, 13:58

        So, once you have all the build dependencies in place, FreeFileSync builds and runs correctly on the ARMv7 architecture? This is good news!
         
        jmsxl
        Posts: 17
        Joined: 5 Oct 2018
        •  

          Post by jmsxl • 23 Jul 2019, 03:49

          bgstack15 wrote: So, once you have all the build dependencies in place, FreeFileSync builds and runs correctly on the ARMv7 architecture?
          Yes. I recently built FFS v10.14 on a Raspberry Pi 3B+ running Raspbian released July, 2019 based on Debian Buster.

          No exhaustive testing, but an interactive mirror sync from the Pi to a Samba share works just fine. RealTimeSync not tested.

          Following the recipes given in the links above, packages I installed:

          # apt install build-essential libgtk-3-dev libboost-dev libssl-dev libcurl4-openssl-dev libssh2-1-dev

          Then:
          • Build and install gcc v9.1.0
          • Build and install wxWidgets v3.1.2
          • In the FFS Makefile, change gtk+-2.0 to gtk+-3.0 and add "-latomic" to the end of LINKFLAGS
          Required ~ 4GB of space to build everything (gcc is huge) But not so much when installed.

          Really hammered the uSD card. Next time I would build everything on an attached USB external (magnetic) drive.
          Tags