This commit is contained in:
alemuntoni 2020-04-14 17:30:03 +02:00
parent dd43974ae9
commit d7bce23869
5 changed files with 124 additions and 30 deletions

View File

@ -1,6 +1,6 @@
# Known to build in Ubuntu 17.04
# Known to build in Ubuntu 18.04
name: meshlab
version: '2017.03-1'
version: '2020.04'
summary: MeshLab
description: |
The open source system for processing and editing 3D triangular meshes.
@ -16,7 +16,7 @@ confinement: strict
apps:
meshlab:
command: desktop-launch meshlab
plugs: [home, x11, mir, opengl, unity7]
plugs: [home, x11, mir, opengl]
meshlabserver:
command: desktop-launch meshlabserver
plugs: [home, x11, opengl]
@ -24,44 +24,30 @@ apps:
parts:
meshlab:
after: [desktop-qt5,vcglib]
after: [desktop-qt5]
plugin: qmake
qt-version: qt5
source: https://github.com/cnr-isti-vclab/meshlab.git
# source-tag: v2017.03
build-packages:
- libqt5opengl5-dev
- libqt5xmlpatterns5-dev
- qt5-default
- qttools5-dev-tools
- qtscript5-dev
prepare: |
ln -sf ../vcglib/install ../vcglib
sed -i '/filter_csg/d' src/meshlab_full.pro
sed -i -e '2ilinux:QMAKE_LFLAGS += -fopenmp -lgomp\' src/meshlabplugins/filter_screened_poisson/filter_screened_poisson.pro
sed -i 's|PR_XXXXXX|/tmp/PR_XXXXXX|' src/meshlabplugins/filter_screened_poisson/Src/Geometry.cpp
- libqt5xmlpatterns5-dev
- mesa-common-dev
- libglu1-mesa-dev
- lib3ds-dev
- libglew-dev
- libeigen3-dev
- libopenctm-dev
- libgmp-dev
- libqhull-dev
build: |
cd src/external
qmake external.pro
make -j4
cd ..
qmake meshlab_full.pro
qmake src/meshlab.pro "CONFIG+= system_eigen3 system_glew system_bzip2 system_openctm system_lib3ds"
make -j4
install: |
cp src/meshlabplugins/filter_screened_poisson/filter_screened_poisson.xml \
src/meshlabplugins/filter_mutualinfoxml/filter_mutualinfo.xml \
src/meshlabplugins/filter_measure/filter_measure.xml \
src/distrib/plugins/
cd src/distrib
cd distrib
mkdir -p $SNAPCRAFT_PART_INSTALL/bin
cp -a meshlab* plugins shaders textures $SNAPCRAFT_PART_INSTALL/bin
mkdir -p $SNAPCRAFT_PART_INSTALL/lib
cp -a lib* $SNAPCRAFT_PART_INSTALL/lib
vcglib:
plugin: dump
# source: https://github.com/cnr-isti-vclab/vcglib.git
# source-tag: v1.0.2
source: https://github.com/cnr-isti-vclab/vcglib.git
source-branch: devel
- -vcglib/apps
prime: [ -* ]

View File

@ -0,0 +1,32 @@
Snap is a cross-distribution packaging format for Linux. See
https://snapcraft.io for more information.
How to build
------------
Just type
```
snapcraft
```
from the *parent* directory: that is, not from the directory containing this
README file, but from its parent directory. This snap has been successfully
built in Ubuntu 17.04; Ubuntu 16.10 will not work because MeshLab needs Qt 5.7,
which is not available there. It should be possible to build MeshLab as a snap
in older Ubuntu distributions by using the [qt57
part](https://wiki.ubuntu.com/snapcraft/parts), but no efforts have been taken
in this direction since anyway the generated snap package will work on older
distributions too.
How to test the snap
--------------------
The generated snap can be installed by typing
```
snap install --dangerous ./meshlab*.snap
```
The `--dangerous` flag is needed because the snap has not been verified by the
store.
How to upload the snap to the store
-----------------------------------
A thorough guide can be found at the [snapcraft.io
site](https://snapcraft.io/docs/build-snaps/publish).

View File

@ -0,0 +1,9 @@
[Desktop Entry]
Type=Application
Name=MeshLab
Comment=Processor and editor of large 3D triangular meshes
Exec=meshlab.meshlab
Terminal=false
Categories=Graphics;
Icon=${SNAP}/meta/gui/meshlab.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

View File

@ -0,0 +1,67 @@
# Known to build in Ubuntu 17.04
name: meshlab
version: '2017.03-1'
summary: MeshLab
description: |
The open source system for processing and editing 3D triangular meshes.
It provides a set of tools for editing, cleaning, healing, inspecting,
rendering, texturing and converting meshes. It offers features for processing
raw data produced by 3D digitization tools/devices and for preparing models
for 3D printing.
icon: snap/gui/meshlab.png
grade: stable
confinement: strict
apps:
meshlab:
command: desktop-launch meshlab
plugs: [home, x11, mir, opengl, unity7]
meshlabserver:
command: desktop-launch meshlabserver
plugs: [home, x11, opengl]
parts:
meshlab:
after: [desktop-qt5,vcglib]
plugin: qmake
qt-version: qt5
source: https://github.com/cnr-isti-vclab/meshlab.git
# source-tag: v2017.03
build-packages:
- libqt5opengl5-dev
- libqt5xmlpatterns5-dev
- qt5-default
- qtscript5-dev
prepare: |
ln -sf ../vcglib/install ../vcglib
sed -i '/filter_csg/d' src/meshlab_full.pro
sed -i -e '2ilinux:QMAKE_LFLAGS += -fopenmp -lgomp\' src/meshlabplugins/filter_screened_poisson/filter_screened_poisson.pro
sed -i 's|PR_XXXXXX|/tmp/PR_XXXXXX|' src/meshlabplugins/filter_screened_poisson/Src/Geometry.cpp
build: |
cd src/external
qmake external.pro
make -j4
cd ..
qmake meshlab_full.pro
make -j4
install: |
cp src/meshlabplugins/filter_screened_poisson/filter_screened_poisson.xml \
src/meshlabplugins/filter_mutualinfoxml/filter_mutualinfo.xml \
src/meshlabplugins/filter_measure/filter_measure.xml \
src/distrib/plugins/
cd src/distrib
mkdir -p $SNAPCRAFT_PART_INSTALL/bin
cp -a meshlab* plugins shaders textures $SNAPCRAFT_PART_INSTALL/bin
mkdir -p $SNAPCRAFT_PART_INSTALL/lib
cp -a lib* $SNAPCRAFT_PART_INSTALL/lib
vcglib:
plugin: dump
# source: https://github.com/cnr-isti-vclab/vcglib.git
# source-tag: v1.0.2
source: https://github.com/cnr-isti-vclab/vcglib.git
source-branch: devel
- -vcglib/apps
prime: [ -* ]