File: snapcraft.yaml

package info (click to toggle)
cloudcompare 2.10.1-2
  • links: PTS
  • area: main
  • in suites: buster
  • size: 55,916 kB
  • sloc: cpp: 219,837; ansic: 29,944; makefile: 67; sh: 45
file content (158 lines) | stat: -rw-r--r-- 4,749 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
name: cloudcompare
version: '2.10-beta'
summary: 3D point cloud and mesh processing software
description: |
  CloudCompare is a 3D point cloud (and triangular mesh) processing software.
  Originally designed to perform comparison between two dense 3D points clouds
  or between a point cloud and a triangular mesh, it has been extended to a
  more generic point cloud processing software, including many advanced
  algorithms (registration, resampling, color/normal/scalar fields handling,
  statistics computation, sensor management, interactive or automatic
  segmentation, display enhancement, etc.).

icon: snap/gui/cloudcompare.png

grade: stable
confinement: strict
base: core18

apps:
  ccViewer:
    command: launch ccViewer
    plugs: [home, x11, mir, opengl, unity7, removable-media]
  CloudCompare:
    command: launch CloudCompare
    plugs: [home, x11, mir, opengl, unity7, removable-media]
parts:
  cloudcompare:
    after: [desktop-qt5, eigen, pdal, e57]
    plugin: cmake
    source: https://github.com/CloudCompare/CloudCompare.git
    source-branch: master
    source-depth: 1
    build-packages:
      - build-essential
      - libavcodec-dev
      - libavformat-dev
      - libavutil-dev
      - libboost-thread-dev
      - libboost-program-options-dev
      - libcgal-dev
      - libcgal-qt5-dev
      - libdlib-dev
      - libswscale-dev
      - libtbb-dev
      - libqt5opengl5-dev
      - qt5-default
      - qttools5-dev 
      - qttools5-dev-tools
      - libgdal-dev
      - libxerces-c-dev
      - libpcl-dev
      - libproj-dev
      - libqt5svg5-dev 
    prepare: |
      sed -i '/CMAKE_INSTALL_RPATH/d' ../src/CMakeLists.txt
      ln -s /usr/lib/x86_64-linux-gnu/libvtkCommonCore-6.2.so /usr/lib/libvtkproj4.so
#https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=819741
    configflags:
      - -DCMAKE_BUILD_TYPE=Release
      - -DCOMPILE_CC_CORE_LIB_WITH_CGAL=ON
      - -DCOMPILE_CC_CORE_LIB_WITH_TBB=ON
      - -DINSTALL_QHPR_PLUGIN=ON
      - -DINSTALL_QPOISSON_RECON_PLUGIN=ON
      - -DPOISSON_RECON_WITH_OPEN_MP=ON
      - -DINSTALL_QEDL_PLUGIN=ON
      - -DINSTALL_QSRA_PLUGIN=ON
      - -DOPTION_USE_GDAL=ON
      - -DOPTION_USE_DXF_LIB=ON
      - -DINSTALL_QSSAO_PLUGIN=ON
      - -DINSTALL_QANIMATION_PLUGIN=ON
      - -DINSTALL_QCSF_PLUGIN=ON
      - -DINSTALL_QPHOTOSCAN_IO_PLUGIN=ON
      - -DWITH_FFMPEG_SUPPORT=ON
      - -DFFMPEG_INCLUDE_DIR=/usr/include/x86_64-linux-gnu
      - -DFFMPEG_LIBRARY_DIR=/usr/lib/x86_64-linux-gnu
      - -DINSTALL_QFACETS_PLUGIN=ON
      - -DOPTION_USE_SHAPE_LIB=ON
      - -DINSTALL_QPCV_PLUGIN=ON
      - -DINSTALL_QM3C2_PLUGIN=ON
      - -DINSTALL_QBROOM_PLUGIN=ON
      - -DINSTALL_QHOUGH_NORMALS_PLUGIN=ON
      - -DINSTALL_QCOMPASS_PLUGIN=ON
      - -DINSTALL_QCANUPO_PLUGIN=ON
      - -DDLIB_ROOT=/usr/include
      - -DEIGEN_ROOT_DIR=$SNAPCRAFT_STAGE/include/eigen3
      - -DOPTION_PDAL_LAS=ON
      - -DJSON_ROOT_DIR=/usr/include/jsoncpp
      - -DOPTION_USE_LIBE57FORMAT=ON
      - -DLIBE57FORMAT_INSTALL_DIR=$SNAPCRAFT_STAGE
      - -DCMAKE_INSTALL_PREFIX=$SNAPCRAFT_PART_INSTALL
      - -DINSTALL_QPCL_PLUGIN=ON
      - -DINSTALL_QADDITIONAL_IO_PLUGIN=ON
    install: 
      make install
  e57:
    plugin: cmake
    source: https://github.com/asmaloney/libE57Format.git
    source-depth: 1
    build-packages:
      - build-essential
    configflags:
     - -DCMAKE_BUILD_TYPE=Release
     - -DCMAKE_INSTALL_PREFIX=$SNAPCRAFT_PART_INSTALL
    install: 
     make install
    stage: [ include/*, lib/* ]
    prime: [ -* ]
  laszip:
    plugin: cmake
    source: https://github.com/LASzip/LASzip.git
    source-tag: "3.2.9"
    build-packages:
      - build-essential
    configflags:
      - -DCMAKE_BUILD_TYPE=Release
    stage: [ include/*, lib/* ]
    prime: [ lib/* ]
    install: 
      make install
  eigen:
    plugin: cmake
    source: http://bitbucket.org/eigen/eigen/get/3.3.4.tar.bz2
    configflags:
      - -DCMAKE_BUILD_TYPE=Release
      - -DCMAKE_INSTALL_PREFIX=$SNAPCRAFT_PART_INSTALL
    install:
      make install
    stage: [ include/* ]
    prime: [ -* ]
  pdal:
    after: [laszip, eigen]
    plugin: cmake
    source: https://github.com/PDAL/PDAL.git
    source-tag: "1.8.0"
    build-packages:
      - build-essential
      - libgdal-dev
      - libgeotiff-dev
      - libjsoncpp-dev
      - python-numpy
    configflags:
      - -DCMAKE_BUILD_TYPE=Release
      - -DCMAKE_INSTALL_PREFIX=$SNAPCRAFT_PART_INSTALL
      - -DWITH_TESTS=OFF
      - -DWITH_LASZIP=ON
      - -DBUILD_PLUGIN_PYTHON=OFF
      - -DBUILD_PLUGIN_PGPOINTCLOUD=OFF
    install: 
      make install
    stage: [ include/*, lib/* ]
    prime: [ lib/* ]
  launcher:
    plugin: dump
    source: snap
    organize:
      launch: bin/launch
    prime:
      - bin/*