To build, download the three source archives and both patches, and copy them to $HOME, then execute the following steps. Set environment variables for the 32-bit build: ``` export PATCH=otr411-mingw-i686.patch export HOST=i686-w64-mingw32 export PREFIX=$HOME/local-32 ``` Set environment variables for the 64-bit build: ``` export PATCH=otr411-mingw-i686.patch export HOST=x86_64-w64-mingw32 export PREFIX=$HOME/local-64 ``` Common build steps: ``` mkdir $PREFIX cd $PREFIX tar xjf $HOME/libgpg-error-*.tar.bz2 tar xjf $HOME/libgcrypt-*.tar.bz2 tar xzf $HOME/libotr-*.tar.gz cd libgpg-error* ./configure --host=$HOST --prefix=$PREFIX make make install cd .. cd libgcrypt* ./configure --with-pic --host=$HOST --prefix=$PREFIX --with-libgpg-error-prefix=$PREFIX make make install cd .. cd libotr* cat $HOME/$PATCH | patch -p1 ./configure --with-pic --disable-silent-rules --host=$HOST --prefix=$PREFIX --with-libgcrypt-prefix=$PREFIX make make install cd .. ```
Bug 1518166 Comment 6 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
To build, download the three source archives and both patches, and copy them to $HOME, then execute the following steps. Set environment variables for the 32-bit build: ``` export PATCH=otr411-mingw-i686.patch export HOST=i686-w64-mingw32 export PREFIX=$HOME/local-32 ``` Set environment variables for the 64-bit build: ``` export PATCH=otr411-mingw-x86_64.patch export HOST=x86_64-w64-mingw32 export PREFIX=$HOME/local-64 ``` Common build steps: ``` mkdir $PREFIX cd $PREFIX tar xjf $HOME/libgpg-error-*.tar.bz2 tar xjf $HOME/libgcrypt-*.tar.bz2 tar xzf $HOME/libotr-*.tar.gz cd libgpg-error* ./configure --host=$HOST --prefix=$PREFIX make make install cd .. cd libgcrypt* ./configure --with-pic --host=$HOST --prefix=$PREFIX --with-libgpg-error-prefix=$PREFIX make make install cd .. cd libotr* cat $HOME/$PATCH | patch -p1 ./configure --with-pic --disable-silent-rules --host=$HOST --prefix=$PREFIX --with-libgcrypt-prefix=$PREFIX make make install cd .. ``` (EDIT: fixed 64-bit patch filename)