Enblend: Compilation problem with gcc 4.8

23 views
Skip to first unread message

Kornel Benko

unread,
Nov 25, 2016, 5:00:22 AM11/25/16
to Hugin developers list
Compiling enblend, I get this error:

/usr/src/enblend/enblend-code/src/metadata.cc: In function ‘void metadata::augment(Exiv2::Image*)’:
/usr/src/enblend/enblend-code/src/metadata.cc:92:71: error: invalid initialization of non-const reference of type ‘Exiv2::ExifData&’ from an rvalue of type ‘<brace-enclosed initializer list>’
Exiv2::ExifData& output_exif {some_output_metadata->exifData()};

Does it mean, I have a too old c++ compiler? (g++ (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4)

Compiling with version 6.2 is OK, but then I cannot link. Too many undefined references.

Even recompiling vigra, exiv2 and boost with g++6.2 does not help in the end.
(In this case not even hugin is created)

All tries are with clean build directories.

Kornel

signature.asc

Stefan Peter

unread,
Nov 25, 2016, 6:21:13 AM11/25/16
to hugi...@googlegroups.com
Hi Kornel

Am 25.11.2016 um 11:00 schrieb Kornel Benko:
> Compiling enblend, I get this error:
>
> /usr/src/enblend/enblend-code/src/metadata.cc: In function ‘void metadata::augment(Exiv2::Image*)’:
> /usr/src/enblend/enblend-code/src/metadata.cc:92:71: error: invalid initialization of non-const reference of type ‘Exiv2::ExifData&’ from an rvalue of type ‘<brace-enclosed initializer list>’
> Exiv2::ExifData& output_exif {some_output_metadata->exifData()};

With which enblend source?

I do nightly builds of master for ubuntu with
g++ (Debian 4.9.2-10) 4.9.2
and have not seen this error.

The last successful build was 2016-10-10.

However, due to dependency problems, I can build for xenial and yakkety
only.


With kind regards

Stefan Peter

Kornel Benko

unread,
Nov 25, 2016, 6:53:02 AM11/25/16
to hugi...@googlegroups.com
Am Freitag, 25. November 2016 um 12:21:07, schrieb Stefan Peter <s_p...@swissonline.ch>
> Hi Kornel
>
> Am 25.11.2016 um 11:00 schrieb Kornel Benko:
> > Compiling enblend, I get this error:
> >
> > /usr/src/enblend/enblend-code/src/metadata.cc: In function ‘void metadata::augment(Exiv2::Image*)’:
> > /usr/src/enblend/enblend-code/src/metadata.cc:92:71: error: invalid initialization of non-const reference of type ‘Exiv2::ExifData&’ from an rvalue of type ‘<brace-enclosed initializer list>’
> > Exiv2::ExifData& output_exif {some_output_metadata->exifData()};
>
> With which enblend source?

Source directly from trunk. (changeset 1489:5f0e75fac301)

> I do nightly builds of master for ubuntu with
> g++ (Debian 4.9.2-10) 4.9.2
> and have not seen this error.
>
> The last successful build was 2016-10-10.

Hm, the last change to metadata.cc is from oct 18 2016. The relevant
line is already there since oct 11 (changeset 1481:dce1a6baf8bd)

> However, due to dependency problems, I can build for xenial and yakkety
> only.
>
>
> With kind regards
>
> Stefan Peter
>

Kornel
signature.asc

cspiel

unread,
Nov 25, 2016, 7:45:39 AM11/25/16
to hugin and other free panoramic software
On Friday, 25 November 2016 11:00:22 UTC+1, kornel wrote:
Does it mean, I have a too old c++ compiler? (g++ (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4)

Yes.

    Currently, g++-4.9.2 is the minimum requirement for the tip
of the Enblend/Enfuse development branch.

/cls

Kornel Benko

unread,
Nov 25, 2016, 7:55:13 AM11/25/16
to hugi...@googlegroups.com
Am Freitag, 25. November 2016 um 04:45:38, schrieb cspiel <csp...@freenet.de>
Thanks for the info. Seems, I am out of the game :(

Kornel
signature.asc

Greg 'groggy' Lehey

unread,
Nov 25, 2016, 5:11:31 PM11/25/16
to hugi...@googlegroups.com
As a data point, clang 3.4.1 works fine, though it finds many things
to warn about.

Greg
--
Sent from my desktop computer.
Finger gr...@FreeBSD.org for PGP public key.
See complete headers for address and phone numbers.
This message is digitally signed. If your Microsoft mail program
reports problems, please read http://lemis.com/broken-MUA
signature.asc
Reply all
Reply to author
Forward
0 new messages