Problems when compiling ffs for Lucid

Get help for specific problems
Posts: 2
Joined: 7 Jan 2012

kennethwrede

I have found that it is no updated PPA or package for Ubuntu 10.04 (Lucid
Lynx), that is a pity so I decided to make it myself.
I downloaded the source code and started follow the instructions given in
“Compile.txt”, I was able to finish every step without error messages. The
only step I left out was #6 when Lucid does not use Unity at all. (It is not
even possible to fullfill.)

The package “build-essential” was downloaded from Ubuntus resporatory,
likewise was “libgtkmm-2.4-dev”.

The packages “wxWidgets-2.8.12” and “boost_1_48_0 “ was downloaded and
installed from their own sites. I choosed the latest stable.

When I run “make” in the FreeFileSync_v4.6 folder, I got following output.
(Complete.)



lucid@lucid-desktop:~$ cd '/home/lucid/Downloads/FreeFileSync_v4.6'
lucid@lucid-desktop:~/Downloads/FreeFileSync_v4.6$ make
if [ ! -d ./OBJ ]; then mkdir OBJ; fi
if [ ! -d ./OBJ/FFS_Release_GCC_Make ]; then mkdir OBJ/FFS_Release_GCC_Make; fi
g++ -Wall -pipe `pkg-config --cflags gtk+-2.0` -O3 -pthread -std=gnu++0x -DNDEBUG -DwxUSE_UNICODE -DFFS_LINUX -DZEN_PLATFORM_OTHER -DWXINTL_NO_GETTEXT_MACRO -I. -include "zen/i18n.h" `wx-config --cxxflags --debug=no --unicode=yes` `pkg-config --cflags gtkmm-2.4` `pkg-config --cflags libselinux ` -DHAVE_SELINUX -c algorithm.cpp -o OBJ/FFS_Release_GCC_Make/algorithm.o
In file included from ./zen/i18n.h:13,
from <command-line>:0:
./zen/utf8.h: In function ‘Function zen::implementation::utf8ToCodePoint(CharIterator, CharIterator, Function)’:
./zen/utf8.h:180: error: expected primary-expression before ‘[’ token
./zen/utf8.h:180: error: expected primary-expression before ‘]’ token
./zen/utf8.h:180: error: expected primary-expression before ‘&’ token
./zen/utf8.h:180: error: ‘ch’ was not declared in this scope
./zen/utf8.h:180: error: expected unqualified-id before ‘bool’
./zen/utf8.h:180: error: unable to deduce ‘auto’ from ‘<expression error>’
./zen/utf8.h:180: error: expected ‘,’ or ‘;’ before ‘bool’
algorithm.cpp:1573: error: expected ‘}’ at end of input
algorithm.cpp:1573: error: expected ‘}’ at end of input
algorithm.cpp: At global scope:
algorithm.cpp:1573: error: expected ‘}’ at end of input
algorithm.cpp:1573: error: expected ‘}’ at end of input
make: *** [algorithm.dep] Error 1
lucid@lucid-desktop:~/Downloads/FreeFileSync_v4.6$



When I am new to compiling, my questions is: What is this? Is it bugs in the
source code or some problems with the compiling software? And am I supposed to
be identify the problem out of this output and solve it on my own?
Maybe I am missing something obvious, but well, I have missed it then. I do
not really know how to continue from here. I am happy for every attempt to
explain the matter for me.

/Kenneth
User avatar
Site Admin
Posts: 7086
Joined: 9 Dec 2007

Zenju

The FFS v4.6 sources need GCC 4.6.1 or higher. However Ubuntu 10.04 uses an
older GCC version. The "simplest" way to fix this is to upgrade to Ubuntu
11.10 which ships with GCC 4.6.1
User avatar
Site Admin
Posts: 7086
Joined: 9 Dec 2007

Zenju

> And am I supposed to be identify the problem out of this output and solve it
on my own?
Well, if you know C++, of course: "error: expected primary-expression before
‘[’ token " obviously means "compiler doesn't know the C++11 lambda syntax.
If you're not a programmer, then most definitively not.
Posts: 2
Joined: 7 Jan 2012

kennethwrede

Thanks a lot, now I know where to continue. I am quite far from a programmer,
I realised that the messages about the '[' and '{' tokens must mean a problem
with the source code in some way. But if it had been, then you should not have
published it. It maked me confused. But I should never have guessed that it
could not read the syntax at all. Thanks again. :)

/Kenneth