Flatpak build error

I wasn’t really sure what you meant, so I deleted the .flatpak-builder directory and included the contents of the glew and glu files in the main manifest which I hoped would update anything to do with them next time I ran the build. Result - same old error!

NDEBUG -fPIC -fopenmp -pthread -std=gnu++11 -MD -MT src/hugin_base/CMakeFiles/huginbase.dir/panodata/SrcPanoImage.cpp.o -MF src/hugin_base/CMakeFiles/huginbase.dir/panodata/SrcPanoImage.cpp.o.d -o src/hugin_base/CMakeFiles/huginbase.dir/panodata/SrcPanoImage.cpp.o -c …/src/hugin_base/panodata/SrcPanoImage.cpp
…/src/hugin_base/panodata/SrcPanoImage.cpp: In member function ‘bool HuginBase::SrcPanoImage::readEXIF()’:
…/src/hugin_base/panodata/SrcPanoImage.cpp:358:30: error: expected unqualified-id before ‘&’ token
catch (const Exiv2::Error& e)
^
…/src/hugin_base/panodata/SrcPanoImage.cpp:358:30: error: expected ‘)’ before ‘&’ token
catch (const Exiv2::Error& e)
~ ^
)
…/src/hugin_base/panodata/SrcPanoImage.cpp:358:30: error: expected ‘{’ before ‘&’ token
…/src/hugin_base/panodata/SrcPanoImage.cpp:358:32: error: ‘e’ was not declared in this scope
catch (const Exiv2::Error& e)
^
ninja: build stopped: subcommand failed.
Error: module align_image_stack: Child process exited with code 1

Might that be because I didn’t include the patch for exiv2?

Are you sure that old version of hugin build with that version of exiv2? That’s what the problem look like. Either because the API changed (I don’t think) or because said source file is missing an include that it should have had.

(I build 2019.2 and have no problem, so this probably mean the problem is fixed there)

Tried again with everything original, except for the URL of exiv2 - I have replaced it with one which exists, and glew and glu are now inline to be sure that they are rebuilt.

It’s builds and runs! That includes align-image-stack!

One problem remains - it built and ran on 3.30. I have since tried with 3.38 and it fails with the usual error. That’s inconvenient because 3.30 is unsupported since January this year. Maybe can put off worrying about this until later.
Thanks for your help Hub!

I’ve found that it will build with a version of the Freedesktop Platform, but that doesn’t contain Gnome and it would be impractical for me to add it. It won’t build with a recent Gnome Platform.

I might post some queries:

  • On here asking for help to sort out the manifest.
  • On Gnome asking what has been dropped/changed.
  • On Hugin asking someone to look at the error messages.

However I think it is a nightmare which is beyond my ability to tackle, so I intend to resubmit the package without the important function provided by align-image-stack. It will definitely be second-rate, but that’s better than nothing.

The errors appear to be from wxwidgets when building align-image-stack. Gnome Discourse suggests that changes between 3.32 and 3.34 may mean that wxwidgets isn’t built in a way that is suitable for align-image-stack. That’s beyond my ability to sort out. So it’ll be the cut-down version.

App going live soon, thanks.

I’ve rebuilt this with org.gnome. Platform V40 and the latest versions of all the modules. It now works including align-image-stack. I have the impression there was a bug in one of the modules and that in addition to adding Gnome stuff to the platform they must have taken something out from the freedesktop version. Very confusing.