Python Library – PyGame
Informatie (ENG):
Pygame is a set of Python modules designed for writing games. Pygame adds functionality on top of the excellent SDL library. This allows you to create fully featured games and multimedia programs in the python language. Pygame is highly portable and runs on nearly every platform and operating system. Pygame itself has been downloaded millions of times, and has had millions of visits to its website.
Facts About Pygame
Silliness built in. Pygame is meant to make software things fun. New silliness is added every 3.1415 seconds.
Does not require OpenGL.
With many people having broken OpenGL setups, requiring OpenGL exclusively will cut into your user base significantly. Pygame uses either opengl, directx, windib, X11, linux frame buffer, and many other different backends… including an ASCII art backend! OpenGL is often broken on linux systems, and also on windows systems – which is why professional games use multiple backends.
Multi core CPUs can be used easily.
With dual core CPUs common, and 8 core CPUs cheaply available on desktop systems, making use of multi core CPUs allows you to do more in your game. Selected pygame functions release the dreaded python GIL, which is something you can do from C code.
Uses optimized C, and Assembly code for core functions.
C code is often 10-20 times faster than python code, and assembly code can easily be 100x or more times faster than python code.
Comes with many Operating systems.
Just an apt-get, emerge, pkg_add, or yast install away. No need to mess with installing it outside of your operating systems package manager. Comes with binary installers (and uninstallers) for Windows or MacOS X. Pygame does not require setuptools, or ctypes to install.
Truly portable. Supports Linux (pygame comes with most mainstream linux distributions),
Windows (95,98,me,2000,XP,vista, 64bit windows etc), Windows CE, BeOS, MacOS, Mac OS X, FreeBSD, NetBSD, OpenBSD, BSD/OS, Solaris, IRIX, and QNX. The code contains support for AmigaOS, Dreamcast, Atari, AIX, OSF/Tru64, RISC OS, SymbianOS, and OS/2, but these are not officially supported. You can use it on hand held devices from nokia, game consoles like gp2x, and the One Laptop Per Child (OLPC).
It’s Simple and easy to use.
Kids and adults make games with pygame.ll your functions. This gives you greater control when using other libraries harga samsung galaxy s6, and for different types of programs.
Does not require a GUI to use all functions.
You can use pygame without a monitor – like if you want to use it just to process images, get joystick input, or play sounds.
Fast response to reported bugs.
Some bugs are patched within an hour of being reported. Do a search on our mailing list for BUG… you’ll see for yourself. Sometimes we suck at bug fixes, but mostly we’re pretty good bug fixers. Bug reports are quite rare these days, since a lot of them have been fixed already.
Small amount of code.
It does not have hundreds of thousands of lines of code for things you won’t use anyway. The core is kept simple, and extra things like GUI libraries, and effects are developed separately outside of pygame.
Als je de DEBIAN WHEEZY image gebruikt op de Raspberry dan is PyGame al geïnstalleerd!
Installatie via PIP
Installeer Pygame met het commando: pip install pygame
1 2 |
Requirement already satisfied (use --upgrade to upgrade): rpi.gpio in /usr/lib/python2.7/dist-packages Cleaning up... |
Installatie via Source (TAR.GZ)
1 2 3 4 |
wget http://pygame.org/ftp/pygame-1.9.1release.tar.gz tar zxf pygame-1.9.1release.tar.gz cd pygame-1.9.1release sudo python setup.py install |
Krijg je deze foutmelding:
1 2 3 4 5 6 7 8 9 |
WARNING, No "Setup" File Exists, Running "config.py" Using UNIX configuration... Hunting dependencies... sh: 1: sdl-config: not found WARNING: "sdl-config" failed! sh: 1: smpeg-config: not found WARNING: "smpeg-config" failed! Unable to run "sdl-config". Please make sure a development version of SDL is installed. |
Dan moet er eerst aanvullende bibliotheken geïnstalleerd worden (dependencies), met het commando:
sudo apt-get install mercurial python-dev python-numpy libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsmpeg-dev libsdl1.2-dev libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev
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 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 |
Reading package lists... Done Building dependency tree Reading state information... Done python-dev is already the newest version. python-numpy is already the newest version. python-numpy set to manually installed. The following extra packages will be installed: libasound2-dev libav-tools libavahi-client-dev libavahi-common-dev libavdevice53 libavfilter2 libavfilter3 libavformat53 libavresample1 libavutil-dev libcaca-dev libdbus-1-dev libdirectfb-dev libdirectfb-extra libelfg0 libflac-dev libgl1-mesa-dev libglib2.0-bin libglib2.0-dev libglu1-mesa-dev libjbig-dev libjpeg8-dev libmad0-dev libmikmod2-dev libogg-dev libopencv-core2.3 libopencv-imgproc2.3 libpcre3-dev libpcrecpp0 libpostproc52 libpthread-stubs0 libpthread-stubs0-dev libpulse-dev libpulse-mainloop-glib0 libslang2-dev libtiff4-dev libtiffxx0c2 libts-dev libvorbis-dev libwebp-dev libx11-dev libx11-doc libxau-dev libxcb1-dev libxdmcp-dev libxext-dev mercurial-common mesa-common-dev x11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto-xext-dev xorg-sgml-doctools xtrans-dev Suggested packages: libasound2-doc frei0r-plugins libdc1394-22-dev libgsm1-dev libraw1394-dev libschroedinger-dev libspeex-dev libtheora-dev libglib2.0-doc libxcb-doc libxext-doc qct vim emacs kdiff3 kdiff3-qt kompare meld xxdiff tkcvs mgdiff python-mysqldb python-pygments python-openssl The following NEW packages will be installed: ffmpeg libasound2-dev libav-tools libavahi-client-dev libavahi-common-dev libavcodec-dev libavdevice53 libavfilter2 libavfilter3 libavformat-dev libavformat53 libavresample1 libavutil-dev libcaca-dev libdbus-1-dev libdirectfb-dev libdirectfb-extra libelfg0 libflac-dev libgl1-mesa-dev libglib2.0-bin libglib2.0-dev libglu1-mesa-dev libjbig-dev libjpeg8-dev libmad0-dev libmikmod2-dev libogg-dev libopencv-core2.3 libopencv-imgproc2.3 libpcre3-dev libpcrecpp0 libportmidi-dev libpostproc52 libpthread-stubs0 libpthread-stubs0-dev libpulse-dev libpulse-mainloop-glib0 libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libslang2-dev libsmpeg-dev libswscale-dev libtiff4-dev libtiffxx0c2 libts-dev libvorbis-dev libwebp-dev libx11-dev libx11-doc libxau-dev libxcb1-dev libxdmcp-dev libxext-dev mercurial mercurial-common mesa-common-dev x11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto-xext-dev xorg-sgml-doctools xtrans-dev 0 upgraded, 65 newly installed, 0 to remove and 16 not upgraded. Need to get 28.4 MB of archives. After this operation, 83.2 MB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://archive.raspberrypi.org/debian/ wheezy/main libavdevice53 armhf 6:9.14-1rpi1rpi1 [86.6 kB] Get:2 http://archive.raspberrypi.org/debian/ wheezy/main libavresample1 armhf 6:9.14-1rpi1rpi1 [84.0 kB] Get:3 http://archive.raspberrypi.org/debian/ wheezy/main libavfilter3 armhf 6:9.14-1rpi1rpi1 [162 kB] Get:4 http://archive.raspberrypi.org/debian/ wheezy/main libav-tools armhf 6:9.14-1rpi1rpi1 [3,198 kB] Get:5 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libavformat53 armhf 6:0.8.16-1+rpi1 [413 kB] Get:6 http://archive.raspberrypi.org/debian/ wheezy/main libglib2.0-bin armhf 2.40.0-3rpi3rpi1 [1,360 kB] Get:7 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libopencv-core2.3 armhf 2.3.1-11 [707 kB] Get:8 http://archive.raspberrypi.org/debian/ wheezy/main libpcrecpp0 armhf 1:8.31-2rpi2 [126 kB] Get:9 http://archive.raspberrypi.org/debian/ wheezy/main libavutil-dev armhf 6:9.14-1rpi1rpi1 [151 kB] Get:10 http://archive.raspberrypi.org/debian/ wheezy/main libavcodec-dev armhf 6:9.14-1rpi1rpi1 [2,562 kB] Get:11 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libopencv-imgproc2.3 armhf 2.3.1-11 [672 kB] Get:12 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libavfilter2 armhf 6:0.8.16-1+rpi1 [114 kB] Get:13 http://archive.raspberrypi.org/debian/ wheezy/main libavformat-dev armhf 6:9.14-1rpi1rpi1 [551 kB] Get:14 http://archive.raspberrypi.org/debian/ wheezy/main libpcre3-dev armhf 1:8.31-2rpi2 [350 kB] Get:15 http://archive.raspberrypi.org/debian/ wheezy/main libglib2.0-dev armhf 2.40.0-3rpi3rpi1 [2,466 kB] Get:16 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libdirectfb-extra armhf 1.2.10.0-5 [32.3 kB] Get:17 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libelfg0 armhf 0.8.13-3 [56.5 kB] Get:18 http://archive.raspberrypi.org/debian/ wheezy/main libpostproc52 armhf 6:0.git20120821-4rpi1 [29.5 kB] Get:19 http://archive.raspberrypi.org/debian/ wheezy/main libswscale-dev armhf 6:9.14-1rpi1rpi1 [115 kB] 47% [Waiting for headers] 1,586 kB/s 9sReading package lists... Done Building dependency tree Reading state information... Done python-dev is already the newest version. python-numpy is already the newest version. python-numpy set to manually installed. The following extra packages will be installed: libasound2-dev libav-tools libavahi-client-dev libavahi-common-dev libavdevice53 libavfilter2 libavfilter3 libavformat53 libavresample1 libavutil-dev libcaca-dev libdbus-1-dev libdirectfb-dev libdirectfb-extra libelfg0 libflac-dev libgl1-mesa-dev libglib2.0-bin libglib2.0-dev libglu1-mesa-dev libjbig-dev libjpeg8-dev libmad0-dev libmikmod2-dev libogg-dev libopencv-core2.3 libopencv-imgproc2.3 libpcre3-dev libpcrecpp0 libpostproc52 libpthread-stubs0 libpthread-stubs0-dev libpulse-dev libpulse-mainloop-glib0 libslang2-dev libtiff4-dev libtiffxx0c2 libts-dev libvorbis-dev libwebp-dev libx11-dev libx11-doc libxau-dev libxcb1-dev libxdmcp-dev libxext-dev mercurial-common mesa-common-dev x11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto-xext-dev xorg-sgml-doctools xtrans-dev Suggested packages: libasound2-doc frei0r-plugins libdc1394-22-dev libgsm1-dev libraw1394-dev libschroedinger-dev libspeex-dev libtheora-dev libglib2.0-doc libxcb-doc libxext-doc qct vim emacs kdiff3 kdiff3-qt kompare meld xxdiff tkcvs mgdiff python-mysqldb python-pygments python-openssl The following NEW packages will be installed: ffmpeg libasound2-dev libav-tools libavahi-client-dev libavahi-common-dev libavcodec-dev libavdevice53 libavfilter2 libavfilter3 libavformat-dev libavformat53 libavresample1 libavutil-dev libcaca-dev libdbus-1-dev libdirectfb-dev libdirectfb-extra libelfg0 libflac-dev libgl1-mesa-dev libglib2.0-bin libglib2.0-dev libglu1-mesa-dev libjbig-dev libjpeg8-dev libmad0-dev libmikmod2-dev libogg-dev libopencv-core2.3 libopencv-imgproc2.3 libpcre3-dev libpcrecpp0 libportmidi-dev libpostproc52 libpthread-stubs0 libpthread-stubs0-dev libpulse-dev libpulse-mainloop-glib0 libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libslang2-dev libsmpeg-dev libswscale-dev libtiff4-dev libtiffxx0c2 libts-dev libvorbis-dev libwebp-dev libx11-dev libx11-doc libxau-dev libxcb1-dev libxdmcp-dev libxext-dev mercurial mercurial-common mesa-common-dev x11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto-xext-dev xorg-sgml-doctools xtrans-dev 0 upgraded, 65 newly installed, 0 to remove and 16 not upgraded. Need to get 28.4 MB of archives. After this operation, 83.2 MB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://archive.raspberrypi.org/debian/ wheezy/main libavdevice53 armhf 6:9.14-1rpi1rpi1 [86.6 kB] Get:2 http://archive.raspberrypi.org/debian/ wheezy/main libavresample1 armhf 6:9.14-1rpi1rpi1 [84.0 kB] Get:3 http://archive.raspberrypi.org/debian/ wheezy/main libavfilter3 armhf 6:9.14-1rpi1rpi1 [162 kB] Get:4 http://archive.raspberrypi.org/debian/ wheezy/main libav-tools armhf 6:9.14-1rpi1rpi1 [3,198 kB] Get:5 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libavformat53 armhf 6:0.8.16-1+rpi1 [413 kB] Get:6 http://archive.raspberrypi.org/debian/ wheezy/main libglib2.0-bin armhf 2.40.0-3rpi3rpi1 [1,360 kB] Get:7 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libopencv-core2.3 armhf 2.3.1-11 [707 kB] Get:8 http://archive.raspberrypi.org/debian/ wheezy/main libpcrecpp0 armhf 1:8.31-2rpi2 [126 kB] Get:9 http://archive.raspberrypi.org/debian/ wheezy/main libavutil-dev armhf 6:9.14-1rpi1rpi1 [151 kB] Get:10 http://archive.raspberrypi.org/debian/ wheezy/main libavcodec-dev armhf 6:9.14-1rpi1rpi1 [2,562 kB] Get:11 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libopencv-imgproc2.3 armhf 2.3.1-11 [672 kB] Get:12 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libavfilter2 armhf 6:0.8.16-1+rpi1 [114 kB] Get:20 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libpulse-mainloop-glib0 armhf 2.0-6.1 [24.3 kB] Get:21 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libtiffxx0c2 armhf 3.9.6-11 [63.7 kB] 47% [Working] 594 kB/s 25sReading package lists... Done Building dependency tree Reading state information... Done python-dev is already the newest version. 47% [Waiting for headers] 594 kB/s 25spython-numpy is already the newest version. python-numpy set to manually installed. Get:22 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libjbig-dev armhf 2.0-2+deb7u1 [11.4 kB] Get:23 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libasound2-dev armhf 1.0.25-4 [70.7 kB] Get:24 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libavahi-common-dev armhf 0.6.31-2 [68.5 kB] Get:25 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libdbus-1-dev armhf 1.6.8-1+deb7u6 [217 kB] Get:26 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libavahi-client-dev armhf 0.6.31-2 [62.3 kB] Get:27 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libslang2-dev armhf 2.2.4-15 [545 kB] Get:28 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libcaca-dev armhf 0.99.beta18-1 [995 kB] Get:29 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libjpeg8-dev armhf 8d-1+deb7u1 [238 kB] Get:30 http://mirrordirector.raspbian.org/raspbian/ wheezy/main xorg-sgml-doctools all 1:1.10-1 [24.1 kB] Get:31 http://mirrordirector.raspbian.org/raspbian/ wheezy/main x11proto-core-dev all 7.0.23-1 [774 kB] Get:32 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libxau-dev armhf 1:1.0.7-1 [21.0 kB] Get:33 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libxdmcp-dev armhf 1:1.1.1-1 [40.8 kB] Get:34 http://mirrordirector.raspbian.org/raspbian/ wheezy/main x11proto-input-dev all 2.2-1 [172 kB] Get:35 http://mirrordirector.raspbian.org/raspbian/ wheezy/main x11proto-kb-dev all 1.0.6-2 [269 kB] Get:36 http://mirrordirector.raspbian.org/raspbian/ wheezy/main xtrans-dev all 1.2.7-1 [112 kB] Get:37 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libpthread-stubs0 armhf 0.3-3 [3,230 B] Get:38 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libpthread-stubs0-dev armhf 0.3-3 [3,996 B] Get:39 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libxcb1-dev armhf 1.8.1-2+deb7u1 [81.6 kB] Get:40 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libx11-dev armhf 2:1.5.0-1+deb7u1+wheezy [957 kB] Get:41 http://mirrordirector.raspbian.org/raspbian/ wheezy/main x11proto-xext-dev all 7.2.1-1 [273 kB] Get:42 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libxext-dev armhf 2:1.3.1-2+deb7u1 [108 kB] Get:43 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libdirectfb-dev armhf 1.2.10.0-5 [810 kB] Get:44 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libogg-dev armhf 1.3.0-4 [92.2 kB] Get:45 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libflac-dev armhf 1.2.1-6+deb7u1 [217 kB] Get:46 http://mirrordirector.raspbian.org/raspbian/ wheezy/main mesa-common-dev armhf 8.0.5-4+deb7u2+rpi1 [278 kB] Get:47 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libgl1-mesa-dev armhf 8.0.5-4+deb7u2+rpi1 [32.8 kB] Get:48 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libglu1-mesa-dev armhf 8.0.5-4+deb7u2+rpi1 [193 kB] Get:49 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libmad0-dev armhf 0.15.1b-7 [93.2 kB] Get:50 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libmikmod2-dev armhf 3.1.12-5 [251 kB] Get:51 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libportmidi-dev armhf 1:184-2.1 [66.6 kB] Get:52 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libpulse-dev armhf 2.0-6.1 [78.6 kB] Get:53 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libts-dev armhf 1.0-11 [11.7 kB] Get:54 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libsdl1.2-dev armhf 1.2.15-5 [878 kB] Get:55 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libtiff4-dev armhf 3.9.6-11 [320 kB] Get:56 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libwebp-dev armhf 0.1.3-3+nmu1 [130 kB] Get:57 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libsdl-image1.2-dev armhf 1.2.12-2 [39.4 kB] Get:58 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libvorbis-dev armhf 1.3.2-1.3 [455 kB] Get:59 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libsdl-mixer1.2-dev armhf 1.2.12-3 [118 kB] Get:60 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libsdl-ttf2.0-dev armhf 2.0.11-2 [28.1 kB] Get:61 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libsmpeg-dev armhf 0.4.5+cvs20030824-5 [130 kB] Get:62 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libx11-doc all 2:1.5.0-1+deb7u1+wheezy [3,227 kB] Get:63 http://mirrordirector.raspbian.org/raspbian/ wheezy/main mercurial-common all 2.2.2-3 [2,320 kB] Get:64 http://mirrordirector.raspbian.org/raspbian/ wheezy/main mercurial armhf 2.2.2-3 [83.7 kB] Get:65 http://mirrordirector.raspbian.org/raspbian/ wheezy/main ffmpeg armhf 6:0.8.16-1+rpi1 [148 kB] Fetched 28.4 MB in 52s (536 kB/s) Extracting templates from packages: 100% libasound2-dev libav-tools libavahi-client-dev libavahi-common-dev libavdevice53 libavfilter2 libavfilter3 libavformat53 libavresample1 libavutil-dev libcaca-dev libdbus-1-dev libdirectfb-dev libdirectfb-extra libelfg0 libflac-dev libgl1-mesa-dev libglib2.0-bin libglib2.0-dev libglu1-mesa-dev libjbig-dev libjpeg8-dev libmad0-dev libmikmod2-dev libogg-dev libopencv-core2.3 libopencv-imgproc2.3 libpcre3-dev libpcrecpp0 libpostproc52 libpthread-stubs0 libpthread-stubs0-dev libpulse-dev libpulse-mainloop-glib0 libslang2-dev libtiff4-dev libtiffxx0c2 libts-dev libvorbis-dev libwebp-dev libx11-dev libx11-doc libxau-dev libxcb1-dev libxdmcp-dev libxext-dev mercurial-common mesa-common-dev x11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto-xext-dev xorg-sgml-doctools xtrans-dev Suggested packages: libasound2-doc frei0r-plugins libdc1394-22-dev libgsm1-dev libraw1394-dev libschroedinger-dev libspeex-dev libtheora-dev libglib2.0-doc libxcb-doc libxext-doc qct vim emacs kdiff3 kdiff3-qt kompare meld xxdiff tkcvs mgdiff python-mysqldb python-pygments python-openssl Reading package lists... Done Building dependency tree Reading state information... Done python-dev is already the newest version. python-numpy is already the newest version. python-numpy set to manually installed. The following extra packages will be installed: libasound2-dev libav-tools libavahi-client-dev libavahi-common-dev libavdevice53 libavfilter2 libavfilter3 libavformat53 libavresample1 libavutil-dev libcaca-dev libdbus-1-dev libdirectfb-dev libdirectfb-extra libelfg0 libflac-dev libgl1-mesa-dev libglib2.0-bin libglib2.0-dev libglu1-mesa-dev libjbig-dev libjpeg8-dev libmad0-dev libmikmod2-dev libogg-dev libopencv-core2.3 libopencv-imgproc2.3 libpcre3-dev libpcrecpp0 libpostproc52 Reading package lists... Done Building dependency tree Reading state information... Done python-dev is already the newest version. python-numpy is already the newest version. python-numpy set to manually installed. The following extra packages will be installed: libasound2-dev libav-tools libavahi-client-dev libavahi-common-dev libavdevice53 libavfilter2 libavfilter3 libavformat53 libavresample1 libavutil-dev libcaca-dev libdbus-1-dev libdirectfb-dev libdirectfb-extra libelfg0 libflac-dev libgl1-mesa-dev libglib2.0-bin libglib2.0-dev libglu1-mesa-dev libjbig-dev libjpeg8-dev libmad0-dev libmikmod2-dev libogg-dev libopencv-core2.3 libopencv-imgproc2.3 libpcre3-dev libpcrecpp0 libpostproc52 libpthread-stubs0 libpthread-stubs0-dev libpulse-dev libpulse-mainloop-glib0 libslang2-dev libtiff4-dev libtiffxx0c2 libts-dev libvorbis-dev libwebp-dev libx11-dev libx11-doc libxau-dev libxcb1-dev libxdmcp-dev libxext-dev mercurial-common mesa-common-dev x11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto-xext-dev xorg-sgml-doctools xtrans-dev Suggested packages: libasound2-doc frei0r-plugins libdc1394-22-dev libgsm1-dev libraw1394-dev libschroedinger-dev libspeex-dev libtheora-dev libglib2.0-doc libxcb-doc libxext-doc qct vim emacs kdiff3 kdiff3-qt kompare meld xxdiff tkcvs mgdiff python-mysqldb python-pygments python-openssl The following NEW packages will be installed: ffmpeg libasound2-dev libav-tools libavahi-client-dev libavahi-common-dev libavcodec-dev libavdevice53 libavfilter2 libavfilter3 libavformat-dev libavformat53 libavresample1 libavutil-dev libcaca-dev libdbus-1-dev libdirectfb-dev libdirectfb-extra libelfg0 libflac-dev libgl1-mesa-dev libglib2.0-bin libglib2.0-dev libglu1-mesa-dev libjbig-dev libjpeg8-dev libmad0-dev libmikmod2-dev libogg-dev libopencv-core2.3 libopencv-imgproc2.3 libpcre3-dev libpcrecpp0 libportmidi-dev libpostproc52 libpthread-stubs0 libpthread-stubs0-dev libpulse-dev libpulse-mainloop-glib0 libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libslang2-dev libsmpeg-dev libswscale-dev libtiff4-dev libtiffxx0c2 libts-dev libvorbis-dev libwebp-dev libx11-dev libx11-doc libxau-dev libxcb1-dev libxdmcp-dev libxext-dev mercurial mercurial-common mesa-common-dev x11proto-core-dev libasound2-dev libav-tools libavahi-client-dev libavahi-common-dev libavdevice53 libavfilter2 libavfilter3 libavformat53 libavresample1 libavutil-dev libcaca-dev libdbus-1-dev libdirectfb-dev libdirectfb-extra libelfg0 libflac-dev libgl1-mesa-dev libglib2.0-bin libglib2.0-dev libglu1-mesa-dev libjbig-dev libjpeg8-dev libmad0-dev libmikmod2-dev libogg-dev libopencv-core2.3 libopencv-imgproc2.3 libpcre3-dev libpcrecpp0 libpostproc52 libpthread-stubs0 libpthread-stubs0-dev libpulse-dev libpulse-mainloop-glib0 libslang2-dev libtiff4-dev libtiffxx0c2 libts-dev libvorbis-dev libwebp-dev libx11-dev libx11-doc libxau-dev libxcb1-dev libxdmcp-dev libxext-dev mercurial-common mesa-common-dev x11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto-xext-dev xorg-sgml-doctools xtrans-dev Suggested packages: libasound2-doc frei0r-plugins libdc1394-22-dev libgsm1-dev libraw1394-dev libschroedinger-dev libspeex-dev libtheora-dev libglib2.0-doc libxcb-doc libxext-doc qct vim emacs kdiff3 kdiff3-qt kompare meld xxdiff tkcvs mgdiff python-mysqldb python-pygments python-openssl Reading package lists... Done Building dependency tree Reading state information... Done python-dev is already the newest version. python-numpy is already the newest version. python-numpy set to manually installed. The following extra packages will be installed: libasound2-dev libav-tools libavahi-client-dev libavahi-common-dev libavdevice53 libavfilter2 libavfilter3 libavformat53 libavresample1 libavutil-dev libcaca-dev libdbus-1-dev libdirectfb-dev libdirectfb-extra libelfg0 libflac-dev libgl1-mesa-dev libglib2.0-bin libglib2.0-dev libglu1-mesa-dev libjbig-dev libjpeg8-dev libmad0-dev libmikmod2-dev libogg-dev libopencv-core2.3 libopencv-imgproc2.3 libpcre3-dev libpcrecpp0 libpostproc52 Reading package lists... Done Building dependency tree Reading state information... Done python-dev is already the newest version. python-numpy is already the newest version. python-numpy set to manually installed. The following extra packages will be installed: libasound2-dev libav-tools libavahi-client-dev libavahi-common-dev libavdevice53 libavfilter2 libavfilter3 libavformat53 libavresample1 libavutil-dev libcaca-dev libdbus-1-dev libdirectfb-dev libdirectfb-extra libelfg0 libflac-dev libgl1-mesa-dev libglib2.0-bin libglib2.0-dev libglu1-mesa-dev libjbig-dev libjpeg8-dev libmad0-dev libmikmod2-dev libogg-dev libopencv-core2.3 libopencv-imgproc2.3 libpcre3-dev libpcrecpp0 libpostproc52 libpthread-stubs0 libpthread-stubs0-dev libpulse-dev libpulse-mainloop-glib0 libslang2-dev libtiff4-dev libtiffxx0c2 libts-dev libvorbis-dev libwebp-dev libx11-dev libx11-doc libxau-dev libxcb1-dev libxdmcp-dev libxext-dev mercurial-common mesa-common-dev x11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto-xext-dev xorg-sgml-doctools xtrans-dev Suggested packages: libasound2-doc frei0r-plugins libdc1394-22-dev libgsm1-dev libraw1394-dev libschroedinger-dev libspeex-dev libtheora-dev libglib2.0-doc libxcb-doc libxext-doc qct vim emacs kdiff3 kdiff3-qt kompare meld xxdiff tkcvs mgdiff python-mysqldb python-pygments python-openssl The following NEW packages will be installed: ffmpeg libasound2-dev libav-tools libavahi-client-dev libavahi-common-dev libavcodec-dev libavdevice53 libavfilter2 libavfilter3 libavformat-dev libavformat53 libavresample1 libavutil-dev libcaca-dev libdbus-1-dev libdirectfb-dev libdirectfb-extra libelfg0 libflac-dev libgl1-mesa-dev libglib2.0-bin libglib2.0-dev libglu1-mesa-dev libjbig-dev libjpeg8-dev libmad0-dev libmikmod2-dev libogg-dev libopencv-core2.3 libopencv-imgproc2.3 libpcre3-dev libpcrecpp0 libportmidi-dev libpostproc52 libpthread-stubs0 libpthread-stubs0-dev libpulse-dev libpulse-mainloop-glib0 libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libslang2-dev libsmpeg-dev libswscale-dev libtiff4-dev libtiffxx0c2 libts-dev libvorbis-dev libwebp-dev libx11-dev libx11-doc libxau-dev libxcb1-dev libxdmcp-dev libxext-dev mercurial mercurial-common mesa-common-dev x11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto-xext-dev xorg-sgml-doctools xtrans-dev 0 upgraded, 65 newly installed, 0 to remove and 16 not upgraded. Need to get 28.4 MB of archives. After this operation, 83.2 MB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://archive.raspberrypi.org/debian/ wheezy/main libavdevice53 armhf 6:9.14-1rpi1rpi1 [86.6 kB] Get:2 http://archive.raspberrypi.org/debian/ wheezy/main libavresample1 armhf 6:9.14-1rpi1rpi1 [84.0 kB] Get:3 http://archive.raspberrypi.org/debian/ wheezy/main libavfilter3 armhf 6:9.14-1rpi1rpi1 [162 kB] Get:4 http://archive.raspberrypi.org/debian/ wheezy/main libav-tools armhf 6:9.14-1rpi1rpi1 [3,198 kB] Get:5 http://mirrordireSelecting previously unselected package libavdevice53:armhf. (Reading database ... 79508 files and directories currently installed.) Unpacking libavdevice53:armhf (from .../libavdevice53_6%3a9.14-1rpi1rpi1_armhf.deb) ... Selecting previously unselected package libavresample1:armhf. Unpacking libavresample1:armhf (from .../libavresample1_6%3a9.14-1rpi1rpi1_armhf.deb) ... Selecting previously unselected package libavfilter3:armhf. Unpacking libavfilter3:armhf (from .../libavfilter3_6%3a9.14-1rpi1rpi1_armhf.deb) ... Selecting previously unselected package libav-tools. Unpacking libav-tools (from .../libav-tools_6%3a9.14-1rpi1rpi1_armhf.deb) ... Selecting previously unselected package libavformat53:armhf. Unpacking libavformat53:armhf (from .../libavformat53_6%3a0.8.16-1+rpi1_armhf.deb) ... Selecting previously unselected package libopencv-core2.3. Unpacking libopencv-core2.3 (from .../libopencv-core2.3_2.3.1-11_armhf.deb) ... Selecting previously unselected package libopencv-imgproc2.3. Unpacking libopencv-imgproc2.3 (from .../libopencv-imgproc2.3_2.3.1-11_armhf.deb) ... Selecting previously unselected package libavfilter2:armhf. Unpacking libavfilter2:armhf (from .../libavfilter2_6%3a0.8.16-1+rpi1_armhf.deb) ... Selecting previously unselected package libdirectfb-extra:armhf. Unpacking libdirectfb-extra:armhf (from .../libdirectfb-extra_1.2.10.0-5_armhf.deb) ... Selecting previously unselected package libelfg0. Unpacking libelfg0 (from .../libelfg0_0.8.13-3_armhf.deb) ... Selecting previously unselected package libglib2.0-bin. Unpacking libglib2.0-bin (from .../libglib2.0-bin_2.40.0-3rpi3rpi1_armhf.deb) ... Selecting previously unselected package libpcrecpp0:armhf. Unpacking libpcrecpp0:armhf (from .../libpcrecpp0_1%3a8.31-2rpi2_armhf.deb) ... Selecting previously unselected package libpulse-mainloop-glib0:armhf. Unpacking libpulse-mainloop-glib0:armhf (from .../libpulse-mainloop-glib0_2.0-6.1_armhf.deb) ... Selecting previously unselected package libtiffxx0c2:armhf. Unpacking libtiffxx0c2:armhf (from .../libtiffxx0c2_3.9.6-11_armhf.deb) ... Selecting previously unselected package libjbig-dev:armhf. Unpacking libjbig-dev:armhf (from .../libjbig-dev_2.0-2+deb7u1_armhf.deb) ... Selecting previously unselected package libasound2-dev:armhf. Unpacking libasound2-dev:armhf (from .../libasound2-dev_1.0.25-4_armhf.deb) ... Selecting previously unselected package libavahi-common-dev. Unpacking libavahi-common-dev (from .../libavahi-common-dev_0.6.31-2_armhf.deb) ... Selecting previously unselected package libdbus-1-dev. Unpacking libdbus-1-dev (from .../libdbus-1-dev_1.6.8-1+deb7u6_armhf.deb) ... Selecting previously unselected package libavahi-client-dev. Unpacking libavahi-client-dev (from .../libavahi-client-dev_0.6.31-2_armhf.deb) ... Selecting previously unselected package libavutil-dev. Unpacking libavutil-dev (from .../libavutil-dev_6%3a9.14-1rpi1rpi1_armhf.deb) ... Selecting previously unselected package libavcodec-dev. Unpacking libavcodec-dev (from .../libavcodec-dev_6%3a9.14-1rpi1rpi1_armhf.deb) ... Selecting previously unselected package libavformat-dev. Unpacking libavformat-dev (from .../libavformat-dev_6%3a9.14-1rpi1rpi1_armhf.deb) ... Selecting previously unselected package libslang2-dev:armhf. Unpacking libslang2-dev:armhf (from .../libslang2-dev_2.2.4-15_armhf.deb) ... Selecting previously unselected package libcaca-dev. Unpacking libcaca-dev (from .../libcaca-dev_0.99.beta18-1_armhf.deb) ... Selecting previously unselected package libjpeg8-dev:armhf. Unpacking libjpeg8-dev:armhf (from .../libjpeg8-dev_8d-1+deb7u1_armhf.deb) ... Selecting previously unselected package xorg-sgml-doctools. Unpacking xorg-sgml-doctools (from .../xorg-sgml-doctools_1%3a1.10-1_all.deb) ... Selecting previously unselected package x11proto-core-dev. Unpacking x11proto-core-dev (from .../x11proto-core-dev_7.0.23-1_all.deb) ... Selecting previously unselected package libxau-dev:armhf. Unpacking libxau-dev:armhf (from .../libxau-dev_1%3a1.0.7-1_armhf.deb) ... Selecting previously unselected package libxdmcp-dev:armhf. Unpacking libxdmcp-dev:armhf (from .../libxdmcp-dev_1%3a1.1.1-1_armhf.deb) ... Selecting previously unselected package x11proto-input-dev. Unpacking x11proto-input-dev (from .../x11proto-input-dev_2.2-1_all.deb) ... Selecting previously unselected package x11proto-kb-dev. Unpacking x11proto-kb-dev (from .../x11proto-kb-dev_1.0.6-2_all.deb) ... Selecting previously unselected package xtrans-dev. Unpacking xtrans-dev (from .../xtrans-dev_1.2.7-1_all.deb) ... Selecting previously unselected package libpthread-stubs0:armhf. Unpacking libpthread-stubs0:armhf (from .../libpthread-stubs0_0.3-3_armhf.deb) ... Selecting previously unselected package libpthread-stubs0-dev:armhf. Unpacking libpthread-stubs0-dev:armhf (from .../libpthread-stubs0-dev_0.3-3_armhf.deb) ... Selecting previously unselected package libxcb1-dev:armhf. Unpacking libxcb1-dev:armhf (from .../libxcb1-dev_1.8.1-2+deb7u1_armhf.deb) ... Selecting previously unselected package libx11-dev:armhf. Unpacking libx11-dev:armhf (from .../libx11-dev_2%3a1.5.0-1+deb7u1+wheezy_armhf.deb) ... Selecting previously unselected package x11proto-xext-dev. Unpacking x11proto-xext-dev (from .../x11proto-xext-dev_7.2.1-1_all.deb) ... Selecting previously unselected package libxext-dev:armhf. Unpacking libxext-dev:armhf (from .../libxext-dev_2%3a1.3.1-2+deb7u1_armhf.deb) ... Selecting previously unselected package libdirectfb-dev. Unpacking libdirectfb-dev (from .../libdirectfb-dev_1.2.10.0-5_armhf.deb) ... Selecting previously unselected package libogg-dev:armhf. Unpacking libogg-dev:armhf (from .../libogg-dev_1.3.0-4_armhf.deb) ... Selecting previously unselected package libflac-dev:armhf. Unpacking libflac-dev:armhf (from .../libflac-dev_1.2.1-6+deb7u1_armhf.deb) ... Selecting previously unselected package mesa-common-dev. Unpacking mesa-common-dev (from .../mesa-common-dev_8.0.5-4+deb7u2+rpi1_armhf.deb) ... Selecting previously unselected package libgl1-mesa-dev. Unpacking libgl1-mesa-dev (from .../libgl1-mesa-dev_8.0.5-4+deb7u2+rpi1_armhf.deb) ... Selecting previously unselected package libpcre3-dev:armhf. Unpacking libpcre3-dev:armhf (from .../libpcre3-dev_1%3a8.31-2rpi2_armhf.deb) ... Selecting previously unselected package libglib2.0-dev. Unpacking libglib2.0-dev (from .../libglib2.0-dev_2.40.0-3rpi3rpi1_armhf.deb) ... Selecting previously unselected package libglu1-mesa-dev. Unpacking libglu1-mesa-dev (from .../libglu1-mesa-dev_8.0.5-4+deb7u2+rpi1_armhf.deb) ... Selecting previously unselected package libmad0-dev. Unpacking libmad0-dev (from .../libmad0-dev_0.15.1b-7_armhf.deb) ... Selecting previously unselected package libmikmod2-dev:armhf. Unpacking libmikmod2-dev:armhf (from .../libmikmod2-dev_3.1.12-5_armhf.deb) ... Selecting previously unselected package libportmidi-dev. Unpacking libportmidi-dev (from .../libportmidi-dev_1%3a184-2.1_armhf.deb) ... Selecting previously unselected package libpostproc52. Unpacking libpostproc52 (from .../libpostproc52_6%3a0.git20120821-4rpi1_armhf.deb) ... Selecting previously unselected package libpulse-dev:armhf. Unpacking libpulse-dev:armhf (from .../libpulse-dev_2.0-6.1_armhf.deb) ... Selecting previously unselected package libts-dev:armhf. Unpacking libts-dev:armhf (from .../libts-dev_1.0-11_armhf.deb) ... Selecting previously unselected package libsdl1.2-dev. Unpacking libsdl1.2-dev (from .../libsdl1.2-dev_1.2.15-5_armhf.deb) ... Selecting previously unselected package libtiff4-dev. Unpacking libtiff4-dev (from .../libtiff4-dev_3.9.6-11_armhf.deb) ... Selecting previously unselected package libwebp-dev:armhf. Unpacking libwebp-dev:armhf (from .../libwebp-dev_0.1.3-3+nmu1_armhf.deb) ... Selecting previously unselected package libsdl-image1.2-dev:armhf. Unpacking libsdl-image1.2-dev:armhf (from .../libsdl-image1.2-dev_1.2.12-2_armhf.deb) ... Selecting previously unselected package libvorbis-dev:armhf. Unpacking libvorbis-dev:armhf (from .../libvorbis-dev_1.3.2-1.3_armhf.deb) ... Selecting previously unselected package libsdl-mixer1.2-dev:armhf. Unpacking libsdl-mixer1.2-dev:armhf (from .../libsdl-mixer1.2-dev_1.2.12-3_armhf.deb) ... Selecting previously unselected package libsdl-ttf2.0-dev:armhf. Unpacking libsdl-ttf2.0-dev:armhf (from .../libsdl-ttf2.0-dev_2.0.11-2_armhf.deb) ... Selecting previously unselected package libsmpeg-dev. Unpacking libsmpeg-dev (from .../libsmpeg-dev_0.4.5+cvs20030824-5_armhf.deb) ... Selecting previously unselected package libswscale-dev. Unpacking libswscale-dev (from .../libswscale-dev_6%3a9.14-1rpi1rpi1_armhf.deb) ... Selecting previously unselected package libx11-doc. Unpacking libx11-doc (from .../libx11-doc_2%3a1.5.0-1+deb7u1+wheezy_all.deb) ... Selecting previously unselected package mercurial-common. Unpacking mercurial-common (from .../mercurial-common_2.2.2-3_all.deb) ... Selecting previously unselected package mercurial. Unpacking mercurial (from .../mercurial_2.2.2-3_armhf.deb) ... Selecting previously unselected package ffmpeg. Unpacking ffmpeg (from .../ffmpeg_6%3a0.8.16-1+rpi1_armhf.deb) ... Processing triggers for man-db ... Processing triggers for libglib2.0-0:armhf ... Processing triggers for install-info ... Setting up libavdevice53:armhf (6:9.14-1rpi1rpi1) ... Setting up libavresample1:armhf (6:9.14-1rpi1rpi1) ... Setting up libavfilter3:armhf (6:9.14-1rpi1rpi1) ... Setting up libav-tools (6:9.14-1rpi1rpi1) ... Setting up libavformat53:armhf (6:0.8.16-1+rpi1) ... Setting up libopencv-core2.3 (2.3.1-11) ... Setting up libopencv-imgproc2.3 (2.3.1-11) ... Setting up libavfilter2:armhf (6:0.8.16-1+rpi1) ... Setting up libdirectfb-extra:armhf (1.2.10.0-5) ... Setting up libelfg0 (0.8.13-3) ... Setting up libglib2.0-bin (2.40.0-3rpi3rpi1) ... Setting up libpcrecpp0:armhf (1:8.31-2rpi2) ... Setting up libpulse-mainloop-glib0:armhf (2.0-6.1) ... Setting up libtiffxx0c2:armhf (3.9.6-11) ... Setting up libjbig-dev:armhf (2.0-2+deb7u1) ... Setting up libasound2-dev:armhf (1.0.25-4) ... Setting up libavahi-common-dev (0.6.31-2) ... Setting up libdbus-1-dev (1.6.8-1+deb7u6) ... Setting up libavahi-client-dev (0.6.31-2) ... Setting up libavutil-dev (6:9.14-1rpi1rpi1) ... Setting up libavcodec-dev (6:9.14-1rpi1rpi1) ... Setting up libavformat-dev (6:9.14-1rpi1rpi1) ... Setting up libslang2-dev:armhf (2.2.4-15) ... Setting up libcaca-dev (0.99.beta18-1) ... Setting up libjpeg8-dev:armhf (8d-1+deb7u1) ... Setting up xorg-sgml-doctools (1:1.10-1) ... Setting up x11proto-core-dev (7.0.23-1) ... Setting up libxau-dev:armhf (1:1.0.7-1) ... Setting up libxdmcp-dev:armhf (1:1.1.1-1) ... Setting up x11proto-input-dev (2.2-1) ... Setting up x11proto-kb-dev (1.0.6-2) ... Setting up xtrans-dev (1.2.7-1) ... Setting up libpthread-stubs0:armhf (0.3-3) ... Setting up libpthread-stubs0-dev:armhf (0.3-3) ... Setting up libxcb1-dev:armhf (1.8.1-2+deb7u1) ... Setting up libx11-dev:armhf (2:1.5.0-1+deb7u1+wheezy) ... Setting up x11proto-xext-dev (7.2.1-1) ... Setting up libxext-dev:armhf (2:1.3.1-2+deb7u1) ... Setting up libdirectfb-dev (1.2.10.0-5) ... Setting up libogg-dev:armhf (1.3.0-4) ... Setting up libflac-dev:armhf (1.2.1-6+deb7u1) ... Setting up mesa-common-dev (8.0.5-4+deb7u2+rpi1) ... Setting up libgl1-mesa-dev (8.0.5-4+deb7u2+rpi1) ... Setting up libpcre3-dev:armhf (1:8.31-2rpi2) ... Setting up libglib2.0-dev (2.40.0-3rpi3rpi1) ... Setting up libglu1-mesa-dev (8.0.5-4+deb7u2+rpi1) ... Setting up libmad0-dev (0.15.1b-7) ... Setting up libmikmod2-dev:armhf (3.1.12-5) ... Setting up libportmidi-dev (1:184-2.1) ... Setting up libpostproc52 (6:0.git20120821-4rpi1) ... Setting up libpulse-dev:armhf (2.0-6.1) ... Setting up libts-dev:armhf (1.0-11) ... Setting up libsdl1.2-dev (1.2.15-5) ... Setting up libtiff4-dev (3.9.6-11) ... Setting up libwebp-dev:armhf (0.1.3-3+nmu1) ... Setting up libsdl-image1.2-dev:armhf (1.2.12-2) ... Setting up libvorbis-dev:armhf (1.3.2-1.3) ... Setting up libsdl-mixer1.2-dev:armhf (1.2.12-3) ... Setting up libsdl-ttf2.0-dev:armhf (2.0.11-2) ... Setting up libsmpeg-dev (0.4.5+cvs20030824-5) ... Setting up libswscale-dev (6:9.14-1rpi1rpi1) ... Setting up libx11-doc (2:1.5.0-1+deb7u1+wheezy) ... Setting up mercurial-common (2.2.2-3) ... Setting up mercurial (2.2.2-3) ... Creating config file /etc/mercurial/hgrc.d/hgext.rc with new version Setting up ffmpeg (6:0.8.16-1+rpi1) ... |
Foutmelding: linux/videodev.h: No such file or directory
Krijg je deze foutmelding:
1 2 3 4 5 6 |
In file included from src/_camera.c:36:0: src/camera.h:42:32: fatal error: linux/videodev.h: No such file or directory #include <linux/videodev.h> ^ compilation terminated. error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1 |
Dan moet er nog een “video” onderdeel geïnstalleerd worden, met de volgende commando’s:
1 2 3 |
sudo apt-get install libv4l-dev cd /usr/include/linux sudo ln -s ../libv4l1-videodev.h videodev.h |
Ga daarna weer terug om opnieuw pygame te compileren:
1 2 |
cd ~/pygame-1.9.1release sudo python setup.py install |
Bron: raspberrypi.org
PyGame SDL berichten
Als je een tijdje aan het experimenteren bent met PyGame valt op dat bij het oproepen van bijvoorbeeld een knop status er “debug” lijnen getoond worden…
Ik heb hier een script gevonden om PyGame opnieuw te compileren.
Maak een bestand aan, bijvoorbeeld /usr/src/pygame.sh (evt onder root, en vergeet niet chmod te gebruiken om het bestand uit te kunnen voeren), voeg deze inhoud daar in toe:
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 |
#!/bin/bash # # Build script for pygame 1.9 under Raspbian by Neil Munday (www.mundayweb.com) # March 2014 # buildDir=`pwd`/pygame-build pygameDir=$buildDir/pygame-1.9.1release echo "Removing system installed pygame..." sudo apt-get remove python-pygame echo "Installing dependencies..." sudo apt-get install libv4l-dev mercurial python-dev python-numpy ffmpeg libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsmpeg-dev libsdl1.2-dev libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev if [ ! -e /usr/include/linux/videodev.h ]; then if [ ! -e /usr/include/libv4l1-videodev.h ]; then echo "Error: /usr/include/libv4l1-videodev.h does not exist!" exit 1 fi sudo ln -s /usr/include/libv4l1-videodev.h /usr/include/linux/videodev.h fi mkdir -p $buildDir cd $buildDir if [ -e $pygameDir]; then echo "Removing previous pygame source" rm -rf $pygameDir fi echo "Downloading pygame source..." wget http://www.pygame.org/ftp/pygame-1.9.1release.tar.gz echo "Unpacking pygame source..." tar xvfz pygame-1.9.1release.tar.gz echo "Patching joystick.c ..." cd pygame-1.9.1release cp src/joystick.c src/joystick.c-orig grep -v printf src/joystick.c-orig > src/joystick.c echo "Building pygame (this will take some time!) ..." python setup.py build echo "Installing pygame..." sudo python setup.py install echo "Done!" |
Start het script met sudo sh /usr/src/pygame.sh , het script heeft wel even de tijd nodig om pygame opnieuw te maken, als je nu pygame gebruikt heb je geen SDL berichten meer.
[#/python/libraries/pygame” ]