Installing pygame

 



from https://www.reddit.com/r/termux/comments/ks6xi4/pygame_on_termux/


$ pkg install sdl2 sdl2-image sdl2-ttf wget xorgproto $ pip install cython $ wget [https://www.pygame.org/ftp/pygame-1.9.6.tar.gz](https://www.pygame.org/ftp/pygame-1.9.6.tar.gz) $ tar -xzf pygame-1.9.6.tar.gz $ cd pygame-1.9.6 $ python3 setup.py -config -auto -sdl2 $ python3 setup.py install cython






from https://wiki.libsdl.org/Installation




git clone https://github.com/libsdl-org/SDL
cd SDL
mkdir build
cd build
../configure
make
sudo make install



run ../configure may cause

fix configure: error: no acceptable ld found in $PATH

from https://www.linuxquestions.org/questions/linux-newbie-8/configure-error-no-acceptable-ld-found-in-%24path-102003/

$ export LD=ld




from http://www.pygame.org/wiki/CompileUbuntu

Python 3.x

#install dependencies
sudo apt-get install git python3-dev python3-setuptools python3-numpy python3-opengl \
    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 \
    libtiff5-dev libx11-6 libx11-dev fluid-soundfont-gm timgm6mb-soundfont \
    xfonts-base xfonts-100dpi xfonts-75dpi xfonts-cyrillic fontconfig fonts-freefont-ttf libfreetype6-dev

# Grab source

留言

熱門文章