[1454] | 1 | >> BUILD INSTRUCTIONS FOR libmikmod FOR MAC OS X
|
---|
| 2 | ------------------------------------------------
|
---|
| 3 |
|
---|
| 4 | You can always use the UNIX commandline tools
|
---|
| 5 | instead of the IDE projects in this directory.
|
---|
| 6 |
|
---|
| 7 | Go to the top level and follow the INSTALL there...
|
---|
| 8 | (Hint: "./configure && make && sudo make install")
|
---|
| 9 |
|
---|
| 10 | In that case your files will end up under /usr/local.
|
---|
| 11 | The IDE stuff will end up under a "build" directory.
|
---|
| 12 |
|
---|
| 13 | You can also play with the standalone Makefile.darwin
|
---|
| 14 | file here in this directory, in order to build from
|
---|
| 15 | the command line. (Hint: "gmake -f Makefile.darwin" )
|
---|
| 16 |
|
---|
| 17 |
|
---|
| 18 | XCode on Mac OS X 10.3 and newer:
|
---|
| 19 | -------------
|
---|
| 20 |
|
---|
| 21 | 1) You should be using Xcode 2.x, or up.
|
---|
| 22 |
|
---|
| 23 | 2) Open "libmikmod.xcodeproj" with the Xcode app.
|
---|
| 24 |
|
---|
| 25 |
|
---|
| 26 | Build products
|
---|
| 27 | --------------
|
---|
| 28 |
|
---|
| 29 | The projects will build a static library with header:
|
---|
| 30 | - mikmod.h
|
---|
| 31 | - libmikmod.a
|
---|
| 32 | And they will also build a dynamic framework bundle:
|
---|
| 33 | - mikmod.framework
|
---|
| 34 |
|
---|
| 35 | These build products are normally found in the "build"
|
---|
| 36 | folder, unless you have changed your IDE settings...
|
---|
| 37 |
|
---|
| 38 |
|
---|
| 39 | Using the library
|
---|
| 40 | ----------------
|
---|
| 41 |
|
---|
| 42 | To use the library, either copy "mikmod.framework"
|
---|
| 43 | bundle to somewhere in your framework search path,
|
---|
| 44 | (such as ~/Library/Frameworks or /Library/Frameworks)
|
---|
| 45 |
|
---|
| 46 | Source code: #include <mikmod/mikmod.h>
|
---|
| 47 |
|
---|
| 48 | Linker flags: -framework mikmod
|
---|
| 49 |
|
---|
| 50 |
|
---|
| 51 | Or copy the "mikmod.h" header and "libmikmod.a" library
|
---|
| 52 | to somewhere in the include and library search paths.
|
---|
| 53 | (such as /usr/local/include and /usr/local/lib)
|
---|
| 54 |
|
---|
| 55 | Source code: #include "mikmod.h"
|
---|
| 56 |
|
---|
| 57 | Linker flags: -lmikmod -framework CoreAudio
|
---|
| 58 |
|
---|
| 59 |
|
---|
| 60 | The HTML documentation is found in the "docs" folder,
|
---|
| 61 | located in the top level of the libmikmod distribution.
|
---|
| 62 |
|
---|
| 63 |
|
---|
| 64 |
|
---|
| 65 | Enjoy!
|
---|
| 66 |
|
---|
| 67 | Anders F Bjrklund <afb@algonet.se>
|
---|
| 68 | http://www.algonet.se/~afb/mikmod
|
---|