Hello,
I am trying to build Flatpak for SciDAVis, a scientific and data plotting software.
I failed to compile it.
In file included from src/ImageMarker.cpp:30:
src/ImageMarker.h:32:10: fatal error: qwt_plot.h: No such file or directory
32 | #include <qwt_plot.h>
| ^~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:4234: …/tmp/libscidavis/ImageMarker.o] Error 1
make[1]: *** Waiting for unfinished jobs…
In file included from src/ArrowMarker.h:32,
from src/ArrowMarker.cpp:29:
src/PlotEnrichement.h:32:10: fatal error: qwt_plot.h: No such file or directory
32 | #include <qwt_plot.h>
| ^~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:4230: …/tmp/libscidavis/ArrowMarker.o] Error 1
src/Cone3D.cpp:30:10: fatal error: qwt3d_color.h: No such file or directory
30 | #include <qwt3d_color.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:4339: …/tmp/libscidavis/Cone3D.o] Error 1
src/TitlePicker.cpp:31:10: fatal error: qwt_plot.h: No such file or directory
31 | #include <qwt_plot.h>
| ^~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:3875: …/tmp/libscidavis/TitlePicker.o] Error 1
src/Bar.cpp:31:10: fatal error: qwt3d_color.h: No such file or directory
31 | #include <qwt3d_color.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
This is because it cannot find qwt. However, SciDAVis already include this in their github 3rd party submodule.
How do I tell flatpak-builder to download git submodules for the source file? Because scidavis have 3rd party dependency link to it, and it need that to build.
This is my current io.github.highperformancecoder.SciDAVis.yaml file.
app-id: io.github.highperformancecoder.SciDAVis runtime: org.kde.Platform sdk: org.kde.Sdk runtime-version: '5.15' command: scidavis finish-args: - --share=ipc - --socket=x11 - --device=dri - --env=SESSION_MANAGER= # required to avoid Qt warning - --filesystem=home modules: - name: gsl config-opts: - --disable-static cleanup: - /bin sources: - type: archive url: https://ftp.gnu.org/gnu/gsl/gsl-2.6.tar.gz sha256: b782339fc7a38fe17689cb39966c4d821236c28018b6593ddb6fd59ee40786a8 - shared-modules/glu/glu-9.json - name: scidavis buildsystem: "qmake" disable-submodules: OFF build-options: env: - QMAKEPATH=/app/lib sources: - type: git url: https://github.com/highperformancecoder/scidavis.git tag: "2.3.0" commit: aa0e5c0146846b82872d493053c6efb7d5709317 sha256: 'cc54a8dafeb3dab432ff7a548171f6504038b9de2a07d396bdb604d9a2796f64'
Thank you.