| 21 | |
| 22 | == Compiling Ogg and Vorbis == |
| 23 | |
| 24 | Remember: This is NOT an easy job! |
| 25 | |
| 26 | Download and unzip the sources first from [http://www.xiph.org/vorbis/ "Xiph.org"]. Outside of libogg-1.2.1, create a directory {{{lib_build}}}. Open the file os_types.h in |
| 27 | |
| 28 | {{{libogg-1.2.1/include/ogg/os_types.h}}} |
| 29 | |
| 30 | and replace the following lines |
| 31 | |
| 32 | {{{ |
| 33 | #elif (defined(__APPLE__) && defined(__MACH__)) /* MacOS X Framework build */ |
| 34 | |
| 35 | # include <inttypes.h> |
| 36 | typedef int16_t ogg_int16_t; |
| 37 | typedef u_int16_t ogg_uint16_t; |
| 38 | typedef int32_t ogg_int32_t; |
| 39 | typedef u_int32_t ogg_uint32_t; |
| 40 | typedef int64_t ogg_int64_t; |
| 41 | }}} |
| 42 | |
| 43 | with: |
| 44 | |
| 45 | {{{ |
| 46 | #elif (defined(__APPLE__) && defined(__MACH__)) /* MacOS X Framework build */ |
| 47 | |
| 48 | # include <sys/types.h> // used wrong header file |
| 49 | typedef int16_t ogg_int16_t; |
| 50 | typedef u_int16_t ogg_uint16_t; |
| 51 | typedef int32_t ogg_int32_t; |
| 52 | typedef u_int32_t ogg_uint32_t; |
| 53 | typedef int64_t ogg_int64_t; |
| 54 | }}} |
| 55 | |
| 56 | Open up the Terminal (/Applications/Utilities/Terminal), and enter the following set of commands (assuming that you have downloaded ogg and vorbis to {{{yourname/Downloads}}} (you need to enter your password during the following sequences): |
| 57 | |
| 58 | {{{cd Downloads/libogg-1.2.1 && ./configure CFLAGS="-arch i386" LDFLAGS="-arch i386" && make && sudo make install}}} |
| 59 | |
| 60 | next, enter the following lines: |
| 61 | |
| 62 | {{{cd ../libvorbis-1.3.2 && ./configure CFLAGS="-arch i386" LDFLAGS="-arch i386" && make && sudo make install}}} |
| 63 | |
| 64 | |
| 65 | Finally, you need to delete the ogg and vorbis files in your Orxonox dependency package (Just delete everything with the names ogg and vorbis in them). They are locaded in: |
| 66 | |
| 67 | {{{dependencies/include and dependencies/lib}}} |
| 68 | |
| 69 | That's it - now you can follow the normal building steps. If building works out for you, then please send us an e-mail with the lib_build folder as a zip file attached! |