Skip to main content

History: Prerequisites V2

Preview of version: 2

prerequisites.jpg

What you need to build Ogre from source.

Introduction

This is a small check list of things you need to do before you're ready to build Ogre from source.

Image

Installing Dependencies

Option 1: Extract the dependencies into your Ogre source root. Precompiled archive containing PPC and i386 binaries compiled against the 10.4u SDK are available: OS X Dependencies (link is only valid for Ogre version 1.7). A larger selection of precompiled dependency packages including more recent updates and iOS packages can be browsed to from the ogre-dependencies-mac page.

Option 2: Install Ogre dependencies system-wide via MacPorts. Be forewarned if you intend to distribute binaries, you may have to jump through a few hoops to link against the static archives (.a) or extract the dynamic libraries and modify their install name (install_name_tool). However individual developers may find this easier to manage on their local machines for general development.
Copy to clipboard
sudo port install libpng +universal jpeg +universal libxml2 +universal sudo port install pkgconfig xmlto autoconf automake libtool sudo port install freetype +universal freeimage +universal libzzip +universal boost +universal ois +universal sudo port install cmake

  • Ogre3D requires a 32 bit build due to use of Carbon interfaces via OIS. Thus the +universal specifications to ensure 32 and 64 bit builds for libraries.
  • You need the first line even if you already have libpng/jpeg/xml2 installed because they will be re-installed within the package system and we need to ensure universal build. You may need --enforce-variants if you have already installed these packages.
  • The second line is the build dependencies of libzzip, they do not need to be universal, but use +no_x11 +quartz to avoid unnecessary additional packages
Finally, from the terminal:
Copy to clipboard
touch ~/.bash_profile open -a TextEdit ~/.bash_profile

If it is not already present, add:
Copy to clipboard
export CPPFLAGS="-I/opt/local/include" export LDFLAGS="-L/opt/local/lib"

Finally, you need to install Cg and OIS. (Not strictly required by Ogre, but required for Demos, and generally recommended.)

History

Information Version
Thu 29 of Dec, 2016 22:26 GMT-0000 spookyboo 18
Thu 29 of Dec, 2016 22:25 GMT-0000 spookyboo 17
Thu 29 of Dec, 2016 22:24 GMT-0000 spookyboo 16
Thu 29 of Dec, 2016 20:05 GMT-0000 spookyboo 15
Thu 29 of Dec, 2016 17:05 GMT-0000 spookyboo 14
Thu 29 of Dec, 2016 17:03 GMT-0000 spookyboo 13
Thu 29 of Dec, 2016 17:02 GMT-0000 spookyboo 12
Thu 29 of Dec, 2016 16:55 GMT-0000 spookyboo 11
Thu 29 of Dec, 2016 16:53 GMT-0000 spookyboo 10
Thu 29 of Dec, 2016 16:52 GMT-0000 spookyboo 9
Wed 28 of Dec, 2016 22:20 GMT-0000 spookyboo 8
Wed 28 of Dec, 2016 22:15 GMT-0000 spookyboo 7
Wed 28 of Dec, 2016 22:13 GMT-0000 spookyboo 6
Wed 28 of Dec, 2016 22:08 GMT-0000 spookyboo 5
Wed 28 of Dec, 2016 22:00 GMT-0000 spookyboo 4
Wed 28 of Dec, 2016 21:53 GMT-0000 spookyboo 3
Wed 28 of Dec, 2016 21:52 GMT-0000 spookyboo 2
Wed 28 of Dec, 2016 14:14 GMT-0000 spookyboo 1