8000 GitHub - cleversoap/osx-ogremake: Makefile for building Ogre3D MacOS applications from the CLI
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

cleversoap/osx-ogremake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

OSX OgreMake

OGRE3D is an extraordinary multi-platform rendering engine that focuses on simplicity and flexibility - so why is it always tied to (in my opinion) clunky IDEs?

Configuring and getting started with OGRE is extremely simple on other platforms such as Windows but the configuration process in XCode has become an annoyance (and now uneccessary). As a Vim fanatic I much prefer plain text editing and so with that I present a Makefile for building OGRE applications quickly and easily with minimal effort, just add your source files and you're ready to go (but please read the rest of this README).

Prerequisites

This Makefile was created on OSX 10.8 but as the requirements for OGRE on OSX are actually quite low it's entirely likely that this will not need any or just minimal changes to work with pre 10.6 systems. As this is just a Makefile it's up to you edit the compilation process as the primary function here is just to link libraries and files to make an App and not the actual compilation itself - I've tried to make this process as simple as possible. I don't know why I'm telling you this, you know what a Makefile is.

The standard location for this is in /Developer/SDKs/OgreSDK however you can just change $OGRE_HOME in the Makefile to wherever you extracted it.

The standard location for this is in /Library/Frameworks

G++

I used the g++ (4.2.1) provided by XCode however there is no reason why you can't use the one provided by Homebrew. If you do choose to use XCode then please install the Command Line Tools package. Please check if there are any changes for framework and library linking for your compiler.

Notes

There is a SRCS variable in the Makefile. This is where you will put your source files for compilation. Simple add on to the INCS variable if you have any additional header directories.

The XCode 4 manual on the OGRE wiki explains this more fully but OGRE requires some additional work to get running on OSX.

#include <macUtils.h>

Add then add this to the top of your main function:

Ogre::String workingDir = Ogre::macBundlePath()+"/Contents/Resources";
chdir(workingDir.c_str());

This will work with the OGRE Wiki Tutorial Framework as per the edits above (more info in the manual configuration for XCode article).

Simply call make all to build the app in the current directory.

References

Manually Conf 464C igure an Xcode 4 Project @ Ogre3D Wiki

About

Makefile for building Ogre3D MacOS applications from the CLI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0