From 9386f5b92fe6b4f684bb96efc8ba4013488eb856 Mon Sep 17 00:00:00 2001
From: Andy Great
Date: Sat, 17 Jul 2021 15:25:04 +0700
Subject: [PATCH 1/6] add flatpak
---
.gitmodules | 3 +
.../com.github.Kitware.TeleSculptor.desktop | 11 ++
...m.github.Kitware.TeleSculptor.metainfo.xml | 39 ++++++
.../com.github.Kitware.TeleSculptor.yaml | 115 ++++++++++++++++++
packaging/Flatpak/shared-modules | 1 +
5 files changed, 169 insertions(+)
create mode 100644 .gitmodules
create mode 100644 packaging/Flatpak/com.github.Kitware.TeleSculptor.desktop
create mode 100644 packaging/Flatpak/com.github.Kitware.TeleSculptor.metainfo.xml
create mode 100644 packaging/Flatpak/com.github.Kitware.TeleSculptor.yaml
create mode 160000 packaging/Flatpak/shared-modules
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 000000000..10a84ffb7
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "packaging/Flatpak/shared-modules"]
+ path = packaging/Flatpak/shared-modules
+ url = https://github.com/flathub/shared-modules
diff --git a/packaging/Flatpak/com.github.Kitware.TeleSculptor.desktop b/packaging/Flatpak/com.github.Kitware.TeleSculptor.desktop
new file mode 100644
index 000000000..e332b38c5
--- /dev/null
+++ b/packaging/Flatpak/com.github.Kitware.TeleSculptor.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Version=1.0
+Name=TeleSculptor
+GenericName=Aerial Photogrammetry
+Comment=Photogrammetry designed with a focus on aerial video
+Exec=TeleSculptor %U
+Terminal=false
+Type=Application
+Icon=com.github.Kitware.TeleSculptor
+Categories=Qt;Science;DataVisualization;
+
diff --git a/packaging/Flatpak/com.github.Kitware.TeleSculptor.metainfo.xml b/packaging/Flatpak/com.github.Kitware.TeleSculptor.metainfo.xml
new file mode 100644
index 000000000..7e717c2b9
--- /dev/null
+++ b/packaging/Flatpak/com.github.Kitware.TeleSculptor.metainfo.xml
@@ -0,0 +1,39 @@
+
+
+ com.github.Kitware.TeleSculptor
+ com.github.Kitware.TeleSculptor.desktop
+ TeleSculptor
+ Photogrammetry designed with a focus on aerial video
+ CC0-1.0
+ BSD-3-Clause
+
+
+ TeleSculptor is a cross-platform desktop application for photogrammetry.
+ It was designed with a focus on aerial video, such as video collected from
+ UAVs, and handles geospatial coordinates and can make use of metadata,
+ if available, from GPS and IMU sensors. However, the software can also work
+ with non-geospatial data and with collections of images instead of metadata.
+ TeleSculptor uses Structure-from-Motion techniques to estimate camera
+ parameters as well as a sparse set of 3D landmarks.
+ It uses Multiview Stereo techniques to estimate dense depth maps on key
+ frame and then fuses those depth maps into a consistent surface mesh which
+ can be colored from the source imagery.
+
+
+ https://github.com/Kitware/TeleSculptor
+ https://github.com/Kitware/TeleSculptor/issues
+ Kitware
+
+
+ https://raw.githubusercontent.com/Kitware/TeleSculptor/master/doc/screenshot/telesculptor_screenshot_linux.png
+
+
+ https://raw.githubusercontent.com/Kitware/TeleSculptor/master/doc/screenshot/telesculptor_screenshot_calibration.png
+
+
+
+
+
+
+
+
diff --git a/packaging/Flatpak/com.github.Kitware.TeleSculptor.yaml b/packaging/Flatpak/com.github.Kitware.TeleSculptor.yaml
new file mode 100644
index 000000000..33f36153c
--- /dev/null
+++ b/packaging/Flatpak/com.github.Kitware.TeleSculptor.yaml
@@ -0,0 +1,115 @@
+app-id: com.github.Kitware.TeleSculptor
+runtime: org.kde.Platform
+sdk: org.kde.Sdk
+runtime-version: '5.15'
+command: TeleSculptor
+finish-args:
+ - --share=ipc
+ - --socket=x11
+ - --device=dri
+cleanup:
+ - /include
+ - /lib/pkgconfig
+ - /share/man
+ - "*.la"
+ - "*.a"
+
+modules:
+ - shared-modules/glew/glew.json
+ - shared-modules/glu/glu-9.json
+
+ #- name: python-numpy
+ #buildsystem: simple
+ #build-commands:
+ #- python3 setup.py install --prefix=${FLATPAK_DEST} --root=/ --optimize=1
+ #sources:
+ #- type: archive
+ #url: https://files.pythonhosted.org/packages/66/03/818876390c7ff4484d5a05398a618cfdaf0a2b9abb3a7c7ccd59fe181008/numpy-1.21.0.zip
+ #sha256: e80fe25cba41c124d04c662f33f6364909b985f2eb5998aaa5ae4b9587242cce
+ #x-checker-data:
+ #type: pypi
+ #name: numpy
+
+ #- name: pybind11
+ #buildsystem: simple
+ #build-commands:
+ #- python3 setup.py build
+ #- cmake -DPYBIND11_INSTALL=ON -DPYBIND11_TEST=OFF -DCMAKE_INSTALL_INCLUDEDIR:PATH=${FLATPAK_DEST}/include -DCMAKE_INSTALL_LIBDIR:PATH=${FLATPAK_DEST}/lib -DCMAKE_INSTALL_DATAROOTDIR:PATH=${FLATPAK_DEST}/share .
+ #- python3 setup.py install --prefix=${FLATPAK_DEST}
+ #- cmake --build .
+ #- cmake --install .
+ #sources:
+ #- type: archive
+ #url: https://github.com/pybind/pybind11/archive/v2.6.2.tar.gz
+ #sha256: 8ff2fff22df038f5cd02cea8af56622bc67f5b64534f1b83b9f133b8366acff2
+ #x-checker-data:
+ #type: anitya
+ #project-id: 13384
+ #stable-only: true
+ #url-template: https://github.com/pybind/pybind11/archive/v$version.tar.gz
+
+ - name: lapack
+ buildsystem: cmake-ninja
+ builddir: true
+ config-opts:
+ - -DCMAKE_BUILD_TYPE=Release
+ - -DBUILD_SHARED_LIBS=ON
+ - -DBUILD_TESTING=OFF
+ - -DLAPACKE=ON
+ - -DCBLAS=ON
+ sources:
+ - type: archive
+ url: https://github.com/Reference-LAPACK/lapack/archive/refs/tags/v3.10.0.tar.gz
+ sha256: 328c1bea493a32cac5257d84157dc686cc3ab0b004e2bea22044e0a59f6f8a19
+ x-checker-data:
+ type: anitya
+ project-id: 1534
+ stable-only: true
+ url-template: https://github.com/Reference-LAPACK/lapack/archive/refs/tags/v$version.tar.gz
+
+ # TeleSculptor need libicui18n.so.60
+ - name: ICU-60
+ subdir: source
+ config-opts:
+ - --disable-static
+ - --enable-shared
+ - --disable-samples
+ sources:
+ - type: archive
+ url: https://github.com/unicode-org/icu/releases/download/release-60-3/icu4c-60_3-src.tgz
+ sha256: 476287b17db6e0b7da230dce4b58e8e5669b1510847f82cab3647920f1374390
+
+ # Install the binary instead of building from source, I can't figured it out.
+ # Use source file only for LICENSE and icon file, self-extract file does not extract LICENSE.
+ - name: TeleSculptor
+ buildsystem: simple
+ ensure-writable:
+ - /lib
+ - /share
+ build-commands:
+ - chmod +x TeleSculptor-1.1.2-Linux-x86_64.sh
+ - yes | ./TeleSculptor-1.1.2-Linux-x86_64.sh
+ - cd TeleSculptor-1.1.2-Linux-x86_64 && cp -r {bin,lib,share} ${FLATPAK_DEST}
+ - cp -r sourcefile/LICENSE ${FLATPAK_DEST}/share/telesculptor
+ - mkdir -p /app/share/icons/hicolor/512x512/apps
+ - cp -r sourcefile/gui/icons/512x512/telesculptor.png ${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png
+ - install -Dm0644 $FLATPAK_ID.metainfo.xml ${FLATPAK_DEST}/share/metainfo/$FLATPAK_ID.metainfo.xml
+ - install -Dm0644 $FLATPAK_ID.desktop ${FLATPAK_DEST}/share/applications/$FLATPAK_ID.desktop
+ sources:
+ - type: file
+ url: https://github.com/Kitware/TeleSculptor/releases/download/v1.1.2/TeleSculptor-1.1.2-Linux-x86_64.sh
+ sha256: da4e498045b746f61a559504a3894fa5e536184cda7c5a10f036e5694e3ba13b
+ x-checker-data:
+ type: anitya
+ project-id: 222360
+ stable-only: true
+ url-template: https://github.com/Kitware/TeleSculptor/releases/download/v$version/TeleSculptor-$version-Linux-x86_64.sh
+ - type: archive
+ url: https://github.com/Kitware/TeleSculptor/archive/refs/tags/v1.1.2.tar.gz
+ sha256: ec37981b4ba065b51faef44b482a5f6198eaf9f0d7bb47fed3f45aecb8f13cee
+ dest: sourcefile
+ - type: file
+ path: com.github.Kitware.TeleSculptor.metainfo.xml
+ - type: file
+ path: com.github.Kitware.TeleSculptor.desktop
+
diff --git a/packaging/Flatpak/shared-modules b/packaging/Flatpak/shared-modules
new file mode 160000
index 000000000..ccb58f2c6
--- /dev/null
+++ b/packaging/Flatpak/shared-modules
@@ -0,0 +1 @@
+Subproject commit ccb58f2c69950bfbd5df0bc9960070afdbab2a3e
From eb45418fe8bf5dfc9fe707f15044c53993940eab Mon Sep 17 00:00:00 2001
From: Andy Great
Date: Fri, 24 Sep 2021 17:50:34 +0200
Subject: [PATCH 2/6] update flatpak
---
.../com.github.Kitware.TeleSculptor.desktop | 11 --
...m.github.Kitware.TeleSculptor.metainfo.xml | 39 ------
.../com.github.Kitware.TeleSculptor.yaml | 115 ------------------
packaging/Flatpak/shared-modules | 1 -
4 files changed, 166 deletions(-)
delete mode 100644 packaging/Flatpak/com.github.Kitware.TeleSculptor.desktop
delete mode 100644 packaging/Flatpak/com.github.Kitware.TeleSculptor.metainfo.xml
delete mode 100644 packaging/Flatpak/com.github.Kitware.TeleSculptor.yaml
delete mode 160000 packaging/Flatpak/shared-modules
diff --git a/packaging/Flatpak/com.github.Kitware.TeleSculptor.desktop b/packaging/Flatpak/com.github.Kitware.TeleSculptor.desktop
deleted file mode 100644
index e332b38c5..000000000
--- a/packaging/Flatpak/com.github.Kitware.TeleSculptor.desktop
+++ /dev/null
@@ -1,11 +0,0 @@
-[Desktop Entry]
-Version=1.0
-Name=TeleSculptor
-GenericName=Aerial Photogrammetry
-Comment=Photogrammetry designed with a focus on aerial video
-Exec=TeleSculptor %U
-Terminal=false
-Type=Application
-Icon=com.github.Kitware.TeleSculptor
-Categories=Qt;Science;DataVisualization;
-
diff --git a/packaging/Flatpak/com.github.Kitware.TeleSculptor.metainfo.xml b/packaging/Flatpak/com.github.Kitware.TeleSculptor.metainfo.xml
deleted file mode 100644
index 7e717c2b9..000000000
--- a/packaging/Flatpak/com.github.Kitware.TeleSculptor.metainfo.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
- com.github.Kitware.TeleSculptor
- com.github.Kitware.TeleSculptor.desktop
- TeleSculptor
- Photogrammetry designed with a focus on aerial video
- CC0-1.0
- BSD-3-Clause
-
-
- TeleSculptor is a cross-platform desktop application for photogrammetry.
- It was designed with a focus on aerial video, such as video collected from
- UAVs, and handles geospatial coordinates and can make use of metadata,
- if available, from GPS and IMU sensors. However, the software can also work
- with non-geospatial data and with collections of images instead of metadata.
- TeleSculptor uses Structure-from-Motion techniques to estimate camera
- parameters as well as a sparse set of 3D landmarks.
- It uses Multiview Stereo techniques to estimate dense depth maps on key
- frame and then fuses those depth maps into a consistent surface mesh which
- can be colored from the source imagery.
-
-
- https://github.com/Kitware/TeleSculptor
- https://github.com/Kitware/TeleSculptor/issues
- Kitware
-
-
- https://raw.githubusercontent.com/Kitware/TeleSculptor/master/doc/screenshot/telesculptor_screenshot_linux.png
-
-
- https://raw.githubusercontent.com/Kitware/TeleSculptor/master/doc/screenshot/telesculptor_screenshot_calibration.png
-
-
-
-
-
-
-
-
diff --git a/packaging/Flatpak/com.github.Kitware.TeleSculptor.yaml b/packaging/Flatpak/com.github.Kitware.TeleSculptor.yaml
deleted file mode 100644
index 33f36153c..000000000
--- a/packaging/Flatpak/com.github.Kitware.TeleSculptor.yaml
+++ /dev/null
@@ -1,115 +0,0 @@
-app-id: com.github.Kitware.TeleSculptor
-runtime: org.kde.Platform
-sdk: org.kde.Sdk
-runtime-version: '5.15'
-command: TeleSculptor
-finish-args:
- - --share=ipc
- - --socket=x11
- - --device=dri
-cleanup:
- - /include
- - /lib/pkgconfig
- - /share/man
- - "*.la"
- - "*.a"
-
-modules:
- - shared-modules/glew/glew.json
- - shared-modules/glu/glu-9.json
-
- #- name: python-numpy
- #buildsystem: simple
- #build-commands:
- #- python3 setup.py install --prefix=${FLATPAK_DEST} --root=/ --optimize=1
- #sources:
- #- type: archive
- #url: https://files.pythonhosted.org/packages/66/03/818876390c7ff4484d5a05398a618cfdaf0a2b9abb3a7c7ccd59fe181008/numpy-1.21.0.zip
- #sha256: e80fe25cba41c124d04c662f33f6364909b985f2eb5998aaa5ae4b9587242cce
- #x-checker-data:
- #type: pypi
- #name: numpy
-
- #- name: pybind11
- #buildsystem: simple
- #build-commands:
- #- python3 setup.py build
- #- cmake -DPYBIND11_INSTALL=ON -DPYBIND11_TEST=OFF -DCMAKE_INSTALL_INCLUDEDIR:PATH=${FLATPAK_DEST}/include -DCMAKE_INSTALL_LIBDIR:PATH=${FLATPAK_DEST}/lib -DCMAKE_INSTALL_DATAROOTDIR:PATH=${FLATPAK_DEST}/share .
- #- python3 setup.py install --prefix=${FLATPAK_DEST}
- #- cmake --build .
- #- cmake --install .
- #sources:
- #- type: archive
- #url: https://github.com/pybind/pybind11/archive/v2.6.2.tar.gz
- #sha256: 8ff2fff22df038f5cd02cea8af56622bc67f5b64534f1b83b9f133b8366acff2
- #x-checker-data:
- #type: anitya
- #project-id: 13384
- #stable-only: true
- #url-template: https://github.com/pybind/pybind11/archive/v$version.tar.gz
-
- - name: lapack
- buildsystem: cmake-ninja
- builddir: true
- config-opts:
- - -DCMAKE_BUILD_TYPE=Release
- - -DBUILD_SHARED_LIBS=ON
- - -DBUILD_TESTING=OFF
- - -DLAPACKE=ON
- - -DCBLAS=ON
- sources:
- - type: archive
- url: https://github.com/Reference-LAPACK/lapack/archive/refs/tags/v3.10.0.tar.gz
- sha256: 328c1bea493a32cac5257d84157dc686cc3ab0b004e2bea22044e0a59f6f8a19
- x-checker-data:
- type: anitya
- project-id: 1534
- stable-only: true
- url-template: https://github.com/Reference-LAPACK/lapack/archive/refs/tags/v$version.tar.gz
-
- # TeleSculptor need libicui18n.so.60
- - name: ICU-60
- subdir: source
- config-opts:
- - --disable-static
- - --enable-shared
- - --disable-samples
- sources:
- - type: archive
- url: https://github.com/unicode-org/icu/releases/download/release-60-3/icu4c-60_3-src.tgz
- sha256: 476287b17db6e0b7da230dce4b58e8e5669b1510847f82cab3647920f1374390
-
- # Install the binary instead of building from source, I can't figured it out.
- # Use source file only for LICENSE and icon file, self-extract file does not extract LICENSE.
- - name: TeleSculptor
- buildsystem: simple
- ensure-writable:
- - /lib
- - /share
- build-commands:
- - chmod +x TeleSculptor-1.1.2-Linux-x86_64.sh
- - yes | ./TeleSculptor-1.1.2-Linux-x86_64.sh
- - cd TeleSculptor-1.1.2-Linux-x86_64 && cp -r {bin,lib,share} ${FLATPAK_DEST}
- - cp -r sourcefile/LICENSE ${FLATPAK_DEST}/share/telesculptor
- - mkdir -p /app/share/icons/hicolor/512x512/apps
- - cp -r sourcefile/gui/icons/512x512/telesculptor.png ${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png
- - install -Dm0644 $FLATPAK_ID.metainfo.xml ${FLATPAK_DEST}/share/metainfo/$FLATPAK_ID.metainfo.xml
- - install -Dm0644 $FLATPAK_ID.desktop ${FLATPAK_DEST}/share/applications/$FLATPAK_ID.desktop
- sources:
- - type: file
- url: https://github.com/Kitware/TeleSculptor/releases/download/v1.1.2/TeleSculptor-1.1.2-Linux-x86_64.sh
- sha256: da4e498045b746f61a559504a3894fa5e536184cda7c5a10f036e5694e3ba13b
- x-checker-data:
- type: anitya
- project-id: 222360
- stable-only: true
- url-template: https://github.com/Kitware/TeleSculptor/releases/download/v$version/TeleSculptor-$version-Linux-x86_64.sh
- - type: archive
- url: https://github.com/Kitware/TeleSculptor/archive/refs/tags/v1.1.2.tar.gz
- sha256: ec37981b4ba065b51faef44b482a5f6198eaf9f0d7bb47fed3f45aecb8f13cee
- dest: sourcefile
- - type: file
- path: com.github.Kitware.TeleSculptor.metainfo.xml
- - type: file
- path: com.github.Kitware.TeleSculptor.desktop
-
diff --git a/packaging/Flatpak/shared-modules b/packaging/Flatpak/shared-modules
deleted file mode 160000
index ccb58f2c6..000000000
--- a/packaging/Flatpak/shared-modules
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit ccb58f2c69950bfbd5df0bc9960070afdbab2a3e
From db4d08de42640749d71e6618acb1dc2c2a923d42 Mon Sep 17 00:00:00 2001
From: Andy Great
Date: Fri, 24 Sep 2021 17:50:42 +0200
Subject: [PATCH 3/6] update flatpak
---
packaging/Flatpak/flathub.json | 3 +
.../org.telesculptor.TeleSculptor.desktop | 11 +++
...org.telesculptor.TeleSculptor.metainfo.xml | 39 ++++++++
.../org.telesculptor.TeleSculptor.yaml | 88 +++++++++++++++++++
.../org.telesculptor.TeleSculptor.desktop | 11 +++
...org.telesculptor.TeleSculptor.metainfo.xml | 39 ++++++++
6 files changed, 191 insertions(+)
create mode 100644 packaging/Flatpak/flathub.json
create mode 100644 packaging/Flatpak/org.telesculptor.TeleSculptor.desktop
create mode 100644 packaging/Flatpak/org.telesculptor.TeleSculptor.metainfo.xml
create mode 100644 packaging/Flatpak/org.telesculptor.TeleSculptor.yaml
create mode 100644 packaging/org.telesculptor.TeleSculptor.desktop
create mode 100644 packaging/org.telesculptor.TeleSculptor.metainfo.xml
diff --git a/packaging/Flatpak/flathub.json b/packaging/Flatpak/flathub.json
new file mode 100644
index 000000000..637604e82
--- /dev/null
+++ b/packaging/Flatpak/flathub.json
@@ -0,0 +1,3 @@
+{
+ "only-arches": ["x86_64"]
+}
diff --git a/packaging/Flatpak/org.telesculptor.TeleSculptor.desktop b/packaging/Flatpak/org.telesculptor.TeleSculptor.desktop
new file mode 100644
index 000000000..cae143270
--- /dev/null
+++ b/packaging/Flatpak/org.telesculptor.TeleSculptor.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Version=1.0
+Name=TeleSculptor
+GenericName=Aerial Photogrammetry
+Comment=Photogrammetry designed with a focus on aerial video
+Exec=TeleSculptor %U
+Terminal=false
+Type=Application
+Icon=org.telesculptor.TeleSculptor
+Categories=Qt;Science;DataVisualization;
+
diff --git a/packaging/Flatpak/org.telesculptor.TeleSculptor.metainfo.xml b/packaging/Flatpak/org.telesculptor.TeleSculptor.metainfo.xml
new file mode 100644
index 000000000..81e93651a
--- /dev/null
+++ b/packaging/Flatpak/org.telesculptor.TeleSculptor.metainfo.xml
@@ -0,0 +1,39 @@
+
+
+ org.telesculptor.TeleSculptor
+ org.telesculptor.TeleSculptor.desktop
+ TeleSculptor
+ Photogrammetry designed with a focus on aerial video
+ CC0-1.0
+ BSD-3-Clause
+
+
+ TeleSculptor is a cross-platform desktop application for photogrammetry.
+ It was designed with a focus on aerial video, such as video collected from
+ UAVs, and handles geospatial coordinates and can make use of metadata,
+ if available, from GPS and IMU sensors. However, the software can also work
+ with non-geospatial data and with collections of images instead of metadata.
+ TeleSculptor uses Structure-from-Motion techniques to estimate camera
+ parameters as well as a sparse set of 3D landmarks.
+ It uses Multiview Stereo techniques to estimate dense depth maps on key
+ frame and then fuses those depth maps into a consistent surface mesh which
+ can be colored from the source imagery.
+
+
+ https://github.com/Kitware/TeleSculptor
+ https://github.com/Kitware/TeleSculptor/issues
+ Kitware
+
+
+ https://raw.githubusercontent.com/Kitware/TeleSculptor/master/doc/screenshot/telesculptor_screenshot_linux.png
+
+
+ https://raw.githubusercontent.com/Kitware/TeleSculptor/master/doc/screenshot/telesculptor_screenshot_calibration.png
+
+
+
+
+
+
+
+
diff --git a/packaging/Flatpak/org.telesculptor.TeleSculptor.yaml b/packaging/Flatpak/org.telesculptor.TeleSculptor.yaml
new file mode 100644
index 000000000..353138484
--- /dev/null
+++ b/packaging/Flatpak/org.telesculptor.TeleSculptor.yaml
@@ -0,0 +1,88 @@
+app-id: org.telesculptor.TeleSculptor
+runtime: org.kde.Platform
+runtime-version: '5.15'
+sdk: org.kde.Sdk
+command: TeleSculptor
+finish-args:
+ - --share=ipc
+ - --socket=x11
+ - --device=dri
+ - --filesystem=home
+cleanup:
+ - /include
+ - /lib/pkgconfig
+ - /share/man
+ - "*.la"
+ - "*.a"
+
+modules:
+ - name: lapack
+ buildsystem: cmake-ninja
+ builddir: true
+ config-opts:
+ - -DCMAKE_BUILD_TYPE=Release
+ - -DBUILD_SHARED_LIBS=ON
+ - -DBUILD_TESTING=OFF
+ - -DLAPACKE=ON
+ - -DCBLAS=ON
+ sources:
+ - type: archive
+ url: https://github.com/Reference-LAPACK/lapack/archive/refs/tags/v3.10.0.tar.gz
+ sha256: 328c1bea493a32cac5257d84157dc686cc3ab0b004e2bea22044e0a59f6f8a19
+ x-checker-data:
+ type: anitya
+ project-id: 1534
+ stable-only: true
+ url-template: https://github.com/Reference-LAPACK/lapack/archive/refs/tags/v$version.tar.gz
+
+ # TeleSculptor need libicui18n.so.60
+ - name: ICU-60
+ subdir: source
+ config-opts:
+ - --disable-static
+ - --enable-shared
+ - --disable-samples
+ sources:
+ - type: archive
+ url: https://github.com/unicode-org/icu/releases/download/release-60-3/icu4c-60_3-src.tgz
+ sha256: 476287b17db6e0b7da230dce4b58e8e5669b1510847f82cab3647920f1374390
+
+ # Install the binary instead of building from source, I can't figured it out.
+ # Use source file only for LICENSE and icon file, self-extract file does not extract LICENSE.
+ - name: TeleSculptor
+ buildsystem: simple
+ ensure-writable:
+ - /lib
+ - /share
+ build-commands:
+ - chmod +x TeleSculptor-1.2.0-Linux-x86_64.sh
+ - ./TeleSculptor-1.2.0-Linux-x86_64.sh --skip-license
+ - cp -r {bin,lib,share} ${FLATPAK_DEST}
+ - cp -r sourcefile/LICENSE ${FLATPAK_DEST}/share/telesculptor
+ - mkdir -p /app/share/icons/hicolor/512x512/apps
+ - cp -r sourcefile/gui/icons/512x512/telesculptor.png ${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png
+ - install -Dm0644 $FLATPAK_ID.metainfo.xml ${FLATPAK_DEST}/share/metainfo/$FLATPAK_ID.metainfo.xml
+ - install -Dm0644 $FLATPAK_ID.desktop ${FLATPAK_DEST}/share/applications/$FLATPAK_ID.desktop
+ sources:
+ - type: file
+ url: https://github.com/Kitware/TeleSculptor/releases/download/v1.2.0/TeleSculptor-1.2.0-Linux-x86_64.sh
+ sha256: 29044a438af721a5819fdf79f383527d63d49cfff95fb887b3b2accbaac22398
+ x-checker-data:
+ type: anitya
+ project-id: 222360
+ stable-only: true
+ url-template: https://github.com/Kitware/TeleSculptor/releases/download/v$version/TeleSculptor-$version-Linux-x86_64.sh
+ - type: archive
+ url: https://github.com/Kitware/TeleSculptor/archive/refs/tags/v1.2.0.tar.gz
+ x-checker-data:
+ type: anitya
+ project-id: 222360
+ stable-only: true
+ url-template: https://github.com/Kitware/TeleSculptor/archive/refs/tags/v$version.tar.gz
+ sha256: eb7c04a15f3c14699810815d0edaab70bf225a123c68fd5417a81fb36589fb81
+ dest: sourcefile
+ - type: file
+ path: org.telesculptor.TeleSculptor.metainfo.xml
+ - type: file
+ path: org.telesculptor.TeleSculptor.desktop
+
diff --git a/packaging/org.telesculptor.TeleSculptor.desktop b/packaging/org.telesculptor.TeleSculptor.desktop
new file mode 100644
index 000000000..cae143270
--- /dev/null
+++ b/packaging/org.telesculptor.TeleSculptor.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Version=1.0
+Name=TeleSculptor
+GenericName=Aerial Photogrammetry
+Comment=Photogrammetry designed with a focus on aerial video
+Exec=TeleSculptor %U
+Terminal=false
+Type=Application
+Icon=org.telesculptor.TeleSculptor
+Categories=Qt;Science;DataVisualization;
+
diff --git a/packaging/org.telesculptor.TeleSculptor.metainfo.xml b/packaging/org.telesculptor.TeleSculptor.metainfo.xml
new file mode 100644
index 000000000..81e93651a
--- /dev/null
+++ b/packaging/org.telesculptor.TeleSculptor.metainfo.xml
@@ -0,0 +1,39 @@
+
+
+ org.telesculptor.TeleSculptor
+ org.telesculptor.TeleSculptor.desktop
+ TeleSculptor
+ Photogrammetry designed with a focus on aerial video
+ CC0-1.0
+ BSD-3-Clause
+
+
+ TeleSculptor is a cross-platform desktop application for photogrammetry.
+ It was designed with a focus on aerial video, such as video collected from
+ UAVs, and handles geospatial coordinates and can make use of metadata,
+ if available, from GPS and IMU sensors. However, the software can also work
+ with non-geospatial data and with collections of images instead of metadata.
+ TeleSculptor uses Structure-from-Motion techniques to estimate camera
+ parameters as well as a sparse set of 3D landmarks.
+ It uses Multiview Stereo techniques to estimate dense depth maps on key
+ frame and then fuses those depth maps into a consistent surface mesh which
+ can be colored from the source imagery.
+
+
+ https://github.com/Kitware/TeleSculptor
+ https://github.com/Kitware/TeleSculptor/issues
+ Kitware
+
+
+ https://raw.githubusercontent.com/Kitware/TeleSculptor/master/doc/screenshot/telesculptor_screenshot_linux.png
+
+
+ https://raw.githubusercontent.com/Kitware/TeleSculptor/master/doc/screenshot/telesculptor_screenshot_calibration.png
+
+
+
+
+
+
+
+
From c9d1340d75ee95fb56780b454108c48fd473aeba Mon Sep 17 00:00:00 2001
From: Andy Great
Date: Fri, 24 Sep 2021 17:53:51 +0200
Subject: [PATCH 4/6] remove file
---
.../org.telesculptor.TeleSculptor.desktop | 11 ------
...org.telesculptor.TeleSculptor.metainfo.xml | 39 -------------------
2 files changed, 50 deletions(-)
delete mode 100644 packaging/org.telesculptor.TeleSculptor.desktop
delete mode 100644 packaging/org.telesculptor.TeleSculptor.metainfo.xml
diff --git a/packaging/org.telesculptor.TeleSculptor.desktop b/packaging/org.telesculptor.TeleSculptor.desktop
deleted file mode 100644
index cae143270..000000000
--- a/packaging/org.telesculptor.TeleSculptor.desktop
+++ /dev/null
@@ -1,11 +0,0 @@
-[Desktop Entry]
-Version=1.0
-Name=TeleSculptor
-GenericName=Aerial Photogrammetry
-Comment=Photogrammetry designed with a focus on aerial video
-Exec=TeleSculptor %U
-Terminal=false
-Type=Application
-Icon=org.telesculptor.TeleSculptor
-Categories=Qt;Science;DataVisualization;
-
diff --git a/packaging/org.telesculptor.TeleSculptor.metainfo.xml b/packaging/org.telesculptor.TeleSculptor.metainfo.xml
deleted file mode 100644
index 81e93651a..000000000
--- a/packaging/org.telesculptor.TeleSculptor.metainfo.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
- org.telesculptor.TeleSculptor
- org.telesculptor.TeleSculptor.desktop
- TeleSculptor
- Photogrammetry designed with a focus on aerial video
- CC0-1.0
- BSD-3-Clause
-
-
- TeleSculptor is a cross-platform desktop application for photogrammetry.
- It was designed with a focus on aerial video, such as video collected from
- UAVs, and handles geospatial coordinates and can make use of metadata,
- if available, from GPS and IMU sensors. However, the software can also work
- with non-geospatial data and with collections of images instead of metadata.
- TeleSculptor uses Structure-from-Motion techniques to estimate camera
- parameters as well as a sparse set of 3D landmarks.
- It uses Multiview Stereo techniques to estimate dense depth maps on key
- frame and then fuses those depth maps into a consistent surface mesh which
- can be colored from the source imagery.
-
-
- https://github.com/Kitware/TeleSculptor
- https://github.com/Kitware/TeleSculptor/issues
- Kitware
-
-
- https://raw.githubusercontent.com/Kitware/TeleSculptor/master/doc/screenshot/telesculptor_screenshot_linux.png
-
-
- https://raw.githubusercontent.com/Kitware/TeleSculptor/master/doc/screenshot/telesculptor_screenshot_calibration.png
-
-
-
-
-
-
-
-
From 100dfb98a484f777918f32d772c283b3517b2c29 Mon Sep 17 00:00:00 2001
From: Andy Great
Date: Fri, 24 Sep 2021 17:54:31 +0200
Subject: [PATCH 5/6] remove file
---
.gitmodules | 3 ---
1 file changed, 3 deletions(-)
delete mode 100644 .gitmodules
diff --git a/.gitmodules b/.gitmodules
deleted file mode 100644
index 10a84ffb7..000000000
--- a/.gitmodules
+++ /dev/null
@@ -1,3 +0,0 @@
-[submodule "packaging/Flatpak/shared-modules"]
- path = packaging/Flatpak/shared-modules
- url = https://github.com/flathub/shared-modules
From 88f50a65d20a02a692900259dab15ed83f69bad4 Mon Sep 17 00:00:00 2001
From: Andy Great
Date: Fri, 24 Sep 2021 19:18:31 +0200
Subject: [PATCH 6/6] fix desktop category and metainfo
---
packaging/Flatpak/org.telesculptor.TeleSculptor.desktop | 2 +-
packaging/Flatpak/org.telesculptor.TeleSculptor.metainfo.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/packaging/Flatpak/org.telesculptor.TeleSculptor.desktop b/packaging/Flatpak/org.telesculptor.TeleSculptor.desktop
index cae143270..aff8f8fbd 100644
--- a/packaging/Flatpak/org.telesculptor.TeleSculptor.desktop
+++ b/packaging/Flatpak/org.telesculptor.TeleSculptor.desktop
@@ -7,5 +7,5 @@ Exec=TeleSculptor %U
Terminal=false
Type=Application
Icon=org.telesculptor.TeleSculptor
-Categories=Qt;Science;DataVisualization;
+Categories=Qt;Science;DataVisualization;Video;AudioVideo;ImageProcessing;Geoscience;3DGraphics
diff --git a/packaging/Flatpak/org.telesculptor.TeleSculptor.metainfo.xml b/packaging/Flatpak/org.telesculptor.TeleSculptor.metainfo.xml
index 81e93651a..cb289561f 100644
--- a/packaging/Flatpak/org.telesculptor.TeleSculptor.metainfo.xml
+++ b/packaging/Flatpak/org.telesculptor.TeleSculptor.metainfo.xml
@@ -20,7 +20,7 @@
can be colored from the source imagery.
- https://github.com/Kitware/TeleSculptor
+ https://telesculptor.org/
https://github.com/Kitware/TeleSculptor/issues
Kitware