Ubuntu/Linux Installation

Get help for specific problems
Posts: 3
Joined: 19 Aug 2009

warakurna

Hej,

I just discovered this project and tested it on windows. It replaced my old sync software (Synkron) because it's easier and faster...

But I also want to use it on my Ubuntu machine. Since I'm a bit new to Ubuntu I don't have a plan how to install FreeFileSync (v2.2) because there is no make or even .deb package available. Can somebody give a quick manual?

Cheers...
Posts: 1
Joined: 19 Aug 2009

tullmejs

Hej,

I just discovered this project and tested it on windows. It replaced my old sync software (Synkron) because it's easier and faster...

But I also want to use it on my Ubuntu machine. Since I'm a bit new to Ubuntu I don't have a plan how to install FreeFileSync (v2.2) because there is no make or even .deb package available. Can somebody give a quick manual?

Cheers...warakurna
Instructions are actually provided in the download, I think in compilation.txt or something like that. However, it's not extremely easy to get it to work. I know I failed as of now. I'll check in later to help more and or get more help.
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

Hej,

I just discovered this project and tested it on windows. It replaced my old sync software (Synkron) because it's easier and faster...

But I also want to use it on my Ubuntu machine. Since I'm a bit new to Ubuntu I don't have a plan how to install FreeFileSync (v2.2) because there is no make or even .deb package available. Can somebody give a quick manual?

Cheers...warakurna
Hi,

just follow the steps in Compilation.txt. I've testet them on a freshly installed Ubuntu 9.04 and this should be all there is to do.

-Zenju
Posts: 1
Joined: 24 Dec 2009

cheekysi

I'm also a newbie to Ubuntu. I've downloaded the freefilesync.zip ubuntu file
but can't find the compilation.txt or any install instructions. Can anyone
help?
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

If you're using "FreeFileSync_v3.2_Ubuntu_9.04.zip" you can try to start it
right after extraction. However it may be that you are missing some wxWidgets
library. In this case download Sourcecode_v3.2.zip and follow the instructions
in "Compile.txt" to go through the complete process step by step.
Posts: 4
Joined: 6 Jan 2010

digital-patrick

Hi Zenju!
Your software seems to be exactly what I need for UBUNTU (I'm using Karmic ...
and don't like rsync).
But I can't compile it.
I followed your instructions but get "error 1".

Waiting for a deb-package ;-)
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

Hi Patrick!

Did you follow the steps in Compile.txt?

> I followed your instructions but get "error 1".
Could you provide the full description (for at least the first few errors)?

Thanks, Zenju
Posts: 4
Joined: 6 Jan 2010

digital-patrick

Hello Zenju,

- I've downloaded wxGTK
- put the extracted content in a directory: wxGTK-2.8.10
- standing in that directory I did what you told us: ./configure --with-gtk --enable-unicode --enable-shared --disable-debug
- the .configure worked fine
- after "make" this error showed up:
./include/wx/gsocket.h:40: error: using typedef-name ‘GSocket’ after ‘class’
/usr/include/glib-2.0/gio/giotypes.h:120: error: ‘GSocket’ has a previous
declaration here
...
./include/wx/unix/gsockunx.h:40: error: using typedef-name ‘GSocket’ after
‘class’
/usr/include/glib-2.0/gio/giotypes.h:120: error: ‘GSocket’ has a previous
declaration here
...
./src/gtk/gsockgtk.cpp:34: error: ‘struct _GSocket’ has no member named
‘Detected_Read’
./src/gtk/gsockgtk.cpp:36: error: ‘struct _GSocket’ has no member named
‘Detected_Write’

I don't know what that means.
This compiling-thing is like black magic for me ;-)
Sorry
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

Hi Patrick,

it's not your fault, that's a bug in wxGTK! (Reference http://trac.wxwidgets.org/ticket/10883)
I experienced the same problem on Unbuntu 9.10, but luckily it's not hard to
patch:

Just modify /src/gtk/gsockgtk.cpp



#define GSocket GlibGSocket
#include <gdk/gdk.h>
#include <glib.h>
#undef GSocket


(The first and last row have been added.)
Then compilation of wxGTK should work.

Regards, Zenju
Posts: 4
Joined: 6 Jan 2010

digital-patrick

Hi Zenju,

thank you very much for your help.
These two more lines did the trick - no errors - a perfect build.

I did my first sync - and FreeFileSync is really great!
You saved my day ;-)

Patrick
Posts: 4
Joined: 18 Mar 2010

jewt

Hi,

I tried following the recepie above and in compile.txt, including modfying the
gsockgtk.cpp file.
I get errors during the run - error1

The first after "make" in the gtk dir.

if ; then mkdir -p /usr/bin; fi
if ; then mkdir -p /usr/share/FreeFileSync; fi
cp BUILD/FreeFileSync /usr/bin
cp: cannot stat `BUILD/FreeFileSync': No such file or directory
make: *** Error 1


Everything ran during but the last command did not seem to work -

This is printed -

if ; then mkdir -p /usr/bin; fi
if ; then mkdir -p /usr/share/FreeFileSync; fi
cp BUILD/FreeFileSync /usr/bin
cp: cannot stat `BUILD/FreeFileSync': No such file or directory
make: *** Error 1

Running 8.04 I think - because of ATI-drivers for my laptop.
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

>cp: cannot stat `BUILD/FreeFileSync': No such file or directory
This indicates that the FreeFileSync executable has not been built. Maybe
there were some compiling or linking errors before this last errot message?
Posts: 4
Joined: 18 Mar 2010

jewt

I`m totally new to Ubuntu and compiling in general - but trying to learn.

Where do I start looking for errors?
Can the folder placement make things go bad?
Is there anything I can do to try to find and show the error to you? Command
and print the results here, screenshot ...?
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

If you could provide the full compilation log, i.e. everything that is written
to the console during "make", it should be helpful.
(The errors you posted so far must have come from "make install" which
requires the "make" step to have performed successfully)
Posts: 4
Joined: 18 Mar 2010

jewt

Hi,

Here are what is printed after "make" in WxGTK directory:

/home/hiet/WxGTK/wxGTK-2.8.10/bk-deps g++ -c -o coredll_gtk_gsockgtk.o
-I./.pch/wxprec_coredll -D__WXGTK__ -I./src/tiff -I./src/jpeg -I./src/regex
-DWXUSINGDLL -DWXMAKINGDLL_CORE -DwxUSE_BASE=0 -fPIC -DPIC
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-I/home/hiet/WxGTK/wxGTK-2.8.10/lib/wx/include/gtk2-unicode-release-2.8
-I./include -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2
-I/usr/include/libpng12 -I/usr/include/pixman-1 -DWX_PRECOMP -pthread -Wall
-Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing ./src/gtk/gsockgtk.cpp
In file included from ./include/wx/wxprec.h:13,
from ./src/gtk/gsockgtk.cpp:10:
./include/wx/defs.h:237: error: expected constructor, destructor, or type
conversion before ‘typedef’
make: *** Error 1
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

Did you apply the "GSocket" patch for wxGTK as discussed above? This should
solve the wxGTK compilation issues. As an alternative you could also use a
precompiled version of wxGTK as provided by your favorite package manager.
Posts: 4
Joined: 18 Mar 2010

jewt

Hi,

Yes, I tried that.

A print of the first lines of the file:

#include "wx/wxprec.h"

#if wxUSE_SOCKETS

#include <assert.h>
#include <stdlib.h>
#include <stdio.h>

#define GSocket GlibGSocket
#include <gdk/gdk.h>
#include <glib.h>
#undef GSocket

#include "wx/gsocket.h"
#include "wx/unix/gsockunx.h"
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

That's all fine, but the error you're facing is a different one:

>error: expected constructor, destructor, or type conversion before `typedef´

When looking at "./include/wx/defs.h:237" there are a myriad of "defines"
before the typedef statement. It's practically impossible to tell what's
happening exactly without knowing which defines are active in your particular
situation.
Therefore I suggest you contact the wxWidgets team directly, since they
created this nice "decision tree"

http://trac.wxwidgets.org/

Regards, Zenju
Posts: 2
Joined: 17 Dec 2011

kgd1

Help ! I need instructions for installing Freefilesync in a Red Hat system.
Really basic. Step by step. Anyone ?
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

Start with the steps described in "Compile.txt" coming with the sources.
Posts: 2
Joined: 17 Dec 2011

kgd1

Re: "Start with the steps described in "Compile.txt" coming with the
sources.". Where ? The download I got does not have this file. Just binaries.
Help. I need a link -- anything. My goal is not to make a career of being a
linux expert -- just to use the tool for what I care about.
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

[404, Invalid URL: http://sourceforge.net/projects/freefilesync/files/freefilesync/v4.5/]
Posts: 2
Joined: 26 May 2011

brianhanson2nd

I get this Error when trying to run. Won't do anything unless I launch via the
terminal and then I get this code.

error while loading shared libraries: libgtkmm-2.4.so.1: wrong ELF class:
ELFCLASS64

I've looked in my package manager and see that I have both libgtkmm-3.0-1 and
libgtkmm-2.4-1c2a installed.

Running Linux Mint 12, Gnome on a 64 bit system, if that matters at all.

Any help is greatly appreciated.
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

The precompiled version of FFS has been compiled with Ubuntu 10.10 x86, so it
is quite possible it's not working on a 64 bit Mint.
The Ubuntu familiy of Linux is covered here: https://launchpad.net/~freefilesync/+archive/ffs
If this is not working for some reason, the last option is to compile manually
from the sources (it's not difficult).
Posts: 2
Joined: 26 May 2011

brianhanson2nd

Where do I find the sources?
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

[404, Invalid URL: http://sourceforge.net/projects/freefilesync/files/freefilesync/v4.6/]