Skip to content

Instantly share code, notes, and snippets.

@shinchiro
Last active December 22, 2022 04:39
Show Gist options
  • Save shinchiro/705b0afcc7b6c0accffba1bedb067abf to your computer and use it in GitHub Desktop.
Save shinchiro/705b0afcc7b6c0accffba1bedb067abf to your computer and use it in GitHub Desktop.
Missing Cygwin/MSYS2 packages
1. Install re2c
git clone --depth 1 https://github.com/skvadrik/re2c.git
./autogen.sh
./configure --prefix=/usr
make && make install
2. Install ninja
git clone --depth 1 https://github.com/ninja-build/ninja.git
./configure.py --bootstrap
mv ninja.exe /usr/bin
3. Install ragel
wget http://www.colm.net/files/ragel/ragel-6.9.tar.gz
tar -zxvf ragel-6.9.tar.gz
./configure --prefix=/usr CXXFLAGS="$CXXFLAGS -std=gnu++98"
make && make install
4. Install gyp [Only needed by Cygwin]
git clone --depth 1 https://chromium.googlesource.com/external/gyp
python2 setup.py install
5. Install libjpeg [Only needed by MSYS2]
wget http://downloads.sourceforge.net/project/libjpeg/libjpeg/6b/jpegsr6.zip
unzip jpegsr6
./configure --prefix=/usr
make && make install-lib
6. Install rst2pdf [Needed by Cygwin & MSYS2]
wget https://bootstrap.pypa.io/get-pip.py
python2 get-pip.py
pip install rst2pdf
@adlerzei
Copy link

For MSYS2:

# install jinja2
python3 -m pip install jinja2

(shinchiro/mpv-winbuild-cmake#280)

For Cygwin (as long as nasm is not updated to a version greater than 2.14 in Cygwin):

# install nasm
cd /tmp                                                  &&
git clone https://github.com/netwide-assembler/nasm.git  &&
cd nasm/                                                 &&
./autogen.sh                                             &&
./configure --prefix=/usr                                &&
make -j$(nproc)                                          &&
install nasm.exe ndisasm.exe /usr/bin/                   &&
rm -rf /tmp/nasm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment