Page 1 of 1

Irrlicht 0.14.0 Linux Make Compile Error

Posted: Tue Dec 06, 2005 1:44 am
by firefly2442
Hello, when I run "sudo make" in my unzipped source directory I get this:
g++ -c CIrrDeviceLinux.cpp -o CIrrDeviceLinux.o -I"include/" -I"zlib/" -DIRRLICHT_EXPORTS=1
In file included from CIrrDeviceLinux.cpp:5:
CIrrDeviceLinux.h:21:38: error: X11/extensions/xf86vmode.h: No such file or directory
CIrrDeviceLinux.h:216: error: ‘XF86VidModeModeInfo’ does not name a type
CIrrDeviceLinux.cpp: In destructor ‘virtual irr::CIrrDeviceLinux::~CIrrDeviceLinux()’:
CIrrDeviceLinux.cpp:117: error: ‘oldVideoMode’ was not declared in this scope
CIrrDeviceLinux.cpp:117: error: ‘XF86VidModeSwitchToMode’ was not declared in this scope
CIrrDeviceLinux.cpp:118: error: ‘XF86VidModeSetViewPort’ was not declared in this scopeCIrrDeviceLinux.cpp: In member function ‘bool irr::CIrrDeviceLinux::createWindow(const irr::core::dimension2d<irr::s32>&, irr::u32, bool, bool)’:
CIrrDeviceLinux.cpp:148: error: ‘XF86VidModeQueryVersion’ was not declared in this scope
CIrrDeviceLinux.cpp:158: error: ‘XF86VidModeModeInfo’ was not declared in this scope
CIrrDeviceLinux.cpp:158: error: ‘modes’ was not declared in this scope
CIrrDeviceLinux.cpp:160: error: ‘XF86VidModeGetAllModeLines’ was not declared in this scope
CIrrDeviceLinux.cpp:164: error: ‘oldVideoMode’ was not declared in this scope
CIrrDeviceLinux.cpp:304: error: ‘XF86VidModeSwitchToMode’ was not declared in this scope
CIrrDeviceLinux.cpp:305: error: ‘XF86VidModeSetViewPort’ was not declared in this scopemake: *** [CIrrDeviceLinux.o] Error 1
I'm just guessing but do I need to make it use Xorg instead of XF86? Thanks for the help. :)

Posted: Tue Dec 06, 2005 8:38 am
by terefang
have you installed the proper -devel packages ?

Posted: Tue Dec 06, 2005 8:38 am
by hybrid
No, but you need the correct developer packages installed. Almost all X11 distributions will contain the XF86 extensions, but include files are usually not installed automatically.

Posted: Tue Dec 06, 2005 5:44 pm
by firefly2442
That was it. Thank you very much. It looks great!!!!! :)