Andy
March 20, 2021, 7:55pm
1
I just package COLMAP flatpak.
COLMAP take photos as input and convert it to 3D mesh.
https://colmap.github.io/
I contact COLMAP dev here, but no reply so far.
opened 09:08AM - 17 Mar 21 UTC
closed 07:22PM - 09 Jul 21 UTC
Hello,
I create Flatpak for COLMAP.
Flatpak is a packaging and distributing … desktop software on Linux.
https://www.flatpak.org/
I would like it to be submit to Flathub, an app store for Flatpak apps. Many Linux distros supported Flatpak. So I think it would be beneficial to package large software like COLMAP into Flatpak, it will make installing quick and easy.
https://flathub.org/home
This is what I have been working on so far.
https://github.com/kevinsmia1939/com.github.colmap.colmap
It does build but does not run.
When I try to run I got the error below.
```
flatpak run io.github.colmap.colmap
colmap: error while loading shared libraries: libceres.so.2: cannot open shared object file: No such file or directory
```
It does not find libceres.so.2 but I install ceres and libceres.so.2 it exist in lib64.
The build flags are list below, you can find complete Flatpak manifest file in my repo above.
```
ceres-solver 2.0.0
- -DCXSPARSE=ON
- -DSUITESPARSE=ON
- -DEIGENSPARSE=ON
- -DGFLAGS=OFF
- -DMINIGLOG=OFF
- -DBUILD_SHARED_LIBS=ON
- -DBUILD_TESTING=OFF
- -DBUILD_EXAMPLES=OFF
- -DOPENMP=ON
- -DCXX11=ON
```
```
COLMAP 3.6
- -DCMAKE_BUILD_TYPE:STRING=Release
- -DBOOST_STATIC=OFF
- -DOpenGL_GL_PREFERENCE=LEGACY
- -DEIGEN3_VERSION=3.3.9
```
Please build Flatpak with instructions below, to see if you have the same issue.
1. Create new working folder.
2. Install flatpak-builder, for Ubuntu, ``sudo apt install flatpak-builder``
3. Install KDE Sdk, choose version 5.15 (system), ``flatpak install org.kde.Platform org.kde.Sdk``
4. Clone sumodules, ``git clone git://github.com/flathub/shared-modules.git``
5. Download io.github.colmap.colmap.yaml and suitesparse-reduce-build.patch
6. ``flatpak-builder --install --user build io.github.colmap.colmap.yaml --force-clean``
7. Wait until finish and run with, ``flatpak run io.github.colmap.colmap``
Let me know if you know how to fix it.
Quick tutorial how to use COLMAP.
I’m uncertain about how I use shell wrapper. Not sure if it a good way to do it.
I manually copy libceres.so.2 to /lib because COLMAP does not look it in lib64.
I could not test CUDA feature, I do not have any GPU, when I select GPU when I don’t have CUDA, COLMAP would just crash, not sure if this is COLMAP bug or packaging bug.
File selector (KDE) behave weird, I cannot use mouse click to select folder, have to type the folder name instead.
I gave it a home access at the moment, because when I try to import some image I got this error.
SQLite error [/run/build/COLMAP/src/base/database.cc, line 261]: unable to open database file
hub
March 21, 2021, 3:00pm
2
If you want review, here is the submission process:
Andy
March 22, 2021, 1:59pm
3
Do you know how to submit another request if 1 is already pending? Would it over write my pending if I submit another?
No it won’t, you just have to use a different branch when creating your PR