Changes between Version 9 and Version 10 of dev/MacOSXDependencies
- Timestamp:
- Dec 27, 2016, 8:46:59 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
dev/MacOSXDependencies
v9 v10 54 54 * /Developer/Library/Frameworks 55 55 56 === Compiling Ogre ===56 === Compiling Ogre 1.8 === 57 57 58 Download the prebuilt SDK from the website.58 Download the source archive with unix line endings from the ogre website or the repository from BitBucket using mercurial. 59 59 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.60 Make 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++. 61 61 62 === Compiling CEGUI === 62 It 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. 63 63 64 Compiling CEGUI is a bit tricky. 64 === Compiling CEGUI 0.7 === 65 65 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.66 Compiling 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. 67 67 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. 69 69 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. 71 71 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). 72 For 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 74 Then the parts that you need of CEGUI should compile (some samples probably still won't compile). 73 75 74 76 === Compiling Ogg and Vorbis === 75 76 Remember: This is NOT an easy job!77 77 78 78 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