Closed T-Dynamos closed 2 years ago
This PR fixes the -auto problem https://github.com/pygame/pygame/pull/3119.
Now pip3 install pygame
should work. Thanks.
try this: pkg update -y && \ pkg install -y x11-repo && \ pkg install -y python sdl2 sdl2-mixer sdl2-mixer-static sdl2-ttf sdl2-image sdl2-image-static freetype portmidi xorgproto fluidsynth && \ pip install pygame
Pygame is available in the termux-user-repository (tur)
$ pkg install tur-repo
$ pkg install python-pygame
En termux
Traceback (most recent call last): File "/data/data/com.termux/files/home/downloads/python/game_misil/juego-python-ia-misiles/game.py", line 1, in ~~~~~ /data/data/com.termux/files/usr/include/portmidi.h:399:31: note: passing argument to parameter 'time_proc' here PmTimeProcPtr time_proc, ^ 1 error generated. --- For help with compilation see: https://www.pygame.org/wiki/Compilation To contribute to pygame development see: https://www.pygame.org/contribute.html --- error: command '/data/data/com.termux/files/usr/bin/aarch64-linux-android-clang' failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pygame Running setup.py clean for pygame Failed to build pygame ERROR: Could not build wheels for pygame, which is required to install pyproject.toml-based projects
En termux
Try export CFLAGS+=" -Wno-incompatible-function-pointer-types"
.
Package description
pygame (the library) is a Free and Open Source python programming language library for making multimedia applications like games built on top of the excellent SDL library. C, Python, Native, OpenGL
Home page URL
https://github.com/pygame/pygame
Source code URL
https://github.com/pygame/pygame/archive/refs/tags/2.1.3.dev4.tar.gz
Packaging policy acknowledgement
Additional information
Yes works
We have to apply a patch https://github.com/pygame/pygame/blob/ac4ee56522bef7a1947287c5d4626ea0ec8174c8/buildconfig/config_unix.py#L237
To
Beacuse -auto option is not working I built with
-config -auto -sdl2