User:Bob the Hamster/mingw notes

From OHRRPGCE-Wiki
Jump to navigation Jump to search

Notes to self regarding mingw setup

Mingw Core[edit]

  • Installed mingw using the installer package
    • When asked which version, I chose "current"
  • Installed msys using the installer package.
    • When asked y/n questions, I said y
    • When asked the location of mingw, I gave the default, c:/mingw

Mingw/Msys Binary Packages[edit]

Unpacked the following binary packages into C:\msys\1.0\

  • autoconf for msys (required for some packages)
  • automake for msys (required for some packages)
  • autogen for msys (not sure if I needed this?)
  • perl for msys (required by autogen, maybe not by anything else?)
  • crypt for msys (not sure if I needed this?)
  • libcrypt for msys (required by ./configure scripts)
  • libtool for msys (required by libvorbis, probably others too)

Unpacked the following binary packages into C:\mingw\

  • gcc-core-4-4 for mingw (not sure if this was required or not, but 3.x seemed ancient)
  • mpfr for mingw (required by gcc 4.4)
  • gmp gor mingw (required by gcc 4.4)

Links[edit]

SDL 1.2.14[edit]

I tried this from subversion. ./autogen.sh and ./configure worked out fine, but make freaked.the.heck.out. Tried again from the tarball, which has a pre-generated configure script and does not require you to run ./autogen.sh, and then thinks worked smoothly

./configure
make
make install

libogg[edit]

Compiled the tarball, had no problems

./configure
make
make install

libvorbis[edit]

Tried to compile the tarball. ./configure failed when it got to the part where it searches for libogg:

checking for Ogg... no
*** Could not run Ogg test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means Ogg was incorrectly installed
*** or that you have moved Ogg since it was installed.
configure: error: must have Ogg installed!

But it seemed to work fine when I ran:

./configure --with-ogg=/usr/local
make
make install

I ignored johnnypops' patch, which was already applied, and ignored his suggestion to run aclocal && automake, which seemed to screw things up just like ./autogen.sh did for SDL SVN

mikmod[edit]

Tried the tarball for 3.1.11 with the 3.1.11-a patch. Did not work.

TMC pointed out that SDL_mixer includes a copy of mikmod.

unzip libmikmod-3.1.12.zip
cd libmikmod-3.1.12.patched
./configure

configure works, but when I run make, it goes for a while and then fails on:

In file included from ../drivers/drv_pipe.c:39:
../include/mikmod_internals.h:47: warning: ignoring #pragma warning
../drivers/drv_pipe.c:50:22: error: sys/wait.h: No such file or directory
../drivers/drv_pipe.c: In function 'pipe_Init':
../drivers/drv_pipe.c:105: warning: implicit declaration of function 'pipe'
../drivers/drv_pipe.c:109: warning: implicit declaration of function 'fork'
../drivers/drv_pipe.c: In function 'pipe_Exit':
../drivers/drv_pipe.c:168: warning: implicit declaration of function 'waitpid'
make[2]: *** [drv_pipe.lo] Error 1
make[2]: Leaving directory `/src/SDL_mixer-1.2.9/libmikmod-3.1.12.patched/libmik
mod'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/src/SDL_mixer-1.2.9/libmikmod-3.1.12.patched'
make: *** [all-recursive-am] Error 2

SDL_mixer 1.2.9[edit]

Trying with the tarball.

I think I want the following options, but I am not at all certain:

./configure \
  --enable-music-mod=yes \
  --enable-music-mod-shared=no \
  --enable-music-midi=yes \
  --enable-music-native-midi=yes \
  --enable-music-timidity=no \
  --enable-music-ogg=yes \
  --enable-music-ogg-shared=no \
  --enable-music-mp3=yes \
  --enable-music-mp3-mad-gpl=yes

But I am dead-in-the-water on testing it until I resolve the MikMod issues (and I haven't tackled libmad yet...)

TMC, which options did you use?