As @llothar recently wrote: “Flatpak itself seem to not have it’s own forum…”, so I’m here.
I’ve successfully built a Flatpak for “myapp” without one of its dependencies. When I try again with that included it fails with
...configure: creating ./config.status
config.status: creating Makefile
config.status: creating glu.pc
config.status: executing depfiles commands
config.status: executing libtool commands
CC src/libutil/error.lo
CC src/libutil/glue.lo
CC src/libutil/mipmap.lo
src/libutil/error.c:60:10: error: ‘NULL’ undeclared here (not in a function)
60 | { ~0, NULL } /* end of list indicator */
| ^~~~
src/libutil/error.c:34:1: note: ‘NULL’ is defined in header ‘<stddef.h>’; did you forget to ‘#include <stddef.h>’?
33 | #include <GL/glu.h>
+++ |+#include <stddef.h>
34 |
make: *** [Makefile:1119: src/libutil/error.lo] Error 1
make: *** Waiting for unfinished jobs....
Error: module glu: Child process exited with code 2
It used to work originally, but now I have some time to attempt to finish it, it no longer works.
I don’t know anything about the included application or how to compile it - someone very helpfully wrote that part of the .yml file for me. I can include more of the yml file if that would help.
This part didn’t link to an existing download, until I added the ‘.git’ could that be it? I don’t know why it has ‘Commit:’ where the other parts have what I would expect - ‘sha256:’ .
I was reluctant to mess with a manifest (specification file) which was written by an expert and I didn’t understand. However, since it no longer works I haven’t got a lot to lose! I have removed all the sections except the one for the particular function I want. That seemed to work better, but later errored complaining it was missing something - which was in another section. Replacing that too has resulted in the building taking a very long time - which is a good thing as it means progress. I’m waiting for it to finish - one way or another.
Edit: It keeps failing complaining that bits are missing, so I keep replacing them, looks like they may all be necessary after all.
That sounds useful, myapp uses an OS call to run align-image-stack on some files. I don’t need any other Hugin function. I think align-image-stack is a part of hugin-tools.
If you were able to pick out the bits that are needed I’d be interested to see it.
I had a look at sourceforge, then decided to retry with what I’ve got first. I removed the sections except align-image-stack and replaced them as the build complained about them being missing. They were all necessary. It all seems alright (for about 1/2hr) until it gets to here:
[62/304] Building CXX object src/hugin…inbase.dir/panodata/SrcPanoImage.cpp.o
FAILED: src/hugin_base/CMakeFiles/huginbase.dir/panodata/SrcPanoImage.cpp.o
/usr/bin/c++ -DGLEW_STATIC -Dhuginbase_EXPORTS -Isrc -I…/src/hugin_base -I…/src/celeste -Isrc/celeste -I…/src -I/app/include/OpenEXR -I/app/include -I…/src/foreign -march=x86-64 -mtune=generic -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -DNDEBUG -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)
^
[63/304] Building CXX object src/hugin…dir/panodata/ImageVariableGroup.cpp.o
Hopefully if we can align-image-stack working it will be a step towards you getting your Hugin Flatpak working.
This section might be the whole problem. the 3.30 SDK is old. Try 3.36, or 3.38. But for Hugin I just use the org.freedesktop.Platform//19.08 platform / SDK
Mixup! I was supposed to be using 3.38, but I went back to the original manifest to get rid of my mods adn forgot to edit out ‘3.30’. Correcting it to 3.38 brings back the original error. I’ll install org.freedesktop.Platform//19.08 platform / SDK and try that.
configure: creating ./config.status
config.status: creating Makefile
config.status: creating glu.pc
config.status: executing depfiles commands
config.status: executing libtool commands
CC src/libutil/error.lo
CC src/libutil/glue.lo
CC src/libutil/mipmap.lo
src/libutil/error.c:60:10: error: ‘NULL’ undeclared here (not in a function)
60 | { ~0, NULL } /* end of list indicator */
| ^~~~
src/libutil/error.c:34:1: note: ‘NULL’ is defined in header ‘<stddef.h>’; did you forget to ‘#include <stddef.h>’?
33 | #include <GL/glu.h>
+++ |+#include <stddef.h>
34 |
make: *** [Makefile:1119: src/libutil/error.lo] Error 1
make: *** Waiting for unfinished jobs....
Error: module glu: Child process exited with code 2
Using 36 I still get the same old error.
I thought I’d better include these from the shared-modules directory.
glu-9.0.0.json
Try updating the shared-modules and then you need to use the renamed json. The manifest for glu has changed, and I suspect that the source of your troubles.