-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsnapcraft.yaml
266 lines (260 loc) · 6.76 KB
/
snapcraft.yaml
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
# unset WEBOTS_HOME
# unset LD_LIBRARY_PATH
# unset JAVA_HOME
# snapcraft # --destructive-mode may be needed if run on a virtual machine
# snap install --dangerous webots_R2023b_amd64.snap
# webots
# snap uninstall webots
# snapcraft login
# snapcraft push webots_R2023b_amd64.snap
# snap install webots
name: webots
title: Webots
base: core22
version: 'R2025a'
adopt-info: webots
summary: Webots is a free and open-source 3D robot simulator
description: |
Webots is a free and open-source 3D robot simulator.
It allows you to create 3D simulation models of robots interacting with their
environment through sensors and actuators. Libraries of robots, sensors,
actuators and objects are provided, but you can create your own. Collision
detections, rigid body dynamics and fluid dynamics rely on a modified version
of the ODE physics engine. The robot controller programs can be written
outside of Webots in C, C++, Python, Java or MATLAB using a simple API.
Webots features a 3D web interface allowing you to publish simulations online.
icon: webots.png
license: Apache-2.0
grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict
architectures:
- build-on: [amd64]
build-for: [amd64]
environment:
JAVA_HOME: "$SNAP/usr/lib/jvm/java-18-openjdk-amd64"
PATH: "$JAVA_HOME/bin:$PATH"
layout:
/etc/openal: # to allow openal to read its global configuration file
bind: $SNAP/etc/openal
/usr/include: # to allow gcc compiler to find system include files
bind: $SNAP/usr/include
/usr/share/libdrm: # to fix a warning displayed by Webots on AMD GPUs
bind: $SNAP/usr/share/libdrm
/usr/lib/$CRAFT_ARCH_TRIPLET/libc_nonshared.a:
bind-file: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/libc_nonshared.a
# bind-file: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libc_nonshared.a
parts:
desktop-gtk3:
build-packages:
- build-essential
- libgtk-3-dev
make-parameters:
- FLAVOR=gtk3
plugin: make
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
source-subdir: gtk
# libjpeg is conflicting with the one from webots, therefore it is ignored
stage:
- -usr/lib/x86_64-linux-gnu/libjpeg.so.8.2.2
stage-packages:
- fonts-ubuntu
- dmz-cursor-theme
- light-themes
- adwaita-icon-theme
- gnome-themes-standard
- shared-mime-info
- libgtk-3-0
- libgdk-pixbuf2.0-0
- libglib2.0-bin
- libgtk2.0-0
- libgtk-3-bin
- unity-gtk3-module
- libappindicator3-1
- xdg-user-dirs
- ibus-gtk3
- libibus-1.0-5
- fcitx-frontend-gtk3
- adwaita-icon-theme-full
- libgdk-pixbuf2.0-bin
webots:
build-packages:
- git
- python3-pip
plugin: make
build-environment:
- WEBOTS_HOME: "$SNAPCRAFT_PART_BUILD"
- JAVA_HOME: "/usr/lib/jvm/java-18-openjdk-amd64"
- PATH: "$JAVA_HOME/bin:$PATH"
#source: https://cyberbotics.com/files/repository/beta/webots.tar.bz2
# When building locally, uncomment the following line:
source-type: local
source: webots/
# When building from snapcraft.io, uncomment the following 4 lines:
#source: https://github.com/cyberbotics/webots
#source-type: git
#source-depth: 1
#source-branch: feature-snapcraft-build
# We should specify either the source-branch or the source-tag, but not both
# source-tag: R2023b
override-pull: |
craftctl default
./scripts/install/linux_optional_compilation_dependencies.sh
pip3 install --no-input aqtinstall
export PATH="$PATH:$HOME/.local/bin"
sudo apt install --yes xvfb
override-prime: |
craftctl default
rm -vf usr/lib/jvm/java-11-openjdk-*amd64/lib/security/blacklisted.certs
if [ -d "$SNAPCRAFT_PRIME/usr/share/mime/packages" ]; then
update-mime-database $SNAPCRAFT_PRIME/usr/share/mime
fi
mkdir -p $SNAPCRAFT_PRIME/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0
stage-packages:
- openjdk-18-jdk
- ca-certificates-java
- build-essential
- libc6-dev
- ffmpeg
- libavcodec-extra
- libblas3
- freeglut3-dev
- libaribb24-0
- libasn1-8-heimdal
- libasound2
- libatk1.0-0
- libavutil56
- libblkid1
- libcanberra-gtk-module
- libcanberra-gtk3-module
- libccd2
- libcurl3-gnutls
- libdbus-1-3
- libdouble-conversion3
- libdrm-common
- libfreeimage3
- libfreetype6
- libgcc1
- libgcrypt20
- libgd3
- libgfortran5
- libglib2.0-0
- libgl1
- libglu1-mesa
- libglvnd0
- libglx0
- libgpg-error0
- libgsm1
- libgssapi3-heimdal
- libssh-4
- libgtk-3-0
- libhcrypto4-heimdal
- libheimbase1-heimdal
- libheimntlm0-heimdal
- libhx509-5-heimdal
- libicu70
- libjpeg8-dev
- libkrb5-26-heimdal
- libldap-2.5-0
- libltdl7
- liblzma5
- libminizip1
- libmount1
- libmp3lame0
- libnghttp2-14
- libnss3
- libnuma1
- libopenal-data
- libopencore-amrnb0
- libopencore-amrwb0
- libopus0
- libpcre3
- libpsl5
- libroken18-heimdal
- librtmp1
- libsasl2-2
- libselinux1
- libshine3
- libslang2
- libsnappy1v5
- libsndio7.0
- libsoxr0
- libspeex1
- libssh-dev
- libssh-gcrypt-4
- libssl3
- libstdc++6
- libswresample3
- libsystemd0
- libtheora0
- libtinfo5
- libtinyxml2-dev
- libtwolame0
- libudev1
- libuuid1
- libva2
- libva-drm2
- libva-x11-2
- libvdpau1
- libvo-amrwbenc0
- libwavpack1
- libwind0-heimdal
- libx11-data
- libx11-xcb1
- libx265-199
- libxaw7
- libxcb-cursor0
- libxcb-glx0
- libxcb-icccm4
- libxcb-image0
- libxcb-keysyms1
- libxcb-randr0
- libxcb-render-util0
- libxcb-shape0
- libxcb-sync1
- libxcb-util1
- libxcb-xfixes0
- libxcb-xinerama0
- libxcb-xkb1
- libxft2
- libxkbcommon-x11-0
- libxrandr2
- libxrender1
- libxslt1.1
- libxss1
- libxtst6
- libxvidcore4
- liblz4-1
- libzip-dev
- libzvbi0
- libzzip-0-13
- locales-all
- lsb-release
- util-linux
- zlib1g
- libgdk-pixbuf2.0-0
- librsvg2-common
- shared-mime-info
apps:
webots:
environment:
LANG: C.UTF-8
LC_ALL: C.UTF-8
DISABLE_WAYLAND: 1
PATH: $SNAP/usr/bin:$PATH
LD_LIBRARY_PATH: $SNAP/usr/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu/blas:$SNAP/usr/lib/x86_64-linux-gnu/lapack:$LD_LIBRARY_PATH
plugs:
- audio-playback
- browser-support
- gsettings
- hidraw
- home
- hostname-control
- joystick
- network
- unity7
- opengl
- removable-media
desktop: usr/share/webots/resources/webots.desktop
command-chain:
- bin/desktop-launch
command: usr/share/webots/webots