[no bug]Irrlicht 1.6.1 OS X compile error

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
jzaun
Posts: 1
Joined: Fri Jan 29, 2010 6:06 am

[no bug]Irrlicht 1.6.1 OS X compile error

Post by jzaun »

Hello,

I just downloaded Irrlicht 1.6.1 and ran make. Everything went fine until:

Code: Select all

g++ -Wall -pipe -fno-exceptions -fno-rtti -fstrict-aliasing -g -D_DEBUG -I../../include -Izlib -Ijpeglib -Ilibpng -I/usr/X11R6/include -DIRRLICHT_EXPORTS=1  -c -o COpenGLDriver.o COpenGLDriver.cpp
In file included from COpenGLDriver.h:25,
                 from COpenGLDriver.cpp:5:
COpenGLExtensionHandler.h:33:31: error: CIrrDeviceMacOSX.h: No such file or directory
COpenGLDriver.cpp: In member function ‘virtual bool irr::video::COpenGLDriver::endScene()’:
COpenGLDriver.cpp:681: error: invalid use of incomplete type ‘struct irr::CIrrDeviceMacOSX’
COpenGLDriver.h:17: error: forward declaration of ‘struct irr::CIrrDeviceMacOSX’
make: *** [COpenGLDriver.o] Error 1
I'm running OS X 10.6.2 with xcode 3.2.1. Any ideas to move the compile along?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

This is not a bug, but wrong usage of the Makefile. For OSX you need to use the targets staticlic_osx or sharedlib_osx. Moreover, you may have to enable/disable some settings in IrrCompileConfig.h
However, I strongly recommend to use XCode to compile the engine and examples for OSX.
Post Reply