edit

Get help for specific problems
Posts: 2
Joined: 6 Aug 2017

fk329k

edit
Last edited by fk329k on 09 Nov 2018, 09:32, edited 3 times in total.
Posts: 2
Joined: 6 Aug 2017

fk329k

edit
Last edited by fk329k on 09 Nov 2018, 09:33, edited 1 time in total.
Posts: 1
Joined: 23 Oct 2017

PunisherHD

Hello,

I've managed to build FFS for RHEL 6 and RHEL 7.

The trick to build FFS on Linux is that you need libraries that are newer that what Linux distributions usually provide:
- A modern C++ compiler (I've used GCC 6.3)
- A modern Boost library (I've used Boost 1.65.1)
- A modern wxWidget library (I've used wxWidget 3.1.0), built against GTK 2.x

In order to avoid conflict between distribution-provided libraries and FFS, I've built mine as static libraries.

Note: I take no responsibility if you destroy your computer with the following procedure.
I suggest you try this in a virtual machine first.


Step 1: check GCC version

Type 'gcc -v' and check that your version is recent enough.
In my case, it says 'gcc version 6.3.1 ...'


Step 2: build required Boost libraries

Download and extract 'boost_1_65_1.tar.bz2'.
Go in extracted folder and type:
 ./bootstrap.sh
 ./b2 install --with-chrono --with-system --with-thread variant=release link=static threading=multi runtime-link=static
The resulting files will go under '/usr/local/include/boost' and '/usr/local/lib'


Step 3: build required wxWidgets libraries

Download and extract 'wxWidgets-3.1.0.tar.bz2'.
Go in extracted folder and type:
./configure --with-gtk=2 --disable-shared --with-regex
make
make install
The resulting files will go under '/usr/local/include/wx-3.1', '/usr/local/lib' and '/usr/local/bin'.
You should now have a binary named '/usr/local/bin/wx-config'.


Step 4: Build freefilesync

Download and extract 'FreeFileSync_9.4_Source.zip'.
Go in extracted folder and type:
cd FreeFileSync/Source
make
make install
Resulting file is '/usr/bin/FreeFileSync'. Simply run it to launch FFS.

I hope this helps.