1 # Visual Studio Build Notes
3 Here are some field notes for building `playd` with Microsoft Visual Studio.
5 **NOTE**: Much of this is from memory and is in need of filling out with
8 ## Visual Studio Versions
10 At time of writing, `playd` has been tested with Visual Studio 2015 (version
11 14). As `playd` needs a C++11 compiler, earlier versions will likely fail;
12 newer versions may work, but this is not guaranteed.
14 ## Assembling Libraries and Includes
16 The Visual Studio project provided (`playd.vcxproj`) expects import libraries
17 (`.lib` files) and library headers (`.h`, `.hpp`, `.hxx`) to be collected in
18 the `lib` and `include` subdirectories respectively.
20 The `lib` directory should include:
22 * `libmpg123-0.lib`, from building libmpg123 (details TBA);
23 * `libsndfile-1.lib`, from the libsndfile Windows distribution;
24 * `libuv.lib`, from building libuv as below;
25 * `SDL2.lib` and `SDLmain.lib` from SDL2 (if you are building a `Debug` version
26 of playd, you **will** need to build SDL2 from source--the Visual Studio
27 pre-packaged lib is built for `Release` only and **will** give you linker
30 The `include` directory should include:
32 * `mpg123.h` from libmpg123;
33 * The contents of SDL2's `include` directory (better safe than sorry);
34 * `sndfile.h` and `sndfile.hh` from libsndfile;
35 * These headers from libuv's `include` directory:
45 This _must_ be built as a shared library (`vcbuild.bat shared`). Otherwise,
46 this should work fine.