Thanks for fast reply, randomMesh.
I've got installed both glutg3-dev and libxxf86vm-dev,
but I still receiving same error.
The question is, why demos are compiling ok and my program not?
EDIT:
I added some additional commands to linker:
"-L/usr/X11R6/lib$(LIBSELECT) -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXrandr -lXext -lX11"
Not i got only these errors:
Code: Select all
g++ -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXrandr -lXext -lX11 -o dist/Debug/GNU-Linux-x86/irrlicht_nauka build/Debug/GNU-Linux-x86/main.o -L/home/adam/Libraries/irrlicht-1.6/lib/Linux /home/adam/Libraries/irrlicht-1.6/lib/Linux/libIrrlicht.a
/home/adam/Libraries/irrlicht-1.6/lib/Linux/libIrrlicht.a(CIrrDeviceLinux.o): In function `irr::CIrrDeviceLinux::getGammaRamp(float&, float&, float&, float&, float&)':
/home/adam/Libraries/irrlicht-1.6/source/Irrlicht/CIrrDeviceLinux.cpp:1683: undefined reference to `XF86VidModeQueryExtension'
/home/adam/Libraries/irrlicht-1.6/source/Irrlicht/CIrrDeviceLinux.cpp:1686: undefined reference to `XF86VidModeGetGamma'
/home/adam/Libraries/irrlicht-1.6/lib/Linux/libIrrlicht.a(CIrrDeviceLinux.o): In function `irr::CIrrDeviceLinux::setGammaRamp(float, float, float, float, float)':
/home/adam/Libraries/irrlicht-1.6/source/Irrlicht/CIrrDeviceLinux.cpp:1636: undefined reference to `XF86VidModeQueryExtension'
/home/adam/Libraries/irrlicht-1.6/source/Irrlicht/CIrrDeviceLinux.cpp:1642: undefined reference to `XF86VidModeSetGamma'
/home/adam/Libraries/irrlicht-1.6/lib/Linux/libIrrlicht.a(CIrrDeviceLinux.o): In function `irr::CIrrDeviceLinux::getVideoModeList()':
/home/adam/Libraries/irrlicht-1.6/source/Irrlicht/CIrrDeviceLinux.cpp:1235: undefined reference to `XF86VidModeQueryExtension'
/home/adam/Libraries/irrlicht-1.6/source/Irrlicht/CIrrDeviceLinux.cpp:1241: undefined reference to `XF86VidModeGetAllModeLines'
/home/adam/Libraries/irrlicht-1.6/lib/Linux/libIrrlicht.a(CIrrDeviceLinux.o): In function `irr::CIrrDeviceLinux::createWindow()':
/home/adam/Libraries/irrlicht-1.6/source/Irrlicht/CIrrDeviceLinux.cpp:237: undefined reference to `XF86VidModeQueryExtension'
/home/adam/Libraries/irrlicht-1.6/source/Irrlicht/CIrrDeviceLinux.cpp:243: undefined reference to `XF86VidModeGetAllModeLines'
/home/adam/Libraries/irrlicht-1.6/source/Irrlicht/CIrrDeviceLinux.cpp:260: undefined reference to `XF86VidModeSwitchToMode'
/home/adam/Libraries/irrlicht-1.6/source/Irrlicht/CIrrDeviceLinux.cpp:261: undefined reference to `XF86VidModeSetViewPort'
/home/adam/Libraries/irrlicht-1.6/lib/Linux/libIrrlicht.a(CIrrDeviceLinux.o): In function `~CIrrDeviceLinux':
/home/adam/Libraries/irrlicht-1.6/source/Irrlicht/CIrrDeviceLinux.cpp:150: undefined reference to `XF86VidModeSwitchToMode'
/home/adam/Libraries/irrlicht-1.6/source/Irrlicht/CIrrDeviceLinux.cpp:151: undefined reference to `XF86VidModeSetViewPort'
/home/adam/Libraries/irrlicht-1.6/source/Irrlicht/CIrrDeviceLinux.cpp:150: undefined reference to `XF86VidModeSwitchToMode'
/home/adam/Libraries/irrlicht-1.6/source/Irrlicht/CIrrDeviceLinux.cpp:151: undefined reference to `XF86VidModeSetViewPort'
/home/adam/Libraries/irrlicht-1.6/source/Irrlicht/CIrrDeviceLinux.cpp:150: undefined reference to `XF86VidModeSwitchToMode'
/home/adam/Libraries/irrlicht-1.6/source/Irrlicht/CIrrDeviceLinux.cpp:151: undefined reference to `XF86VidModeSetViewPort'
collect2: ld returned 1 exit status