Ubuntu/Linux Installation

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

Post by warakurna • 19 Aug 2009, 09:10

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...

tullmejs
Posts: 1
Joined: 19 Aug 2009

Post by tullmejs • 19 Aug 2009, 09:25

warakurna wrote: 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...
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
Zenju
Site Admin
Posts: 4670
Joined: 9 Dec 2007

Post by Zenju • 19 Aug 2009, 10:16

warakurna wrote: 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...
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

cheekysi
Posts: 1
Joined: 24 Dec 2009

Post by cheekysi • 24 Dec 2009, 11:30

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
Zenju
Site Admin
Posts: 4670
Joined: 9 Dec 2007

Post by Zenju • 24 Dec 2009, 11:38

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.

digital-patrick
Posts: 4
Joined: 6 Jan 2010

Post by digital-patrick • 06 Jan 2010, 16:54

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
Zenju
Site Admin
Posts: 4670
Joined: 9 Dec 2007

Post by Zenju • 06 Jan 2010, 20:44

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

digital-patrick
Posts: 4
Joined: 6 Jan 2010

Post by digital-patrick • 07 Jan 2010, 13:26

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
Zenju
Site Admin
Posts: 4670
Joined: 9 Dec 2007

Post by Zenju • 07 Jan 2010, 14:10

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

digital-patrick
Posts: 4
Joined: 6 Jan 2010

Post by digital-patrick • 11 Jan 2010, 10:22

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

jewt
Posts: 4
Joined: 18 Mar 2010

Post by jewt • 18 Mar 2010, 23:52

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
Zenju
Site Admin
Posts: 4670
Joined: 9 Dec 2007

Post by Zenju • 19 Mar 2010, 08:30

>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?

jewt
Posts: 4
Joined: 18 Mar 2010

Post by jewt • 19 Mar 2010, 12:27

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
Zenju
Site Admin
Posts: 4670
Joined: 9 Dec 2007

Post by Zenju • 19 Mar 2010, 13:35

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)

jewt
Posts: 4
Joined: 18 Mar 2010

Post by jewt • 22 Mar 2010, 21:32

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
Zenju
Site Admin
Posts: 4670
Joined: 9 Dec 2007

Post by Zenju • 23 Mar 2010, 08:24

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.

jewt
Posts: 4
Joined: 18 Mar 2010

Post by jewt • 25 Mar 2010, 15:11

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
Zenju
Site Admin
Posts: 4670
Joined: 9 Dec 2007

Post by Zenju • 25 Mar 2010, 21:25

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

kgd1
Posts: 2
Joined: 17 Dec 2011

Post by kgd1 • 17 Dec 2011, 00:19

Help ! I need instructions for installing Freefilesync in a Red Hat system.
Really basic. Step by step. Anyone ?

User avatar
Zenju
Site Admin
Posts: 4670
Joined: 9 Dec 2007

Post by Zenju • 17 Dec 2011, 11:22

Start with the steps described in "Compile.txt" coming with the sources.

kgd1
Posts: 2
Joined: 17 Dec 2011

Post by kgd1 • 19 Dec 2011, 07:38

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
Zenju
Site Admin
Posts: 4670
Joined: 9 Dec 2007

Post by Zenju • 19 Dec 2011, 10:49

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

brianhanson2nd
Posts: 2
Joined: 26 May 2011

Post by brianhanson2nd • 24 Dec 2011, 12:43

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
Zenju
Site Admin
Posts: 4670
Joined: 9 Dec 2007

Post by Zenju • 24 Dec 2011, 23:59

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).

brianhanson2nd
Posts: 2
Joined: 26 May 2011

Post by brianhanson2nd • 08 Jan 2012, 22:40

Where do I find the sources?