Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 9 and Version 10 of dev/MacOSXDependencies


Ignore:
Timestamp:
Dec 27, 2016, 8:46:59 PM (7 years ago)
Author:
ahedges
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • dev/MacOSXDependencies

    v9 v10  
    5454 * /Developer/Library/Frameworks
    5555
    56 === Compiling Ogre ===
     56=== Compiling Ogre 1.8 ===
    5757
    58 Download the prebuilt SDK from the website.
     58Download the source archive with unix line endings from the ogre website or the repository from BitBucket using mercurial.
    5959
    60 Make sure you have all the needed libraries installed (zlib, zziplib, freetype, and freeimage, you can use Homebrew to install them). Use cmake to create the Xcode project (`mkdir build && cd build && cmake .. -G Xcode`). Check the output of the cmake script to verify that it found all the needed libraries. Open the Xcode project. Set the deployment target to 10.8 and the Base SDK to 10.12. Then in the build settings make sure that it builds only the 64 bit version and uses libc++. Then it should compile and give you the Ogre.framework.
     60Make sure you have all the needed libraries installed (it should compile with the zlib, zziplib, freeimage, freetype, OpenGL, OpenGL ES 1.x, OpenGL ES 2.x, cg, iOS SDK, Carbon, Cocoa, IOKit and CoreVideo options enabled, you can use Homebrew to install the libraries you don't have installed yet). Use cmake to create the Xcode project (`mkdir build && cd build && cmake .. -G Xcode`). Check the output of the cmake script to verify that it found all the needed libraries. Open the Xcode project. Set the deployment target to 10.8 and the Base SDK to 10.12. Then in the build settings make sure that it builds only the 64 bit version and uses libc++.
    6161
    62 === Compiling CEGUI ===
     62It probably will give you two errors related to some initializers. Delete the `(NULL)` on the line. Next it will probably complain about some symbols starting with `_agl`. To solve that you need to add the "Link binary with libraries" phase to the RenderSystem_GL target. Press the add button and chose "AGL.Framework". Now the project should compile. We need Ogre.Framework, Plugin_CgProgramManager.dylib, Plugin_ParticleFX.dylib and RenderSystem_GL.dylib.
    6363
    64 Compiling CEGUI is a bit tricky.
     64=== Compiling CEGUI 0.7 ===
    6565
    66 '''Compiling the dependencies''': If you have to compile CEGUI 0.7 download the dependency package for 0.8. Modify the cmakefile that it compiles all dependencies by default (change all the options to have `TRUE` at the end). Build everything with cmake (`cmake . && make -j8`) Also make sure you already have compiled Ogre.framework, you'll need that later.
     66Compiling CEGUI is a bit tricky. First download the source of 0.7.9 and the dependency package for a 0.8 release from the CEGUI website.
    6767
    68 '''Compiling the CEGUI''': like above, make sure you have all the needed libraries installed and use cmake to generate the Xcode project. Also like with ogre change the deployment target, base sdk, target architecture and c++ std library.
     68'''Compiling the dependencies''': Modify the cmakefile that it compiles all dependencies except the "Direct3d 11" by default (change all the options to have `TRUE` at the end). In order to get DevIL to compile you have to comment out all the lines that contain `#undef __LITTLE_ENDIAN__` or `#define __LITTLE_ENDIAN__` in `deps/src/devil-1.7.8/src-IL/include/il_endian.h`. Build everything with cmake (`mkdir build && cd build && cmake .. && make -j8`) Also make sure you already have compiled Ogre.framework using the release configuration, you'll need that later.
    6969
    70 For everything to compile correctly you have to take the libraries that are shipped with the project and replace them with the dependencies you compiled earlier. You also have to set the path to ogre, to get CEGUIOgreRenderer to work.
     70'''Compiling CEGUI''': Open the Xcode project that is provided in `CEGUI-0.7.9/projects/Xcode/`. Like with ogre change the deployment target, base sdk, target architecture and c++ std library.
    7171
    72 Note that for all the libraries to find each other you might have to change some install names with `install_name_tool` (see above).
     72For everything to compile correctly you have to copy the `dependencies` you compiled earlier to the project root. Then you have to move them around a bit until Xcode finds everything where it is looking (use the precompiled dependencies for 0.7 as a reference). You have to split the DevIL libraries into IL.framework and ILU.framework. Note that the headers of the Xerces framework have changed so you also have to supply the new ones. To compile the CEGUIOgreRenderer you have to set `CEGUI_OGRE_SDK_PATH` to the build folder in the ogre project root. Then `CEGUI_OGRE_SAMPLE_LINK_FLAGS` should point to the Ogre.framework.
     73
     74Then the parts that you need of CEGUI should compile (some samples probably still won't compile).
    7375
    7476=== Compiling Ogg and Vorbis ===
    75 
    76 Remember: This is NOT an easy job!
    7777
    7878Download 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