afritz1 / OpenTESArena

Open-source re-implementation of The Elder Scrolls: Arena.
MIT License
988 stars 68 forks source link

Build and install WildMIDI #48

Closed Allofich closed 8 years ago

Allofich commented 8 years ago

Previously I'd been trying to install the package wildmidi. I think this was not detected because it didn't have wildmidi_lib.h. See http://packages.ubuntu.com/en/trusty/i386/wildmidi/filelist.

Package libwildmidi-dev, http://packages.ubuntu.com/en/trusty/i386/libwildmidi-dev/filelist, was detected but had errors. I think it may be too old of a version or something.

So, I built WildMIDI from the 0.40.0 source linked on the OpenTESArena front page using this as a guide: https://docs.travis-ci.com/user/installing-dependencies/

They recommend building dependencies in shell scripts called from the .travis.yml file, but I think it's fine as it is for now. If the setup gets longer and more complicated it could be moved out to a shell script, or of course you could do so now if you like.

afritz1 commented 8 years ago

The build time isn't an issue for now. I'm just happy it works.

I've heard from a couple Linux users that they've had trouble playing the XMI music files, and that's because their distribution's WildMIDI is older than 0.4.0. OpenTESArena will still compile with older versions, but it will have runtime errors (i.e., "SOME_FILE.XMI" not a midi file).

Allofich commented 8 years ago

BTW, as I mentioned, I'm a Windows user, so I haven't actually tested whether the resulting build from all of this runs correctly, I just got it to build on Travis CI.

afritz1 commented 8 years ago

Yeah. Travis just acts like another Linux computer in the testing pool. The success of its compilation doesn't guarantee compilation on other Linuxes, but it's good enough data for what I'm doing so far.