I am trying to compile Irrlicht 1.3 on a Linux server by turning off the _IRR_COMPILE_WITH_X11_ on IrrCompileConfig.h.
When I run make I get the error:
Code: Select all
CIrrDeviceLinux.h: In destructor 'virtual irr::CIrrDeviceLinux::CCursorControl::~CCursorControl()':
CIrrDeviceLinux.h:134: error: 'class irr::CIrrDeviceLinux' has no member named 'display'
CIrrDeviceLinux.h:134: error: 'gc' was not declared in this scope
CIrrDeviceLinux.h:134: error: 'XFreeGC' was not declared in this scope
make: *** [CIrrDeviceLinux.o] Error 1
The problem seems to be in the CIrrDeviceLinux.h
I tried to change the CCursorControl::~CCursorControl() to
Code: Select all
~CCursorControl()
{
#ifdef _IRR_COMPILE_WITH_X11_
XFreeGC(Device->display, gc);
Device->drop();
#endif //_IRR_COMPILE_WITH_X11_
}
Is this OK?
Tiago Baptista