Compile Irrlicht on a Mac (without XCode)

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
binford
Posts: 28
Joined: Tue Nov 14, 2006 10:32 am
Location: Munich

Compile Irrlicht on a Mac (without XCode)

Post by binford »

Hi there,

Id like to package Irrlicht for MacPorts. MacPorts is a package manager for Mac, similar to dep/rpm packages for linux. In contrast to deb/rpm it doesent distribute pre-compiled software, but source code. The MacPort software fetches the files, applies patches, compiles everything and puts it where it belongs to.

Therefore, I have to figure out how Irrlicht can be compiled on a Mac via the command line. XCode is not an option. I tried "make sharedlib_osx", but it fails:

Code: Select all

Undefined symbols:
  "_OSXCopyToClipboard", referenced from:
      irr::COSOperator::copyToClipboard(char const*) constin COSOperator.o
  "irr::CIrrDeviceMacOSX::flush()", referenced from:
      irr::video::COpenGLDriver::endScene()    in COpenGLDriver.o
  "_OSXCopyFromClipboard", referenced from:
      irr::COSOperator::getTextFromClipboard() const in COSOperator.o
  "irr::CIrrDeviceMacOSX::CIrrDeviceMacOSX(irr::SIrrlichtCreationParameters const&)", referenced from:
      _createDeviceEx in Irrlicht.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [sharedlib_osx] Error 1
Does somone know whats going wrong here?
Post Reply