Inclusion of align-image-stack in a Flatpak

Asked by ChrisOfBristol

runtime: org.gnome.Platform 3.38 sdk: org.gnome.Sdk

I have a Flatpak application which needs align-image-stack. It used to work but it now fails to build. It builds several modules which align_image_stack needs, then the program itself. It fails to build align_image_stack.

[257/304] Linking CXX executable src/hugin1/hugin/hugin
FAILED: src/hugin1/hugin/hugin
: && /usr/bin/c++ -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -
..
..
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/etcetera/etcetera/etcetera/etcetera/x86_64-unknown-linux-gnu/bin/ld: src/hugin1/hugin/CMakeFiles/hugin.dir/GLViewer.cpp.o: warning: relocation against _ZTV10wxGLCanvas in read-only section .text.unlikely
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/etcetera/etcetera/etcetera/etcetera/x86_64-unknown-linux-gnu/bin/
..
..
ld: src/hugin1/hugin/CMakeFiles/hugin.dir/GLViewer.cpp.o:(.data.rel.ro._ZTV10GLOverview[_ZTV10GLOverview]+0x638): undefined reference to wxGLCanvas::GetXWindow() const
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/etcetera/etcetera/etcetera/etcetera/x86_64-unknown-linux-gnu/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
Error: module align_image_stack: Child process exited with code 1

Any idea what is causing this problem?

Question information

Language:
English Edit question
Status:
Expired
For:
Hugin Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
ChrisOfBristol (chrisofbristol-deactivatedaccount) said :
#2

Please ignore answer #1 which is no longer a problem.

Revision history for this message
ChrisOfBristol (chrisofbristol-deactivatedaccount) said :
#3

This now gets a bit further, any idea what I need to do to fix it? Is there any way I can get some help with creating a Flatpak which includes align_image_stack?

FAILED: src/hugin1/hugin/hugin
: && /usr/bin/c++ -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 -pthread.........
..
..
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: src/hugin1/hugin/CMakeFiles/hugin.dir/GLViewer.cpp.o: warning: relocation against `_ZTV10wxGLCanvas' in read-only section `.text.unlikely'
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: DWARF error: could not find variable specification at offset b5141
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: DWARF error: could not find variable specification at offset b5176
..
..

src/hugin1/hugin/CMakeFiles/hugin.dir/GLPreviewFrame.cpp.o: in function `GLwxAuiFloatingFrame::GLwxAuiFloatingFrame(wxWindow*, GLwxAuiManager*, wxAuiPaneInfo const&, int, long)':
/run/build/align_image_stack/_flatpak_build/../src/hugin1/hugin/GLPreviewFrame.h:147: undefined reference to `wxAuiFloatingFrame::wxAuiFloatingFrame(wxWindow*, wxAuiManager*, wxAuiPaneInfo const&, int, long)'
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: src/hugin1/hugin/CMakeFiles/hugin.dir/GLPreviewFrame.cpp.o: in function `GLwxAuiFloatingFrame::OnActivate(wxActivateEvent&)':
/run/build/align_image_stack/_flatpak_build/../src/hugin1/hugin/GLPreviewFrame.cpp:231: undefined reference to `wxAuiFloatingFrame::GetOwnerManager() const'
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: src/hugin1/hugin/CMakeFiles/hugin.dir/GLPreviewFrame.cpp.o: in function `GLPreviewFrame::~GLPreviewFrame()':
/run/build/align_image_stack/_flatpak_build/../src/hugin1/hugin/GLPreviewFrame.cpp:789: undefined reference to `wxAuiManage
..
..
error: could not find variable specification at offset 5e4be
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: DWARF error: could not find variable specification at offset 5e1fb
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: DWARF error: could not find variable specification at offset 5e209
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: DWARF error: could not find variable specification at offset 5e3c7
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: DWARF error: could not find variable specification at offset 5e3fc
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: DWARF error: could not find variable specification at offset 5e3ba
src/hugin1/hugin/CMakeFiles/hugin.dir/GLViewer.cpp.o: in function `GLViewer::GLViewer(wxWindow*, HuginBase::Panorama&, int*, GLPreviewFrame*, wxGLContext*)':
/run/build/align_image_stack/_flatpak_build/../src/hugin1/hugin/GLViewer.cpp:75: undefined reference to `wxGLCanvas::wxGLCanvas(wxWindow*, int, int const*, wxPoint const&, wxSize const&, long, wxString const&, wxPalette const&)'
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /run/build/align_image_stack/_flatpak_build/../src/hugin1/hugin/GLViewer.cpp:78: undefined referen
..
..
view]+0x620): undefined reference to `wxGLCanvasX11::SwapBuffers()'
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: src/hugin1/hugin/CMakeFiles/hugin.dir/GLViewer.cpp.o:(.data.rel.ro._ZTV10GLOverview[_ZTV10GLOverview]+0x638): undefined reference to `wxGLCanvas::GetXWindow() const'
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
[259/304] Building CXX object src/hugi...MakeFiles/PTBatcherGUI.dir/Batch.cpp.o
ninja: build stopped: subcommand failed.
Error: module align_image_stack: Child process exited with code 1

Revision history for this message
tmodes (tmodes) said :
#4

We don't provide a flatpak of Hugin. But there is a flatpak of Hugin available on flathub https://flathub.org/apps/details/net.sourceforge.Hugin (also linked on download page). Maybe you will find there more information about the flatpak.

Revision history for this message
ChrisOfBristol (chrisofbristol-deactivatedaccount) said :
#5

That's just a link to the app. Where may I find the Flatpak manifest for Hugin or just align-image-stack?

Revision history for this message
tmodes (tmodes) said :
#6

The flatpak was provided by the community. I have no knowledge about the details. But there is link called "see details" with more information in a github repository.

Revision history for this message
ChrisOfBristol (chrisofbristol-deactivatedaccount) said :
#7

It fails to build with the message below, I assume that would happen whether it was built for a Flatpak or not. Would the error be in align-image-stack itself, or caused by one of the constituent modules (wxWidgets, libpano13, ilmbase, openexr, vigra, exiv2, boost)?

[258/304] Linking CXX executable src/hugin1/hugin/hugin
FAILED: src/hugin1/hugin/hugin
: && /usr/bin/c++ -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -
..
..
..
/usr/lib/gcc/x86_64-unknown-linux-gnu/9.3.0/../../../../x86_64-unknown-linux-gnu/bin/ld: src/hugin1/hugin/CMakeFiles/hugin.dir/GLViewer.cpp.o:(.data.rel.ro._ZTV10GLOverview[_ZTV10GLOverview]+0x638): undefined reference to `wxGLCanvas::GetXWindow() const'
collect2: error: ld returned 1 exit status
[259/304] Building CXX object src/hugin1/ptbatcher/CMakeFiles/PTBatcherGUI.dir/Batch.cpp.o
ninja: build stopped: subcommand failed.
Error: module align_image_stack: Child process exited with code 1

Revision history for this message
Launchpad Janitor (janitor) said :
#8

This question was expired because it remained in the 'Open' state without activity for the last 15 days.