Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 1 and Version 2 of dev/MacOSXDependencies


Ignore:
Timestamp:
Dec 1, 2010, 4:27:00 PM (13 years ago)
Author:
youngk
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • dev/MacOSXDependencies

    v1 v2  
    1919|| Compiler and Linker Flag || Description ||
    2020|| {{{-arch}}} || Set both the CFLAGS and the LDFLAGS variable to the desired architecture, i.e. {{{i386, ppc, ppc64, x86_64}}} ||
     21
     22== Compiling Ogg and Vorbis ==
     23
     24Remember: This is NOT an easy job!
     25
     26Download 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
     30and 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
     43with:
     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
     56Open 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
     60next, enter the following lines:
     61
     62{{{cd ../libvorbis-1.3.2 && ./configure CFLAGS="-arch i386" LDFLAGS="-arch i386"   && make && sudo make install}}}
     63
     64
     65Finally, 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
     69That'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!