Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Unable to compile, ubuntu 11.10

Help
SharpZQ
2012-09-03
2013-05-20
  • SharpZQ
    SharpZQ
    2012-09-03

    Hello,

    I am using Ubuntu 11.10(Xubuntu), In order to compile this game I have installed the following:

    build-essential  libjpeg8(included)  libjpeg8-dev  libsdl-ttf2.0  libglew1.5-dev  libglew1.5  liblua5.1  liblua5.1-dev  libsdl-mixer1.2-dev  libsdl-mixer1.2  libsdl1.2-dev  libsdl1.2debian(included)

    On running make, I get the following output:

    src/filesystem.cpp: In member function virtual long unsigned int cls_FileDirMountedForReading::GetSize(int) const:
    src/filesystem.cpp:184:112: warning: converting to non-pointer type long unsigned int from NULL [-Wconversion-null]
    /tmp/ccQKAfY1.o: In function `CAM_Distance(lua_State*)':
    c3dobjects.cpp:(.text+0x3e5): undefined reference to `lua_pushnumber'
    /tmp/ccQKAfY1.o: In function `CAM_AxisRotate(lua_State*)':
    c3dobjects.cpp:(.text+0x414): undefined reference to `lua_tonumber'
    c3dobjects.cpp:(.text+0x428): undefined reference to `lua_settop'
    /tmp/ccQKAfY1.o: In function `CAM_Attach(lua_State*)':
    c3dobjects.cpp:(.text+0x494): undefined reference to `lua_tonumber'
    c3dobjects.cpp:(.text+0x4a8): undefined reference to `lua_settop'
    /tmp/ccQKAfY1.o: In function `CAM_FromBasis(lua_State*)':
    c3dobjects.cpp:(.text+0x504): undefined reference to `lua_tonumber'
    c3dobjects.cpp:(.text+0x518): undefined reference to `lua_settop'
    /tmp/ccQKAfY1.o: In function `CAM_GetUp(lua_State*)':
    c3dobjects.cpp:(.text+0x5ac): undefined reference to `lua_createtable'
    c3dobjects.cpp:(.text+0x5bc): undefined reference to `lua_pushstring'
    c3dobjects.cpp:(.text+0x5cc): undefined reference to `lua_pushnumber'
    c3dobjects.cpp:(.text+0x5dc): undefined reference to `lua_settable'
    c3dobjects.cpp:(.text+0x5ec): undefined reference to `lua_pushstring'
    c3dobjects.cpp:(.text+0x5fc): undefined reference to `lua_pushnumber'
    c3dobjects.cpp:(.text+0x60c): undefined reference to `lua_settable'
    c3dobjects.cpp:(.text+0x61c): undefined reference to `lua_pushstring'
    c3dobjects.cpp:(.text+0x62c): undefined reference to `lua_pushnumber'
    c3dobjects.cpp:(.text+0x63c): undefined reference to `lua_settable'
    /tmp/ccQKAfY1.o: In function `CAM_GetSide(lua_State*)':
    c3dobjects.cpp:(.text+0x68c): undefined reference to `lua_createtable'
    c3dobjects.cpp:(.text+0x69c): undefined reference to `lua_pushstring'
    c3dobjects.cpp:(.text+0x6ac): undefined reference to `lua_pushnumber'
    c3dobjects.cpp:(.text+0x6bc): undefined reference to `lua_settable'
    c3dobjects.cpp:(.text+0x6cc): undefined reference to `lua_pushstring'
    c3dobjects.cpp:(.text+0x6dc): undefined reference to `lua_pushnumber'
    c3dobjects.cpp:(.text+0x6ec): undefined reference to `lua_settable'
    c3dobjects.cpp:(.text+0x6fc): undefined reference to `lua_pushstring'
    c3dobjects.cpp:(.text+0x70c): undefined reference to `lua_pushnumber'
    c3dobjects.cpp:(.text+0x71c): undefined reference to `lua_settable'
    /tmp/ccQKAfY1.o: In function `CAM_GetDir(lua_State*)':
    c3dobjects.cpp:(.text+0x76c): undefined reference to `lua_createtable'
    c3dobjects.cpp:(.text+0x77c): undefined reference to `lua_pushstring'
    c3dobjects.cpp:(.text+0x78c): undefined reference to `lua_pushnumber'
    c3dobjects.cpp:(.text+0x79c): undefined reference to `lua_settable'
    c3dobjects.cpp:(.text+0x7ac): undefined reference to `lua_pushstring'
    c3dobjects.cpp:(.text+0x7bc): undefined reference to `lua_pushnumber'
    c3dobjects.cpp:(.text+0x7cc): undefined reference to `lua_settable'
    c3dobjects.cpp:(.text+0x7dc): undefined reference to `lua_pushstring'
    c3dobjects.cpp:(.text+0x7ec): undefined reference to `lua_pushnumber'
    c3dobjects.cpp:(.text+0x7fc): undefined reference to `lua_settable'
    /tmp/ccQKAfY1.o: In function `CAM_GetPos(lua_State*)':
    c3dobjects.cpp:(.text+0x84c): undefined reference to `lua_createtable'
    c3dobjects.cpp:(.text+0x85c): undefined reference to `lua_pushstring'
    c3dobjects.cpp:(.text+0x86c): undefined reference to `lua_pushnumber'
    c3dobjects.cpp:(.text+0x87c): undefined reference to `lua_settable'
    c3dobjects.cpp:(.text+0x88c): undefined reference to `lua_pushstring'
    c3dobjects.cpp:(.text+0x89c): undefined reference to `lua_pushnumber'
    c3dobjects.cpp:(.text+0x8ac): undefined reference to `lua_settable'
    c3dobjects.cpp:(.text+0x8bc): undefined reference to `lua_pushstring'
    c3dobjects.cpp:(.text+0x8cc): undefined reference to `lua_pushnumber'
    c3dobjects.cpp:(.text+0x8dc): undefined reference to `lua_settable'
    /tmp/ccQKAfY1.o: In function `TCamera::postthink()':
    c3dobjects.cpp:(.text+0x13d4): undefined reference to `glPopMatrix'
    /tmp/ccQKAfY1.o: In function `CAM_SetDistortionBase(lua_State*)':
    c3dobjects.cpp:(.text+0x1405): undefined reference to `lua_tonumber'
    c3dobjects.cpp:(.text+0x1435): undefined reference to `lua_settop'
    /tmp/ccQKAfY1.o: In function `TCamera::CalcMatrix()':
    c3dobjects.cpp:(.text+0x2500): undefined reference to `glViewport'
    c3dobjects.cpp:(.text+0x250c): undefined reference to `glMatrixMode'
    c3dobjects.cpp:(.text+0x2511): undefined reference to `glLoadIdentity'
    c3dobjects.cpp:(.text+0x2598): undefined reference to `glOrtho'
    c3dobjects.cpp:(.text+0x262a): undefined reference to `glMatrixMode'
    c3dobjects.cpp:(.text+0x262f): undefined reference to `glLoadIdentity'
    c3dobjects.cpp:(.text+0x26a0): undefined reference to `glFrustum'
    /tmp/ccQKAfY1.o: In function `TCamera::ExtractFrustum()':
    c3dobjects.cpp:(.text+0x3bf1): undefined reference to `glGetFloatv'
    c3dobjects.cpp:(.text+0x3c08): undefined reference to `glGetFloatv'
    /tmp/ccQKAfY1.o: In function `TMatrixObject::SetMirror(int)':
    c3dobjects.cpp:(.text+0x912): undefined reference to `glFrontFace'
    c3dobjects.cpp:(.text+0x921): undefined reference to `glFrontFace'
    /tmp/ccuBcl86.o: In function `TCuboConsole::Render()':
    console.cpp:(.text+0x2488): undefined reference to `glMatrixMode'
    console.cpp:(.text+0x248d): undefined reference to `glPushMatrix'
    console.cpp:(.text+0x2492): undefined reference to `glLoadIdentity'
    console.cpp:(.text+0x24d6): undefined reference to `glOrtho'
    console.cpp:(.text+0x24e2): undefined reference to `glMatrixMode'
    console.cpp:(.text+0x24e7): undefined reference to `glPushMatrix'
    console.cpp:(.text+0x24ec): undefined reference to `glLoadIdentity'
    console.cpp:(.text+0x24f8): undefined reference to `glDisable'
    console.cpp:(.text+0x2504): undefined reference to `glDisable'
    console.cpp:(.text+0x2510): undefined reference to `glEnable'
    console.cpp:(.text+0x2524): undefined reference to `glBlendFunc'
    console.cpp:(.text+0x254d): undefined reference to `glBegin'
    console.cpp:(.text+0x2569): undefined reference to `glNormal3f'
    console.cpp:(.text+0x258d): undefined reference to `glColor4f'
    console.cpp:(.text+0x25a8): undefined reference to `glVertex3f'
    console.cpp:(.text+0x25c3): undefined reference to `glVertex3f'
    console.cpp:(.text+0x25db): undefined reference to `glVertex3f'
    console.cpp:(.text+0x25f7): undefined reference to `glVertex3f'
    console.cpp:(.text+0x25fc): undefined reference to `glEnd'
    console.cpp:(.text+0x2613): undefined reference to `glBegin'
    console.cpp:(.text+0x2637): undefined reference to `glColor4f'
    console.cpp:(.text+0x265e): undefined reference to `glVertex3f'
    console.cpp:(.text+0x267d): undefined reference to `glVertex3f'
    console.cpp:(.text+0x269e): undefined reference to `glVertex3f'
    console.cpp:(.text+0x26a3): undefined reference to `glEnd'
    console.cpp:(.text+0x286c): undefined reference to `glColor4f'
    console.cpp:(.text+0x294a): undefined reference to `glColor4f'
    console.cpp:(.text+0x2a1e): undefined reference to `glDisable'
    console.cpp:(.text+0x2a2a): undefined reference to `glEnable'
    console.cpp:(.text+0x2a36): undefined reference to `glEnable'
    console.cpp:(.text+0x2a42): undefined reference to `glMatrixMode'
    console.cpp:(.text+0x2a47): undefined reference to `glPopMatrix'
    console.cpp:(.text+0x2a53): undefined reference to `glMatrixMode'
    console.cpp:(.text+0x2a58): undefined reference to `glPopMatrix'
    console.cpp:(.text+0x2aa6): undefined reference to `glColor4f'
    console.cpp:(.text+0x2adc): undefined reference to `glColor4f'
    console.cpp:(.text+0x2b2c): undefined reference to `glColor4f'
    console.cpp:(.text+0x2b48): undefined reference to `glBegin'
    console.cpp:(.text+0x2b6c): undefined reference to `glColor4f'
    console.cpp:(.text+0x2b88): undefined reference to `glVertex3f'
    console.cpp:(.text+0x2ba4): undefined reference to `glVertex3f'
    console.cpp:(.text+0x2bc0): undefined reference to `glVertex3f'
    console.cpp:(.text+0x2bc5): undefined reference to `glEnd'
    /tmp/ccFywlOq.o: In function `ACTOR_Delete(lua_State*)':
    cuboactors.cpp:(.text+0x14): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x28): undefined reference to `lua_settop'
    /tmp/ccFywlOq.o: In function `ACTOR_SetRotateStopTime(lua_State*)':
    cuboactors.cpp:(.text+0x84): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x98): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0xa8): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0xbc): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0xcc): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0xe0): undefined reference to `lua_settop'
    /tmp/ccFywlOq.o: In function `ACTOR_SetTimeMultiplicator(lua_State*)':
    cuboactors.cpp:(.text+0x144): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x158): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x168): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x17c): undefined reference to `lua_settop'
    /tmp/ccFywlOq.o: In function `ACTOR_SetRadius(lua_State*)':
    cuboactors.cpp:(.text+0x1e4): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x1f8): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x208): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x21c): undefined reference to `lua_settop'
    /tmp/ccFywlOq.o: In function `ACTOR_SetSpeed(lua_State*)':
    cuboactors.cpp:(.text+0x284): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x298): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x2a8): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x2bc): undefined reference to `lua_settop'
    /tmp/ccFywlOq.o: In function `ACTOR_SetJumpParams(lua_State*)':
    cuboactors.cpp:(.text+0x32a): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x33e): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x34e): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x362): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x372): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x386): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x396): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x3aa): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x3ba): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x3ce): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x3de): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x3f2): undefined reference to `lua_settop'
    /tmp/ccFywlOq.o: In function `ACTOR_SetJumpDistances(lua_State*)':
    cuboactors.cpp:(.text+0x484): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x498): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x4a8): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x4bc): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x4cc): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x4e0): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x4f0): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x504): undefined reference to `lua_settop'
    /tmp/ccFywlOq.o: In function `ACTOR_SetJumpTiming(lua_State*)':
    cuboactors.cpp:(.text+0x574): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x588): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x598): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x5ac): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x5bc): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x5d0): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x5e0): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x5f4): undefined reference to `lua_settop'
    /tmp/ccFywlOq.o: In function `ACTOR_SetForwardPressTime(lua_State*)':
    cuboactors.cpp:(.text+0x664): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x678): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x688): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x69c): undefined reference to `lua_settop'
    /tmp/ccFywlOq.o: In function `ACTOR_SetJumpDistBlocks(lua_State*)':
    cuboactors.cpp:(.text+0x704): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x718): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x728): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x73c): undefined reference to `lua_settop'
    /tmp/ccFywlOq.o: In function `ACTOR_SetRotSpeed(lua_State*)':
    cuboactors.cpp:(.text+0x804): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x818): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x828): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x83c): undefined reference to `lua_settop'
    /tmp/ccFywlOq.o: In function `ACTOR_SetCamZRotation(lua_State*)':
    cuboactors.cpp:(.text+0x8a4): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x8b8): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x8c8): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x8dc): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x8ec): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x900): undefined reference to `lua_settop'
    /tmp/ccFywlOq.o: In function `ACTOR_NumActors(lua_State*)':
    cuboactors.cpp:(.text+0x997): undefined reference to `lua_pushnumber'
    /tmp/ccFywlOq.o: In function `ACTOR_IsPlayer(lua_State*)':
    cuboactors.cpp:(.text+0x9c4): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x9d8): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0xa24): undefined reference to `lua_pushnumber'
    /tmp/ccFywlOq.o: In function `ACTOR_GetRadius(lua_State*)':
    cuboactors.cpp:(.text+0xa54): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0xa68): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0xaaa): undefined reference to `lua_pushnumber'
    /tmp/ccFywlOq.o: In function `ACTOR_GetSpeed(lua_State*)':
    cuboactors.cpp:(.text+0xad4): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0xae8): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0xb2a): undefined reference to `lua_pushnumber'
    /tmp/ccFywlOq.o: In function `ACTOR_GetUpVel(lua_State*)':
    cuboactors.cpp:(.text+0xb54): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0xb68): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0xbaa): undefined reference to `lua_pushnumber'
    /tmp/ccFywlOq.o: In function `ACTOR_GetStartRotation(lua_State*)':
    cuboactors.cpp:(.text+0xbd4): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0xbe8): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0xc2a): undefined reference to `lua_pushnumber'
    /tmp/ccFywlOq.o: In function `ACTOR_GetJumpDistBlocks(lua_State*)':
    cuboactors.cpp:(.text+0xc54): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0xc68): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0xcea): undefined reference to `lua_pushnumber'
    /tmp/ccFywlOq.o: In function `ACTOR_GetLastOnSide(lua_State*)':
    cuboactors.cpp:(.text+0xd14): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0xd28): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0xd6a): undefined reference to `lua_pushnumber'
    /tmp/ccFywlOq.o: In function `ACTOR_DistanceRender(lua_State*)':
    cuboactors.cpp:(.text+0xd94): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0xda8): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0xdb8): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0xdcc): undefined reference to `lua_settop'
    /tmp/ccFywlOq.o: In function `ACTOR_InsideLevel(lua_State*)':
    cuboactors.cpp:(.text+0xe34): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0xe48): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0xee2): undefined reference to `lua_pushnumber'
    /tmp/ccFywlOq.o: In function `ACTOR_GetPos(lua_State*)':
    cuboactors.cpp:(.text+0xf04): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0xf18): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0xf7e): undefined reference to `lua_createtable'
    cuboactors.cpp:(.text+0xf8e): undefined reference to `lua_pushstring'
    cuboactors.cpp:(.text+0xf9e): undefined reference to `lua_pushnumber'
    cuboactors.cpp:(.text+0xfae): undefined reference to `lua_settable'
    cuboactors.cpp:(.text+0xfbe): undefined reference to `lua_pushstring'
    cuboactors.cpp:(.text+0xfce): undefined reference to `lua_pushnumber'
    cuboactors.cpp:(.text+0xfde): undefined reference to `lua_settable'
    cuboactors.cpp:(.text+0xfee): undefined reference to `lua_pushstring'
    cuboactors.cpp:(.text+0xffe): undefined reference to `lua_pushnumber'
    cuboactors.cpp:(.text+0x100e): undefined reference to `lua_settable'
    /tmp/ccFywlOq.o: In function `ACTOR_GetOldPos(lua_State*)':
    cuboactors.cpp:(.text+0x1034): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x1048): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x10ae): undefined reference to `lua_createtable'
    cuboactors.cpp:(.text+0x10be): undefined reference to `lua_pushstring'
    cuboactors.cpp:(.text+0x10ce): undefined reference to `lua_pushnumber'
    cuboactors.cpp:(.text+0x10de): undefined reference to `lua_settable'
    cuboactors.cpp:(.text+0x10ee): undefined reference to `lua_pushstring'
    cuboactors.cpp:(.text+0x10fe): undefined reference to `lua_pushnumber'
    cuboactors.cpp:(.text+0x110e): undefined reference to `lua_settable'
    cuboactors.cpp:(.text+0x111e): undefined reference to `lua_pushstring'
    cuboactors.cpp:(.text+0x112e): undefined reference to `lua_pushnumber'
    cuboactors.cpp:(.text+0x113e): undefined reference to `lua_settable'
    /tmp/ccFywlOq.o: In function `ACTOR_GetSide(lua_State*)':
    cuboactors.cpp:(.text+0x1164): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x1178): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x11d5): undefined reference to `lua_createtable'
    cuboactors.cpp:(.text+0x11e5): undefined reference to `lua_pushstring'
    cuboactors.cpp:(.text+0x11f5): undefined reference to `lua_pushnumber'
    cuboactors.cpp:(.text+0x1205): undefined reference to `lua_settable'
    cuboactors.cpp:(.text+0x1215): undefined reference to `lua_pushstring'
    cuboactors.cpp:(.text+0x1225): undefined reference to `lua_pushnumber'
    cuboactors.cpp:(.text+0x1235): undefined reference to `lua_settable'
    cuboactors.cpp:(.text+0x1245): undefined reference to `lua_pushstring'
    cuboactors.cpp:(.text+0x1255): undefined reference to `lua_pushnumber'
    cuboactors.cpp:(.text+0x1265): undefined reference to `lua_settable'
    /tmp/ccFywlOq.o: In function `ACTOR_GetUp(lua_State*)':
    cuboactors.cpp:(.text+0x1294): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x12a8): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x1305): undefined reference to `lua_createtable'
    cuboactors.cpp:(.text+0x1315): undefined reference to `lua_pushstring'
    cuboactors.cpp:(.text+0x1325): undefined reference to `lua_pushnumber'
    cuboactors.cpp:(.text+0x1335): undefined reference to `lua_settable'
    cuboactors.cpp:(.text+0x1345): undefined reference to `lua_pushstring'
    cuboactors.cpp:(.text+0x1355): undefined reference to `lua_pushnumber'
    cuboactors.cpp:(.text+0x1365): undefined reference to `lua_settable'
    cuboactors.cpp:(.text+0x1375): undefined reference to `lua_pushstring'
    cuboactors.cpp:(.text+0x1385): undefined reference to `lua_pushnumber'
    cuboactors.cpp:(.text+0x1395): undefined reference to `lua_settable'
    /tmp/ccFywlOq.o: In function `ACTOR_GetDir(lua_State*)':
    cuboactors.cpp:(.text+0x13c4): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x13d8): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x143b): undefined reference to `lua_createtable'
    cuboactors.cpp:(.text+0x144b): undefined reference to `lua_pushstring'
    cuboactors.cpp:(.text+0x145b): undefined reference to `lua_pushnumber'
    cuboactors.cpp:(.text+0x146b): undefined reference to `lua_settable'
    cuboactors.cpp:(.text+0x147b): undefined reference to `lua_pushstring'
    cuboactors.cpp:(.text+0x148b): undefined reference to `lua_pushnumber'
    cuboactors.cpp:(.text+0x149b): undefined reference to `lua_settable'
    cuboactors.cpp:(.text+0x14ab): undefined reference to `lua_pushstring'
    cuboactors.cpp:(.text+0x14bb): undefined reference to `lua_pushnumber'
    cuboactors.cpp:(.text+0x14cb): undefined reference to `lua_settable'
    /tmp/ccFywlOq.o: In function `ACTOR_SetVar(lua_State*)':
    cuboactors.cpp:(.text+0x14f4): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x1508): undefined reference to `lua_remove'
    /tmp/ccFywlOq.o: In function `ACTOR_GetVar(lua_State*)':
    cuboactors.cpp:(.text+0x1574): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x1588): undefined reference to `lua_remove'
    /tmp/ccFywlOq.o: In function `ACTOR_GetOnSide(lua_State*)':
    cuboactors.cpp:(.text+0x15f5): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x1609): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x1681): undefined reference to `lua_pushnumber'
    /tmp/ccFywlOq.o: In function `ACTOR_SendJoyButton(lua_State*)':
    cuboactors.cpp:(.text+0x16b8): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x16cc): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x16dc): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x16f0): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x1700): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x1714): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x1724): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x1738): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x1748): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x175c): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x176c): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x1780): undefined reference to `lua_settop'
    /tmp/ccFywlOq.o: In function `ACTOR_SendKey(lua_State*)':
    cuboactors.cpp:(.text+0x1885): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x1899): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x18a9): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x18bd): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x18cd): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x18e1): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x18f1): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x1905): undefined reference to `lua_settop'
    /tmp/ccFywlOq.o: In function `ACTOR_SetCamParams(lua_State*)':
    cuboactors.cpp:(.text+0x2836): undefined reference to `lua_tolstring'
    cuboactors.cpp:(.text+0x285a): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x286a): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x287e): undefined reference to `lua_settop'
    /tmp/ccFywlOq.o: In function `ACTOR_GetType(lua_State*)':
    cuboactors.cpp:(.text+0x2a45): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x2a59): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x2ac5): undefined reference to `lua_pushstring'
    /tmp/ccFywlOq.o: In function `ACTOR_New(lua_State*)':
    cuboactors.cpp:(.text+0x2b53): undefined reference to `lua_tolstring'
    cuboactors.cpp:(.text+0x2b7b): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x2c6a): undefined reference to `lua_pushnumber'
    /tmp/ccFywlOq.o: In function `ACTOR_GetEditorInfo(lua_State*)':
    cuboactors.cpp:(.text+0x2e42): undefined reference to `lua_tolstring'
    cuboactors.cpp:(.text+0x2e6a): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x2e82): undefined reference to `lua_tolstring'
    cuboactors.cpp:(.text+0x2eaa): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x2eba): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x2ece): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x304b): undefined reference to `lua_pushstring'
    /tmp/ccFywlOq.o: In function `ACTOR_SetStart(lua_State*)':
    cuboactors.cpp:(.text+0x4174): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x4188): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x4198): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x41ac): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x41bc): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x41d0): undefined reference to `lua_settop'
    /tmp/ccFywlOq.o: In function `ACTOR_TraceOnSide(lua_State*)':
    cuboactors.cpp:(.text+0x94b4): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x94c8): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x9514): undefined reference to `lua_pushnumber'
    /tmp/ccFywlOq.o: In function `ACTOR_CallMove(lua_State*)':
    cuboactors.cpp:(.text+0x9f51): undefined reference to `lua_tolstring'
    cuboactors.cpp:(.text+0x9f75): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0x9f85): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0x9f99): undefined reference to `lua_settop'
    /tmp/ccFywlOq.o: In function `ACTOR_ChangeGravity(lua_State*)':
    cuboactors.cpp:(.text+0xa66a): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0xa67e): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0xa68e): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0xa6a2): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0xa6db): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0xa6ef): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0xa79f): undefined reference to `lua_pushnumber'
    /tmp/ccFywlOq.o: In function `ACTOR_CurrentMove(lua_State*)':
    cuboactors.cpp:(.text+0xa999): undefined reference to `lua_tonumber'
    cuboactors.cpp:(.text+0xa9ad): undefined reference to `lua_settop'
    cuboactors.cpp:(.text+0xa9fc): undefined reference to `lua_pushstring'
    /tmp/cc62lWz0.o: In function `BLOCK_SetScale(lua_State*)':
    cuboboxes.cpp:(.text+0x14): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0x28): undefined reference to `lua_settop'
    cuboboxes.cpp:(.text+0x38): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0x4c): undefined reference to `lua_settop'
    /tmp/cc62lWz0.o: In function `BLOCK_SetCullRadius(lua_State*)':
    cuboboxes.cpp:(.text+0xb4): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0xc8): undefined reference to `lua_settop'
    cuboboxes.cpp:(.text+0xd8): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0xec): undefined reference to `lua_settop'
    /tmp/cc62lWz0.o: In function `BLOCK_GetScale(lua_State*)':
    cuboboxes.cpp:(.text+0x174): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0x188): undefined reference to `lua_settop'
    cuboboxes.cpp:(.text+0x1cf): undefined reference to `lua_pushnumber'
    /tmp/cc62lWz0.o: In function `ITEM_GetSide(lua_State*)':
    cuboboxes.cpp:(.text+0x1f4): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0x208): undefined reference to `lua_settop'
    cuboboxes.cpp:(.text+0x267): undefined reference to `lua_pushnumber'
    /tmp/cc62lWz0.o: In function `BLOCK_SetPosf(lua_State*)':
    cuboboxes.cpp:(.text+0x2a7): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0x2bb): undefined reference to `lua_settop'
    /tmp/cc62lWz0.o: In function `BLOCK_SetPos(lua_State*)':
    cuboboxes.cpp:(.text+0x349): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0x35d): undefined reference to `lua_settop'
    /tmp/cc62lWz0.o: In function `BLOCK_AtPos(lua_State*)':
    cuboboxes.cpp:(.text+0x4a7): undefined reference to `lua_pushnumber'
    /tmp/cc62lWz0.o: In function `BLOCK_GetPos(lua_State*)':
    cuboboxes.cpp:(.text+0x4d4): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0x4e8): undefined reference to `lua_settop'
    cuboboxes.cpp:(.text+0x54d): undefined reference to `lua_createtable'
    cuboboxes.cpp:(.text+0x55d): undefined reference to `lua_pushstring'
    cuboboxes.cpp:(.text+0x56d): undefined reference to `lua_pushnumber'
    cuboboxes.cpp:(.text+0x57d): undefined reference to `lua_settable'
    cuboboxes.cpp:(.text+0x58d): undefined reference to `lua_pushstring'
    cuboboxes.cpp:(.text+0x59d): undefined reference to `lua_pushnumber'
    cuboboxes.cpp:(.text+0x5ad): undefined reference to `lua_settable'
    cuboboxes.cpp:(.text+0x5bd): undefined reference to `lua_pushstring'
    cuboboxes.cpp:(.text+0x5cd): undefined reference to `lua_pushnumber'
    cuboboxes.cpp:(.text+0x5dd): undefined reference to `lua_settable'
    /tmp/cc62lWz0.o: In function `BLOCK_GetVar(lua_State*)':
    cuboboxes.cpp:(.text+0x604): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0x618): undefined reference to `lua_remove'
    /tmp/cc62lWz0.o: In function `BLOCK_SetVar(lua_State*)':
    cuboboxes.cpp:(.text+0x684): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0x698): undefined reference to `lua_remove'
    /tmp/cc62lWz0.o: In function `ITEM_GetVar(lua_State*)':
    cuboboxes.cpp:(.text+0x704): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0x718): undefined reference to `lua_remove'
    /tmp/cc62lWz0.o: In function `ITEM_SetVar(lua_State*)':
    cuboboxes.cpp:(.text+0x785): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0x7b5): undefined reference to `lua_remove'
    /tmp/cc62lWz0.o: In function `SIDE_GetNormal(lua_State*)':
    cuboboxes.cpp:(.text+0x804): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0x818): undefined reference to `lua_settop'
    cuboboxes.cpp:(.text+0x88e): undefined reference to `lua_createtable'
    cuboboxes.cpp:(.text+0x89e): undefined reference to `lua_pushstring'
    cuboboxes.cpp:(.text+0x8ae): undefined reference to `lua_pushnumber'
    cuboboxes.cpp:(.text+0x8be): undefined reference to `lua_settable'
    cuboboxes.cpp:(.text+0x8ce): undefined reference to `lua_pushstring'
    cuboboxes.cpp:(.text+0x8de): undefined reference to `lua_pushnumber'
    cuboboxes.cpp:(.text+0x8ee): undefined reference to `lua_settable'
    cuboboxes.cpp:(.text+0x8fe): undefined reference to `lua_pushstring'
    cuboboxes.cpp:(.text+0x90e): undefined reference to `lua_pushnumber'
    cuboboxes.cpp:(.text+0x91e): undefined reference to `lua_settable'
    /tmp/cc62lWz0.o: In function `SIDE_GetVar(lua_State*)':
    cuboboxes.cpp:(.text+0x944): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0x958): undefined reference to `lua_remove'
    /tmp/cc62lWz0.o: In function `SIDE_SetVar(lua_State*)':
    cuboboxes.cpp:(.text+0x9c4): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0x9d8): undefined reference to `lua_remove'
    /tmp/cc62lWz0.o: In function `SIDE_GetBlock(lua_State*)':
    cuboboxes.cpp:(.text+0xa44): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0xa58): undefined reference to `lua_settop'
    cuboboxes.cpp:(.text+0xac0): undefined reference to `lua_pushnumber'
    /tmp/cc62lWz0.o: In function `SIDE_DistanceRender(lua_State*)':
    cuboboxes.cpp:(.text+0xae4): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0xaf8): undefined reference to `lua_settop'
    cuboboxes.cpp:(.text+0xb08): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0xb1c): undefined reference to `lua_settop'
    /tmp/cc62lWz0.o: In function `ITEM_DistanceRender(lua_State*)':
    cuboboxes.cpp:(.text+0xb84): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0xb98): undefined reference to `lua_settop'
    cuboboxes.cpp:(.text+0xba8): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0xbbc): undefined reference to `lua_settop'
    /tmp/cc62lWz0.o: In function `BLOCK_AttachToNeighbors(lua_State*)':
    cuboboxes.cpp:(.text+0xc44): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0xc58): undefined reference to `lua_settop'
    /tmp/cc62lWz0.o: In function `BLOCK_RemoveFromNeighbors(lua_State*)':
    cuboboxes.cpp:(.text+0xd14): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0xd28): undefined reference to `lua_settop'
    /tmp/cc62lWz0.o: In function `SIDE_GetMidpoint(lua_State*)':
    cuboboxes.cpp:(.text+0xe0f): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0xe23): undefined reference to `lua_settop'
    cuboboxes.cpp:(.text+0xf19): undefined reference to `lua_createtable'
    cuboboxes.cpp:(.text+0xf29): undefined reference to `lua_pushstring'
    cuboboxes.cpp:(.text+0xf39): undefined reference to `lua_pushnumber'
    cuboboxes.cpp:(.text+0xf49): undefined reference to `lua_settable'
    cuboboxes.cpp:(.text+0xf59): undefined reference to `lua_pushstring'
    cuboboxes.cpp:(.text+0xf69): undefined reference to `lua_pushnumber'
    cuboboxes.cpp:(.text+0xf79): undefined reference to `lua_settable'
    cuboboxes.cpp:(.text+0xf89): undefined reference to `lua_pushstring'
    cuboboxes.cpp:(.text+0xf99): undefined reference to `lua_pushnumber'
    cuboboxes.cpp:(.text+0xfa9): undefined reference to `lua_settable'
    /tmp/cc62lWz0.o: In function `BLOCK_HasTransparency(lua_State*)':
    cuboboxes.cpp:(.text+0xfd6): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0xfea): undefined reference to `lua_settop'
    cuboboxes.cpp:(.text+0x1063): undefined reference to `lua_pushnumber'
    /tmp/cc62lWz0.o: In function `SIDE_GetType(lua_State*)':
    cuboboxes.cpp:(.text+0x1ef5): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0x1f09): undefined reference to `lua_settop'
    cuboboxes.cpp:(.text+0x1f7d): undefined reference to `lua_pushstring'
    /tmp/cc62lWz0.o: In function `SIDE_SetAlphaFunc(lua_State*)':
    cuboboxes.cpp:(.text+0x2001): undefined reference to `lua_tolstring'
    cuboboxes.cpp:(.text+0x2025): undefined reference to `lua_settop'
    /tmp/cc62lWz0.o: In function `SIDE_FindOfType(lua_State*)':
    cuboboxes.cpp:(.text+0x214b): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0x215f): undefined reference to `lua_settop'
    cuboboxes.cpp:(.text+0x216f): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0x2183): undefined reference to `lua_settop'
    cuboboxes.cpp:(.text+0x219b): undefined reference to `lua_tolstring'
    cuboboxes.cpp:(.text+0x21bf): undefined reference to `lua_settop'
    cuboboxes.cpp:(.text+0x223e): undefined reference to `lua_pushnumber'
    /tmp/cc62lWz0.o: In function `ITEM_GetType(lua_State*)':
    cuboboxes.cpp:(.text+0x2305): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0x2319): undefined reference to `lua_settop'
    cuboboxes.cpp:(.text+0x2391): undefined reference to `lua_pushstring'
    /tmp/cc62lWz0.o: In function `ITEM_GetEditorInfo(lua_State*)':
    cuboboxes.cpp:(.text+0x25b3): undefined reference to `lua_tolstring'
    cuboboxes.cpp:(.text+0x25d7): undefined reference to `lua_settop'
    cuboboxes.cpp:(.text+0x25ef): undefined reference to `lua_tolstring'
    cuboboxes.cpp:(.text+0x2617): undefined reference to `lua_settop'
    cuboboxes.cpp:(.text+0x2627): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0x263b): undefined reference to `lua_settop'
    cuboboxes.cpp:(.text+0x26d7): undefined reference to `lua_pushstring'
    /tmp/cc62lWz0.o: In function `SIDE_GetEditorInfo(lua_State*)':
    cuboboxes.cpp:(.text+0x2a53): undefined reference to `lua_tolstring'
    cuboboxes.cpp:(.text+0x2a77): undefined reference to `lua_settop'
    cuboboxes.cpp:(.text+0x2a8f): undefined reference to `lua_tolstring'
    cuboboxes.cpp:(.text+0x2ab7): undefined reference to `lua_settop'
    cuboboxes.cpp:(.text+0x2ac7): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0x2adb): undefined reference to `lua_settop'
    cuboboxes.cpp:(.text+0x2b77): undefined reference to `lua_pushstring'
    /tmp/cc62lWz0.o: In function `SIDE_CallVarChanged(lua_State*)':
    cuboboxes.cpp:(.text+0x2d63): undefined reference to `lua_tolstring'
    cuboboxes.cpp:(.text+0x2d87): undefined reference to `lua_settop'
    cuboboxes.cpp:(.text+0x2d97): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0x2dab): undefined reference to `lua_settop'
    /tmp/cc62lWz0.o: In function `BLOCK_GetEditorInfo(lua_State*)':
    cuboboxes.cpp:(.text+0x2fc2): undefined reference to `lua_tolstring'
    cuboboxes.cpp:(.text+0x2fea): undefined reference to `lua_settop'
    cuboboxes.cpp:(.text+0x3002): undefined reference to `lua_tolstring'
    cuboboxes.cpp:(.text+0x302a): undefined reference to `lua_settop'
    cuboboxes.cpp:(.text+0x303a): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0x304e): undefined reference to `lua_settop'
    cuboboxes.cpp:(.text+0x31ac): undefined reference to `lua_pushstring'
    /tmp/cc62lWz0.o: In function `SideAlpha(float&, float&, float&)':
    cuboboxes.cpp:(.text+0x3549): undefined reference to `glMaterialfv'
    /tmp/cc62lWz0.o: In function `SIDE_GetTangent(lua_State*)':
    cuboboxes.cpp:(.text+0x3d44): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0x3d58): undefined reference to `lua_settop'
    cuboboxes.cpp:(.text+0x3dbb): undefined reference to `lua_createtable'
    cuboboxes.cpp:(.text+0x3dcb): undefined reference to `lua_pushstring'
    cuboboxes.cpp:(.text+0x3ddb): undefined reference to `lua_pushnumber'
    cuboboxes.cpp:(.text+0x3deb): undefined reference to `lua_settable'
    cuboboxes.cpp:(.text+0x3dfb): undefined reference to `lua_pushstring'
    cuboboxes.cpp:(.text+0x3e0b): undefined reference to `lua_pushnumber'
    cuboboxes.cpp:(.text+0x3e1b): undefined reference to `lua_settable'
    cuboboxes.cpp:(.text+0x3e2b): undefined reference to `lua_pushstring'
    cuboboxes.cpp:(.text+0x3e3b): undefined reference to `lua_pushnumber'
    cuboboxes.cpp:(.text+0x3e4b): undefined reference to `lua_settable'
    /tmp/cc62lWz0.o: In function `TCuboBlockSide::RenderQuad()':
    cuboboxes.cpp:(.text+0x3fb2): undefined reference to `glBegin'
    cuboboxes.cpp:(.text+0x3fdc): undefined reference to `glNormal3f'
    cuboboxes.cpp:(.text+0x3ff2): undefined reference to `glTexCoord2f'
    cuboboxes.cpp:(.text+0x40eb): undefined reference to `glVertex3d'
    cuboboxes.cpp:(.text+0x4101): undefined reference to `glTexCoord2f'
    cuboboxes.cpp:(.text+0x41f6): undefined reference to `glVertex3d'
    cuboboxes.cpp:(.text+0x420c): undefined reference to `glTexCoord2f'
    cuboboxes.cpp:(.text+0x4301): undefined reference to `glVertex3d'
    cuboboxes.cpp:(.text+0x4317): undefined reference to `glTexCoord2f'
    cuboboxes.cpp:(.text+0x445b): undefined reference to `glMaterialfv'
    cuboboxes.cpp:(.text+0x4479): undefined reference to `glVertex3d'
    cuboboxes.cpp:(.text+0x447e): undefined reference to `glEnd'
    cuboboxes.cpp:(.text+0x44ea): undefined reference to `glMaterialfv'
    cuboboxes.cpp:(.text+0x4562): undefined reference to `glMaterialfv'
    cuboboxes.cpp:(.text+0x45da): undefined reference to `glMaterialfv'
    /tmp/cc62lWz0.o: In function `SIDE_RenderQuad(lua_State*)':
    cuboboxes.cpp:(.text+0x4614): undefined reference to `lua_tonumber'
    cuboboxes.cpp:(.text+0x4628): undefined reference to `lua_settop'
    /tmp/cckyVxOF.o: In function `ENEMY_New(lua_State*)':
    cuboenemies.cpp:(.text+0xe53): undefined reference to `lua_tolstring'
    cuboenemies.cpp:(.text+0xe7b): undefined reference to `lua_settop'
    cuboenemies.cpp:(.text+0xf6a): undefined reference to `lua_pushnumber'
    /tmp/ccekS5PC.o: In function `LEVEL_GetTime(lua_State*)':
    cubolevels.cpp:(.text+0x265): undefined reference to `lua_pushnumber'
    /tmp/ccekS5PC.o: In function `LEVEL_GetTimeScale(lua_State*)':
    cubolevels.cpp:(.text+0x2a5): undefined reference to `lua_pushnumber'
    /tmp/ccekS5PC.o: In function `LEVEL_NumBlocks(lua_State*)':
    cubolevels.cpp:(.text+0x2ef): undefined reference to `lua_pushnumber'
    /tmp/ccekS5PC.o: In function `LEVEL_LastBlock(lua_State*)':
    cubolevels.cpp:(.text+0x336): undefined reference to `lua_pushnumber'
    /tmp/ccekS5PC.o: In function `LEVEL_SetTimeScale(lua_State*)':
    cubolevels.cpp:(.text+0x364): undefined reference to `lua_tonumber'
    cubolevels.cpp:(.text+0x378): undefined reference to `lua_settop'
    /tmp/ccekS5PC.o: In function `LEVEL_SetCollisionChecksActive(lua_State*)':
    cubolevels.cpp:(.text+0x3b4): undefined reference to `lua_tonumber'
    cubolevels.cpp:(.text+0x3c8): undefined reference to `lua_settop'
    /tmp/ccekS5PC.o: In function `LEVEL_FileEnd(lua_State*)':
    cubolevels.cpp:(.text+0x424): undefined reference to `lua_tonumber'
    cubolevels.cpp:(.text+0x438): undefined reference to `lua_settop'
    /tmp/ccekS5PC.o: In function `LEVEL_FileWrite(lua_State*)':
    cubolevels.cpp:(.text+0x491): undefined reference to `lua_tolstring'
    cubolevels.cpp:(.text+0x4b5): undefined reference to `lua_settop'
    cubolevels.cpp:(.text+0x4c5): undefined reference to `lua_tonumber'
    cubolevels.cpp:(.text+0x4d9): undefined reference to `lua_settop'
    /tmp/ccekS5PC.o: In function `LEVEL_Render(lua_State*)':
    cubolevels.cpp:(.text+0x563): undefined reference to `glGetIntegerv'
    /tmp/ccekS5PC.o: In function `LEVEL_SetSideItem(lua_State*)':
    cubolevels.cpp:(.text+0x5d6): undefined reference to `lua_tolstring'
    cubolevels.cpp:(.text+0x5fa): undefined reference to `lua_settop'
    cubolevels.cpp:(.text+0x60a): undefined reference to `lua_tonumber'
    cubolevels.cpp:(.text+0x61e): undefined reference to `lua_settop'
    /tmp/ccekS5PC.o: In function `LEVEL_NumItems(lua_State*)':
    cubolevels.cpp:(.text+0x98f): undefined reference to `lua_tolstring'
    cubolevels.cpp:(.text+0x9bb): undefined reference to `lua_settop'
    cubolevels.cpp:(.text+0xaa1): undefined reference to `lua_pushnumber'
    /tmp/ccekS5PC.o: In function `LEVEL_Load(lua_State*)':
    cubolevels.cpp:(.text+0xb1b): undefined reference to `lua_tolstring'
    cubolevels.cpp:(.text+0xb3f): undefined reference to `lua_settop'
    /tmp/ccekS5PC.o: In function `LEVEL_LoadUserLevel(lua_State*)':
    cubolevels.cpp:(.text+0xbfb): undefined reference to `lua_tolstring'
    cubolevels.cpp:(.text+0xc1f): undefined reference to `lua_settop'
    /tmp/ccekS5PC.o: In function `LEVEL_GetElapsed(lua_State*)':
    cubolevels.cpp:(.text+0xd65): undefined reference to `lua_pushnumber'
    /tmp/ccekS5PC.o: In function `LEVEL_GetRadius(lua_State*)':
    cubolevels.cpp:(.text+0xdcb): undefined reference to `lua_pushnumber'
    /tmp/ccekS5PC.o: In function `LEVEL_GetCenter(lua_State*)':
    cubolevels.cpp:(.text+0xe4d): undefined reference to `lua_createtable'
    cubolevels.cpp:(.text+0xe5d): undefined reference to `lua_pushstring'
    cubolevels.cpp:(.text+0xe6d): undefined reference to `lua_pushnumber'
    cubolevels.cpp:(.text+0xe7d): undefined reference to `lua_settable'
    cubolevels.cpp:(.text+0xe8d): undefined reference to `lua_pushstring'
    cubolevels.cpp:(.text+0xe9d): undefined reference to `lua_pushnumber'
    cubolevels.cpp:(.text+0xead): undefined reference to `lua_settable'
    cubolevels.cpp:(.text+0xebd): undefined reference to `lua_pushstring'
    cubolevels.cpp:(.text+0xecd): undefined reference to `lua_pushnumber'
    cubolevels.cpp:(.text+0xedd): undefined reference to `lua_settable'
    /tmp/ccekS5PC.o: In function `LEVEL_GetEditorSelector(lua_State*)':
    cubolevels.cpp:(.text+0x11e3): undefined reference to `lua_pushnumber'
    /tmp/ccekS5PC.o: In function `LEVEL_FileData(lua_State*)':
    cubolevels.cpp:(.text+0x1236): undefined reference to `lua_tonumber'
    cubolevels.cpp:(.text+0x124a): undefined reference to `lua_settop'
    /tmp/ccekS5PC.o: In function `LEVEL_DeleteBlock(lua_State*)':
    cubolevels.cpp:(.text+0x1e04): undefined reference to `lua_tonumber'
    cubolevels.cpp:(.text+0x1e18): undefined reference to `lua_settop'
    /tmp/ccekS5PC.o: In function `LEVEL_FileBegin(lua_State*)':
    cubolevels.cpp:(.text+0x2110): undefined reference to `lua_tolstring'
    cubolevels.cpp:(.text+0x2134): undefined reference to `lua_settop'
    cubolevels.cpp:(.text+0x227c): undefined reference to `lua_pushnumber'
    cubolevels.cpp:(.text+0x229a): undefined reference to `lua_pushnumber'
    /tmp/ccekS5PC.o: In function `LEVEL_TraceLine(lua_State*)':
    cubolevels.cpp:(.text+0x37a5): undefined reference to `lua_createtable'
    cubolevels.cpp:(.text+0x37b5): undefined reference to `lua_pushstring'
    cubolevels.cpp:(.text+0x37c5): undefined reference to `lua_pushnumber'
    cubolevels.cpp:(.text+0x37d5): undefined reference to `lua_rawset'
    cubolevels.cpp:(.text+0x37e5): undefined reference to `lua_pushstring'
    cubolevels.cpp:(.text+0x37f5): undefined reference to `lua_pushnumber'
    cubolevels.cpp:(.text+0x3805): undefined reference to `lua_rawset'
    cubolevels.cpp:(.text+0x3815): undefined reference to `lua_pushstring'
    cubolevels.cpp:(.text+0x3829): undefined reference to `lua_pushnumber'
    cubolevels.cpp:(.text+0x3839): undefined reference to `lua_rawset'
    cubolevels.cpp:(.text+0x3849): undefined reference to `lua_pushstring'
    cubolevels.cpp:(.text+0x3867): undefined reference to `lua_pushnumber'
    cubolevels.cpp:(.text+0x3877): undefined reference to `lua_rawset'
    /tmp/ccekS5PC.o: In function `LEVEL_ChangeSide(lua_State*)':
    cubolevels.cpp:(.text+0x5ee5): undefined reference to `lua_tolstring'
    cubolevels.cpp:(.text+0x5f13): undefined reference to `lua_settop'
    cubolevels.cpp:(.text+0x5f2b): undefined reference to `lua_tolstring'
    cubolevels.cpp:(.text+0x5f59): undefined reference to `lua_settop'
    cubolevels.cpp:(.text+0x5f69): undefined reference to `lua_tonumber'
    cubolevels.cpp:(.text+0x5f7d): undefined reference to `lua_settop'
    /tmp/ccekS5PC.o: In function `LEVEL_ChangeBlock(lua_State*)':
    cubolevels.cpp:(.text+0x6832): undefined reference to `lua_tolstring'
    cubolevels.cpp:(.text+0x685a): undefined reference to `lua_settop'
    cubolevels.cpp:(.text+0x686a): undefined reference to `lua_tonumber'
    cubolevels.cpp:(.text+0x687e): undefined reference to `lua_settop'
    /tmp/ccekS5PC.o: In function `LEVEL_AddBlock(lua_State*)':
    cubolevels.cpp:(.text+0x7229): undefined reference to `lua_tolstring'
    cubolevels.cpp:(.text+0x7250): undefined reference to `lua_settop'
    cubolevels.cpp:(.text+0x7260): undefined reference to `lua_tonumber'
    cubolevels.cpp:(.text+0x7274): undefined reference to `lua_settop'
    cubolevels.cpp:(.text+0x7284): undefined reference to `lua_tonumber'
    cubolevels.cpp:(.text+0x7298): undefined reference to `lua_settop'
    cubolevels.cpp:(.text+0x72a8): undefined reference to `lua_tonumber'
    cubolevels.cpp:(.text+0x72bc): undefined reference to `lua_settop'
    /tmp/ccekS5PC.o: In function `LEVEL_AddItem(lua_State*)':
    cubolevels.cpp:(.text+0x7ddc): undefined reference to `lua_tolstring'
    cubolevels.cpp:(.text+0x7e03): undefined reference to `lua_settop'
    cubolevels.cpp:(.text+0x7e1b): undefined reference to `lua_tolstring'
    cubolevels.cpp:(.text+0x7e49): undefined reference to `lua_settop'
    cubolevels.cpp:(.text+0x7e59): undefined reference to `lua_tonumber'
    cubolevels.cpp:(.text+0x7e6d): undefined reference to `lua_settop'
    cubolevels.cpp:(.text+0x83c7): undefined reference to `lua_pushnumber'
    /tmp/ccekS5PC.o: In function `TCuboLevel::Render(TCamera*)':
    cubolevels.cpp:(.text+0x8d30): undefined reference to `glEnable'
    /tmp/ccekS5PC.o: In function `TCuboLevel::SpecialRender(TCamera*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int)':
    cubolevels.cpp:(.text+0x9750): undefined reference to `glEnable'
    /tmp/ccJOTp6M.o: In function `TLuaPathfindingLib::PATH_GetNode(lua_State*)':
    cubopathfind.cpp:(.text+0x16): undefined reference to `lua_tonumber'
    cubopathfind.cpp:(.text+0x46): undefined reference to `lua_settop'
    cubopathfind.cpp:(.text+0x56): undefined reference to `lua_tonumber'
    cubopathfind.cpp:(.text+0x86): undefined reference to `lua_settop'
    cubopathfind.cpp:(.text+0xd8): undefined reference to `lua_pushnumber'
    /tmp/ccJOTp6M.o: In function `TLuaPathfindingLib::PATH_GetNumNodes(lua_State*)':
    cubopathfind.cpp:(.text+0x115): undefined reference to `lua_tonumber'
    cubopathfind.cpp:(.text+0x145): undefined reference to `lua_settop'
    cubopathfind.cpp:(.text+0x188): undefined reference to `lua_pushnumber'
    /tmp/ccJOTp6M.o: In function `TLuaPathfindingLib::PATH_GetNextMove(lua_State*)':
    cubopathfind.cpp:(.text+0x26c7): undefined reference to `lua_tonumber'
    cubopathfind.cpp:(.text+0x26f7): undefined reference to `lua_settop'
    cubopathfind.cpp:(.text+0x2707): undefined reference to `lua_tonumber'
    cubopathfind.cpp:(.text+0x2737): undefined reference to `lua_settop'
    cubopathfind.cpp:(.text+0x2747): undefined reference to `lua_tonumber'
    cubopathfind.cpp:(.text+0x277b): undefined reference to `lua_settop'
    cubopathfind.cpp:(.text+0x278b): undefined reference to `lua_tonumber'
    cubopathfind.cpp:(.text+0x27bb): undefined reference to `lua_settop'
    cubopathfind.cpp:(.text+0x2813): undefined reference to `lua_pushstring'
    /tmp/ccJOTp6M.o: In function `TLuaPathfindingLib::PATH_GetEscapeMove(lua_State*)':
    cubopathfind.cpp:(.text+0x2cd7): undefined reference to `lua_tonumber'
    cubopathfind.cpp:(.text+0x2d07): undefined reference to `lua_settop'
    cubopathfind.cpp:(.text+0x2d17): undefined reference to `lua_tonumber'
    cubopathfind.cpp:(.text+0x2d47): undefined reference to `lua_settop'
    cubopathfind.cpp:(.text+0x2d57): undefined reference to `lua_tonumber'
    cubopathfind.cpp:(.text+0x2d8b): undefined reference to `lua_settop'
    cubopathfind.cpp:(.text+0x2d9b): undefined reference to `lua_tonumber'
    cubopathfind.cpp:(.text+0x2dcb): undefined reference to `lua_settop'
    cubopathfind.cpp:(.text+0x2e23): undefined reference to `lua_pushstring'
    /tmp/ccJOTp6M.o: In function `TLuaPathfindingLib::PATH_GetRandomMove(lua_State*)':
    cubopathfind.cpp:(.text+0x32a7): undefined reference to `lua_tonumber'
    cubopathfind.cpp:(.text+0x32d7): undefined reference to `lua_settop'
    cubopathfind.cpp:(.text+0x32e7): undefined reference to `lua_tonumber'
    cubopathfind.cpp:(.text+0x3317): undefined reference to `lua_settop'
    cubopathfind.cpp:(.text+0x3327): undefined reference to `lua_tonumber'
    cubopathfind.cpp:(.text+0x3357): undefined reference to `lua_settop'
    cubopathfind.cpp:(.text+0x33a2): undefined reference to `lua_pushstring'
    /tmp/ccJOTp6M.o: In function `TCuboPathGraph::MayAddNode(int, int)':
    cubopathfind.cpp:(.text+0x4328): undefined reference to `lua_getfield'
    cubopathfind.cpp:(.text+0x433d): undefined reference to `lua_pushnumber'
    cubopathfind.cpp:(.text+0x4352): undefined reference to `lua_pushnumber'
    cubopathfind.cpp:(.text+0x4374): undefined reference to `lua_pcall'
    cubopathfind.cpp:(.text+0x44a4): undefined reference to `lua_tolstring'
    cubopathfind.cpp:(.text+0x466e): undefined reference to `lua_isnumber'
    cubopathfind.cpp:(.text+0x48ce): undefined reference to `lua_tonumber'
    cubopathfind.cpp:(.text+0x4900): undefined reference to `lua_settop'
    /tmp/ccJOTp6M.o: In function `TLuaPathfindingLib::PATH_NewGraph(lua_State*)':
    cubopathfind.cpp:(.text+0x5c45): undefined reference to `lua_tolstring'
    cubopathfind.cpp:(.text+0x5c73): undefined reference to `lua_settop'
    cubopathfind.cpp:(.text+0x5c83): undefined reference to `lua_tonumber'
    cubopathfind.cpp:(.text+0x5c97): undefined reference to `lua_settop'
    cubopathfind.cpp:(.text+0x5f7a): undefined reference to `lua_pushnumber'
    /tmp/ccqpSodj.o: In function `MENU_Load(lua_State*)':
    definitions.cpp:(.text+0xebf): undefined reference to `lua_tolstring'
    definitions.cpp:(.text+0xee3): undefined reference to `lua_settop'
    /tmp/ccGyVzkE.o: In function `TEventManager::HandleEvents()':
    events.cpp:(.text+0x24): undefined reference to `SDL_PollEvent'
    events.cpp:(.text+0x4a): undefined reference to `SDL_PollEvent'
    /tmp/ccihr8c5.o: In function `FONT_Goto(lua_State*)':
    fonts.cpp:(.text+0x14): undefined reference to `lua_tonumber'
    fonts.cpp:(.text+0x28): undefined reference to `lua_settop'
    fonts.cpp:(.text+0x38): undefined reference to `lua_tonumber'
    fonts.cpp:(.text+0x4c): undefined reference to `lua_settop'
    /tmp/ccihr8c5.o: In function `FONT_End(lua_State*)':
    fonts.cpp:(.text+0x16b): undefined reference to `glEnable'
    fonts.cpp:(.text+0x177): undefined reference to `glDisable'
    fonts.cpp:(.text+0x18b): undefined reference to `glBlendFunc'
    /tmp/ccihr8c5.o: In function `FONT_SetSize(lua_State*)':
    fonts.cpp:(.text+0x1b9): undefined reference to `lua_tonumber'
    fonts.cpp:(.text+0x1d5): undefined reference to `lua_settop'
    /tmp/ccihr8c5.o: In function `FONT_Begin(lua_State*)':
    fonts.cpp:(.text+0x28b): undefined reference to `glMatrixMode'
    fonts.cpp:(.text+0x290): undefined reference to `glLoadIdentity'
    fonts.cpp:(.text+0x2c2): undefined reference to `glOrtho'
    fonts.cpp:(.text+0x2ce): undefined reference to `glDisable'
    fonts.cpp:(.text+0x2da): undefined reference to `glEnable'
    fonts.cpp:(.text+0x2ee): undefined reference to `glBlendFunc'
    fonts.cpp:(.text+0x310): undefined reference to `glFinish'
    /tmp/ccihr8c5.o: In function `FONT_SetAlign(lua_State*)':
    fonts.cpp:(.text+0x116f): undefined reference to `lua_tolstring'
    fonts.cpp:(.text+0x1197): undefined reference to `lua_settop'
    fonts.cpp:(.text+0x11af): undefined reference to `lua_tolstring'
    fonts.cpp:(.text+0x11d7): undefined reference to `lua_settop'
    /tmp/ccihr8c5.o: In function `FONT_AddRemap(lua_State*)':
    fonts.cpp:(.text+0x1c0f): undefined reference to `lua_tolstring'
    fonts.cpp:(.text+0x1c37): undefined reference to `lua_settop'
    fonts.cpp:(.text+0x1c4f): undefined reference to `lua_tolstring'
    fonts.cpp:(.text+0x1c77): undefined reference to `lua_settop'
    /tmp/ccihr8c5.o: In function `TSizedFont::Load(SDL_RWops*, int)':
    fonts.cpp:(.text+0x1fec): undefined reference to `TTF_CloseFont'
    fonts.cpp:(.text+0x2015): undefined reference to `TTF_OpenFontRW'
    /tmp/ccihr8c5.o: In function `TLoadedFont::Clear()':
    fonts.cpp:(.text+0x2111): undefined reference to `TTF_CloseFont'
    /tmp/ccihr8c5.o: In function `TFontCache::Clear()':
    fonts.cpp:(.text+0x21e0): undefined reference to `glFinish'
    fonts.cpp:(.text+0x21eb): undefined reference to `SDL_FreeSurface'
    fonts.cpp:(.text+0x21fe): undefined reference to `glDeleteTextures'
    /tmp/ccihr8c5.o: In function `TFontCache::Setup(TLoadedFont*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int)':
    fonts.cpp:(.text+0x228d): undefined reference to `glFinish'
    fonts.cpp:(.text+0x2298): undefined reference to `SDL_FreeSurface'
    fonts.cpp:(.text+0x22ab): undefined reference to `glDeleteTextures'
    fonts.cpp:(.text+0x2387): undefined reference to `TTF_RenderUTF8_Blended'
    fonts.cpp:(.text+0x246d): undefined reference to `SDL_CreateRGBSurface'
    fonts.cpp:(.text+0x248c): undefined reference to `SDL_UpperBlit'
    fonts.cpp:(.text+0x249f): undefined reference to `glGenTextures'
    fonts.cpp:(.text+0x24b2): undefined reference to `glBindTexture'
    fonts.cpp:(.text+0x24f8): undefined reference to `glTexImage2D'
    fonts.cpp:(.text+0x2514): undefined reference to `glTexParameteri'
    fonts.cpp:(.text+0x2530): undefined reference to `glTexParameteri'
    fonts.cpp:(.text+0x254c): undefined reference to `glTexParameteri'
    fonts.cpp:(.text+0x2568): undefined reference to `glTexParameteri'
    fonts.cpp:(.text+0x258b): undefined reference to `SDL_FreeSurface'
    /tmp/ccihr8c5.o: In function `TFontCaches::Clear()':
    fonts.cpp:(.text+0x2688): undefined reference to `glFinish'
    fonts.cpp:(.text+0x2693): undefined reference to `SDL_FreeSurface'
    fonts.cpp:(.text+0x26a6): undefined reference to `glDeleteTextures'
    /tmp/ccihr8c5.o: In function `TFont::Begin()':
    fonts.cpp:(.text+0x279b): undefined reference to `glMatrixMode'
    fonts.cpp:(.text+0x27a0): undefined reference to `glLoadIdentity'
    fonts.cpp:(.text+0x27d2): undefined reference to `glOrtho'
    fonts.cpp:(.text+0x27de): undefined reference to `glDisable'
    fonts.cpp:(.text+0x27ea): undefined reference to `glEnable'
    fonts.cpp:(.text+0x27fe): undefined reference to `glBlendFunc'
    /tmp/ccihr8c5.o: In function `TFont::End()':
    fonts.cpp:(.text+0x283b): undefined reference to `glEnable'
    fonts.cpp:(.text+0x2847): undefined reference to `glDisable'
    fonts.cpp:(.text+0x285b): undefined reference to `glBlendFunc'
    /tmp/ccihr8c5.o: In function `TFont::Init()':
    fonts.cpp:(.text+0x322b): undefined reference to `TTF_Init'
    fonts.cpp:(.text+0x333a): undefined reference to `SDL_GetError'
    fonts.cpp:(.text+0x346d): undefined reference to `TTF_Quit'
    /tmp/ccihr8c5.o: In function `TSizedFont::Load(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int)':
    fonts.cpp:(.text+0x3729): undefined reference to `TTF_CloseFont'
    fonts.cpp:(.text+0x37e9): undefined reference to `SDL_RWFromMem'
    fonts.cpp:(.text+0x37fd): undefined reference to `TTF_OpenFontRW'
    fonts.cpp:(.text+0x3859): undefined reference to `SDL_RWFromFile'
    fonts.cpp:(.text+0x3a87): undefined reference to `SDL_GetError'
    /tmp/ccihr8c5.o: In function `TLoadedFont::GetSized(int)':
    fonts.cpp:(.text+0x4086): undefined reference to `TTF_CloseFont'
    fonts.cpp:(.text+0x4150): undefined reference to `SDL_RWFromFile'
    fonts.cpp:(.text+0x417e): undefined reference to `TTF_OpenFontRW'
    fonts.cpp:(.text+0x4226): undefined reference to `SDL_RWFromMem'
    fonts.cpp:(.text+0x43fa): undefined reference to `SDL_GetError'
    /tmp/ccihr8c5.o: In function `FONT_Load(lua_State*)':
    fonts.cpp:(.text+0x4bcf): undefined reference to `lua_tolstring'
    fonts.cpp:(.text+0x4bf3): undefined reference to `lua_settop'
    /tmp/ccihr8c5.o: In function `_ZN5TFont10RenderTextESs.constprop.229':
    fonts.cpp:(.text+0x587f): undefined reference to `glEnable'
    fonts.cpp:(.text+0x5892): undefined reference to `glBindTexture'
    fonts.cpp:(.text+0x589e): undefined reference to `glBegin'
    fonts.cpp:(.text+0x5a09): undefined reference to `glTexCoord2f'
    fonts.cpp:(.text+0x5a25): undefined reference to `glVertex3f'
    fonts.cpp:(.text+0x5a41): undefined reference to `glTexCoord2f'
    fonts.cpp:(.text+0x5a65): undefined reference to `glVertex3f'
    fonts.cpp:(.text+0x5a79): undefined reference to `glTexCoord2f'
    fonts.cpp:(.text+0x5a9d): undefined reference to `glVertex3f'
    fonts.cpp:(.text+0x5ab1): undefined reference to `glTexCoord2f'
    fonts.cpp:(.text+0x5acd): undefined reference to `glVertex3f'
    fonts.cpp:(.text+0x5ad2): undefined reference to `glEnd'
    /tmp/ccihr8c5.o: In function `FONT_TextOut(lua_State*)':
    fonts.cpp:(.text+0x6022): undefined reference to `lua_tolstring'
    fonts.cpp:(.text+0x604a): undefined reference to `lua_settop'
    /tmp/ccihr8c5.o: In function `TFont::RenderText(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
    fonts.cpp:(.text+0x6649): undefined reference to `glEnable'
    fonts.cpp:(.text+0x665c): undefined reference to `glBindTexture'
    fonts.cpp:(.text+0x6668): undefined reference to `glBegin'
    fonts.cpp:(.text+0x67d3): undefined reference to `glTexCoord2f'
    fonts.cpp:(.text+0x67ef): undefined reference to `glVertex3f'
    fonts.cpp:(.text+0x680b): undefined reference to `glTexCoord2f'
    fonts.cpp:(.text+0x682f): undefined reference to `glVertex3f'
    fonts.cpp:(.text+0x6843): undefined reference to `glTexCoord2f'
    fonts.cpp:(.text+0x6867): undefined reference to `glVertex3f'
    fonts.cpp:(.text+0x687b): undefined reference to `glTexCoord2f'
    fonts.cpp:(.text+0x6897): undefined reference to `glVertex3f'
    fonts.cpp:(.text+0x689c): undefined reference to `glEnd'
    /tmp/ccihr8c5.o: In function `TSizedFont::DestructFont()':
    fonts.cpp:(.text+0x1fa6): undefined reference to `TTF_CloseFont'
    /tmp/ccihr8c5.o: In function `TFont::Begin()':
    fonts.cpp:(.text+0x2823): undefined reference to `glFinish'
    /tmp/cccngAjd.o: In function `BASIS_Pop(lua_State*)':
    game.cpp:(.text+0x114): undefined reference to `lua_tonumber'
    game.cpp:(.text+0x128): undefined reference to `lua_settop'
    /tmp/cccngAjd.o: In function `BASIS_Push(lua_State*)':
    game.cpp:(.text+0x184): undefined reference to `lua_tonumber'
    game.cpp:(.text+0x198): undefined reference to `lua_settop'
    /tmp/cccngAjd.o: In function `BASIS_Invert(lua_State*)':
    game.cpp:(.text+0x1f4): undefined reference to `lua_tonumber'
    game.cpp:(.text+0x208): undefined reference to `lua_settop'
    /tmp/cccngAjd.o: In function `BASIS_ChaseCam(lua_State*)':
    game.cpp:(.text+0x264): undefined reference to `lua_tonumber'
    game.cpp:(.text+0x278): undefined reference to `lua_settop'
    game.cpp:(.text+0x288): undefined reference to `lua_tonumber'
    game.cpp:(.text+0x29c): undefined reference to `lua_settop'
    /tmp/cccngAjd.o: In function `BASIS_AxisRotate(lua_State*)':
    game.cpp:(.text+0x334): undefined reference to `lua_tonumber'
    game.cpp:(.text+0x348): undefined reference to `lua_settop'
    game.cpp:(.text+0x36b): undefined reference to `lua_tonumber'
    game.cpp:(.text+0x37f): undefined reference to `lua_settop'
    /tmp/cccngAjd.o: In function `BASIS_SetPos(lua_State*)':
    game.cpp:(.text+0x418): undefined reference to `lua_tonumber'
    game.cpp:(.text+0x42c): undefined reference to `lua_settop'
    /tmp/cccngAjd.o: In function `BASIS_SetScale(lua_State*)':
    game.cpp:(.text+0x4a8): undefined reference to `lua_tonumber'
    game.cpp:(.text+0x4bc): undefined reference to `lua_settop'
    /tmp/cccngAjd.o: In function `BASIS_Set(lua_State*)':
    game.cpp:(.text+0x58f): undefined reference to `lua_tonumber'
    game.cpp:(.text+0x5a7): undefined reference to `lua_settop'
    /tmp/cccngAjd.o: In function `BASIS_New(lua_State*)':
    game.cpp:(.text+0x647): undefined reference to `lua_pushnumber'
    /tmp/cccngAjd.o: In function `BASIS_GetDir(lua_State*)':
    game.cpp:(.text+0x674): undefined reference to `lua_tonumber'
    game.cpp:(.text+0x688): undefined reference to `lua_settop'
    game.cpp:(.text+0x6e3): undefined reference to `lua_createtable'
    game.cpp:(.text+0x6f3): undefined reference to `lua_pushstring'
    game.cpp:(.text+0x703): undefined reference to `lua_pushnumber'
    game.cpp:(.text+0x713): undefined reference to `lua_settable'
    game.cpp:(.text+0x723): undefined reference to `lua_pushstring'
    game.cpp:(.text+0x733): undefined reference to `lua_pushnumber'
    game.cpp:(.text+0x743): undefined reference to `lua_settable'
    game.cpp:(.text+0x753): undefined reference to `lua_pushstring'
    game.cpp:(.text+0x763): undefined reference to `lua_pushnumber'
    game.cpp:(.text+0x773): undefined reference to `lua_settable'
    /tmp/cccngAjd.o: In function `BASIS_GetUp(lua_State*)':
    game.cpp:(.text+0x7a4): undefined reference to `lua_tonumber'
    game.cpp:(.text+0x7b8): undefined reference to `lua_settop'
    game.cpp:(.text+0x813): undefined reference to `lua_createtable'
    game.cpp:(.text+0x823): undefined reference to `lua_pushstring'
    game.cpp:(.text+0x833): undefined reference to `lua_pushnumber'
    game.cpp:(.text+0x843): undefined reference to `lua_settable'
    game.cpp:(.text+0x853): undefined reference to `lua_pushstring'
    game.cpp:(.text+0x863): undefined reference to `lua_pushnumber'
    game.cpp:(.text+0x873): undefined reference to `lua_settable'
    game.cpp:(.text+0x883): undefined reference to `lua_pushstring'
    game.cpp:(.text+0x893): undefined reference to `lua_pushnumber'
    game.cpp:(.text+0x8a3): undefined reference to `lua_settable'
    /tmp/cccngAjd.o: In function `BASIS_GetSide(lua_State*)':
    game.cpp:(.text+0x8d4): undefined reference to `lua_tonumber'
    game.cpp:(.text+0x8e8): undefined reference to `lua_settop'
    game.cpp:(.text+0x943): undefined reference to `lua_createtable'
    game.cpp:(.text+0x953): undefined reference to `lua_pushstring'
    game.cpp:(.text+0x963): undefined reference to `lua_pushnumber'
    game.cpp:(.text+0x973): undefined reference to `lua_settable'
    game.cpp:(.text+0x983): undefined reference to `lua_pushstring'
    game.cpp:(.text+0x993): undefined reference to `lua_pushnumber'
    game.cpp:(.text+0x9a3): undefined reference to `lua_settable'
    game.cpp:(.text+0x9b3): undefined reference to `lua_pushstring'
    game.cpp:(.text+0x9c3): undefined reference to `lua_pushnumber'
    game.cpp:(.text+0x9d3): undefined reference to `lua_settable'
    /tmp/cccngAjd.o: In function `TGame::GameLoop()':
    game.cpp:(.text+0xfc5): undefined reference to `SDL_GetTicks'
    /tmp/cccngAjd.o: In function `TGame::InitGL(int, int, int, int, int)':
    game.cpp:(.text+0x11de): undefined reference to `SDL_SetVideoMode'
    game.cpp:(.text+0x11f2): undefined reference to `SDL_WM_SetCaption'
    game.cpp:(.text+0x11f7): undefined reference to `glewInit'
    game.cpp:(.text+0x1223): undefined reference to `glClearColor'
    game.cpp:(.text+0x122f): undefined reference to `glEnable'
    game.cpp:(.text+0x123b): undefined reference to `glCullFace'
    game.cpp:(.text+0x1247): undefined reference to `glEnable'
    game.cpp:(.text+0x1253): undefined reference to `glDepthFunc'
    game.cpp:(.text+0x125f): undefined reference to `glEnable'
    game.cpp:(.text+0x126b): undefined reference to `glEnable'
    game.cpp:(.text+0x1277): undefined reference to `glDisable'
    game.cpp:(.text+0x1283): undefined reference to `glEnable'
    game.cpp:(.text+0x129f): undefined reference to `glLightfv'
    game.cpp:(.text+0x12bb): undefined reference to `glLightfv'
    game.cpp:(.text+0x12d7): undefined reference to `glLightfv'
    game.cpp:(.text+0x12f3): undefined reference to `glLightfv'
    game.cpp:(.text+0x130f): undefined reference to `glMaterialfv'
    game.cpp:(.text+0x132b): undefined reference to `glMaterialfv'
    game.cpp:(.text+0x1347): undefined reference to `glMaterialfv'
    game.cpp:(.text+0x1363): undefined reference to `glMaterialfv'
    game.cpp:(.text+0x1377): undefined reference to `glBlendFunc'
    /tmp/cccngAjd.o: In function `TCuboGame::PreRender(int, int)':
    game.cpp:(.text+0x145c): undefined reference to `SDL_GetVideoInfo'
    /tmp/cccngAjd.o: In function `TCuboGame::Render()':
    game.cpp:(.text+0x1580): undefined reference to `SDL_GL_SwapBuffers'
    game.cpp:(.text+0x1608): undefined reference to `glClearColor'
    game.cpp:(.text+0x1614): undefined reference to `glClear'
    /tmp/cccngAjd.o: In function `TCuboGame::RenderPass()':
    game.cpp:(.text+0x1a36): undefined reference to `glColor4f'
    /tmp/cccngAjd.o: In function `GAME_SetGameLoopSource(lua_State*)':
    game.cpp:(.text+0x3227): undefined reference to `lua_tolstring'
    game.cpp:(.text+0x3255): undefined reference to `lua_settop'
    /tmp/cccngAjd.o: In function `TCuboGame::SaveFramePic(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, int)':
    game.cpp:(.text+0x3705): undefined reference to `glGetIntegerv'
    game.cpp:(.text+0x3775): undefined reference to `glReadPixels'
    game.cpp:(.text+0x39f2): undefined reference to `gluScaleImage'
    game.cpp:(.text+0x3a59): undefined reference to `jpeg_std_error'
    game.cpp:(.text+0x3a79): undefined reference to `jpeg_CreateCompress'
    game.cpp:(.text+0x3a89): undefined reference to `jpeg_stdio_dest'
    game.cpp:(.text+0x3ab5): undefined reference to `jpeg_set_defaults'
    game.cpp:(.text+0x3acd): undefined reference to `jpeg_set_quality'
    game.cpp:(.text+0x3add): undefined reference to `jpeg_start_compress'
    game.cpp:(.text+0x3b14): undefined reference to `jpeg_write_scanlines'
    game.cpp:(.text+0x3b2c): undefined reference to `jpeg_finish_compress'
    game.cpp:(.text+0x3b34): undefined reference to `jpeg_destroy_compress'
    /tmp/cccngAjd.o: In function `TGame::CheckNeededExtensions()':
    game.cpp:(.text+0x44fb): undefined reference to `glGetString'
    game.cpp:(.text+0x4580): undefined reference to `glewIsSupported'
    game.cpp:(.text+0x45b8): undefined reference to `glGetString'
    /tmp/cccngAjd.o: In function `TGame::Start()':
    game.cpp:(.text+0x6a6d): undefined reference to `SDL_GetTicks'
    /tmp/ccrzjlbv.o: In function `TLuaFileSysLib::FILESYS_PlatformFilename(lua_State*)':
    globals.cpp:(.text._ZN14TLuaFileSysLib24FILESYS_PlatformFilenameEP9lua_State[TLuaFileSysLib::FILESYS_PlatformFilename(lua_State*)]+0x2f): undefined reference to `lua_tolstring'
    globals.cpp:(.text._ZN14TLuaFileSysLib24FILESYS_PlatformFilenameEP9lua_State[TLuaFileSysLib::FILESYS_PlatformFilename(lua_State*)]+0x53): undefined reference to `lua_settop'
    globals.cpp:(.text._ZN14TLuaFileSysLib24FILESYS_PlatformFilenameEP9lua_State[TLuaFileSysLib::FILESYS_PlatformFilename(lua_State*)]+0xb1): undefined reference to `lua_pushstring'
    /tmp/ccrzjlbv.o: In function `TLuaFileSysLib::FILESYS_Delete(lua_State*)':
    globals.cpp:(.text._ZN14TLuaFileSysLib14FILESYS_DeleteEP9lua_State[TLuaFileSysLib::FILESYS_Delete(lua_State*)]+0x2f): undefined reference to `lua_tolstring'
    globals.cpp:(.text._ZN14TLuaFileSysLib14FILESYS_DeleteEP9lua_State[TLuaFileSysLib::FILESYS_Delete(lua_State*)]+0x53): undefined reference to `lua_settop'
    globals.cpp:(.text._ZN14TLuaFileSysLib14FILESYS_DeleteEP9lua_State[TLuaFileSysLib::FILESYS_Delete(lua_State*)]+0xb4): undefined reference to `lua_pushnumber'
    globals.cpp:(.text._ZN14TLuaFileSysLib14FILESYS_DeleteEP9lua_State[TLuaFileSysLib::FILESYS_Delete(lua_State*)]+0xf2): undefined reference to `lua_pushnumber'
    /tmp/ccrzjlbv.o: In function `TLuaFileSysLib::FILESYS_WillOverwrite(lua_State*)':
    globals.cpp:(.text._ZN14TLuaFileSysLib21FILESYS_WillOverwriteEP9lua_State[TLuaFileSysLib::FILESYS_WillOverwrite(lua_State*)]+0x2f): undefined reference to `lua_tolstring'
    globals.cpp:(.text._ZN14TLuaFileSysLib21FILESYS_WillOverwriteEP9lua_State[TLuaFileSysLib::FILESYS_WillOverwrite(lua_State*)]+0x53): undefined reference to `lua_settop'
    globals.cpp:(.text._ZN14TLuaFileSysLib21FILESYS_WillOverwriteEP9lua_State[TLuaFileSysLib::FILESYS_WillOverwrite(lua_State*)]+0xb4): undefined reference to `lua_pushnumber'
    globals.cpp:(.text._ZN14TLuaFileSysLib21FILESYS_WillOverwriteEP9lua_State[TLuaFileSysLib::FILESYS_WillOverwrite(lua_State*)]+0xf2): undefined reference to `lua_pushnumber'
    /tmp/ccrzjlbv.o: In function `TLuaFileSysLib::FILESYS_AddFileMask(lua_State*)':
    globals.cpp:(.text._ZN14TLuaFileSysLib19FILESYS_AddFileMaskEP9lua_State[TLuaFileSysLib::FILESYS_AddFileMask(lua_State*)]+0x1b): undefined reference to `lua_toboolean'
    globals.cpp:(.text._ZN14TLuaFileSysLib19FILESYS_AddFileMaskEP9lua_State[TLuaFileSysLib::FILESYS_AddFileMask(lua_State*)]+0x2d): undefined reference to `lua_settop'
    globals.cpp:(.text._ZN14TLuaFileSysLib19FILESYS_AddFileMaskEP9lua_State[TLuaFileSysLib::FILESYS_AddFileMask(lua_State*)]+0x3d): undefined reference to `lua_toboolean'
    globals.cpp:(.text._ZN14TLuaFileSysLib19FILESYS_AddFileMaskEP9lua_State[TLuaFileSysLib::FILESYS_AddFileMask(lua_State*)]+0x4f): undefined reference to `lua_settop'
    globals.cpp:(.text._ZN14TLuaFileSysLib19FILESYS_AddFileMaskEP9lua_State[TLuaFileSysLib::FILESYS_AddFileMask(lua_State*)]+0x5f): undefined reference to `lua_toboolean'
    globals.cpp:(.text._ZN14TLuaFileSysLib19FILESYS_AddFileMaskEP9lua_State[TLuaFileSysLib::FILESYS_AddFileMask(lua_State*)]+0x73): undefined reference to `lua_settop'
    globals.cpp:(.text._ZN14TLuaFileSysLib19FILESYS_AddFileMaskEP9lua_State[TLuaFileSysLib::FILESYS_AddFileMask(lua_State*)]+0x8b): undefined reference to `lua_tolstring'
    globals.cpp:(.text._ZN14TLuaFileSysLib19FILESYS_AddFileMaskEP9lua_State[TLuaFileSysLib::FILESYS_AddFileMask(lua_State*)]+0xaf): undefined reference to `lua_settop'
    /tmp/ccrzjlbv.o: In function `TLuaFileSysLib::FILESYS_FileExists(lua_State*)':
    globals.cpp:(.text._ZN14TLuaFileSysLib18FILESYS_FileExistsEP9lua_State[TLuaFileSysLib::FILESYS_FileExists(lua_State*)]+0x2f): undefined reference to `lua_tolstring'
    globals.cpp:(.text._ZN14TLuaFileSysLib18FILESYS_FileExistsEP9lua_State[TLuaFileSysLib::FILESYS_FileExists(lua_State*)]+0x53): undefined reference to `lua_settop'
    globals.cpp:(.text._ZN14TLuaFileSysLib18FILESYS_FileExistsEP9lua_State[TLuaFileSysLib::FILESYS_FileExists(lua_State*)]+0x9c): undefined reference to `lua_pushnumber'
    globals.cpp:(.text._ZN14TLuaFileSysLib18FILESYS_FileExistsEP9lua_State[TLuaFileSysLib::FILESYS_FileExists(lua_State*)]+0xd2): undefined reference to `lua_pushnumber'
    /tmp/ccrzjlbv.o: In function `TLuaFileSysLib::FILESYS_GetListDirectoryEntry(lua_State*)':
    globals.cpp:(.text._ZN14TLuaFileSysLib29FILESYS_GetListDirectoryEntryEP9lua_State[TLuaFileSysLib::FILESYS_GetListDirectoryEntry(lua_State*)]+0x15): undefined reference to `lua_tonumber'
    globals.cpp:(.text._ZN14TLuaFileSysLib29FILESYS_GetListDirectoryEntryEP9lua_State[TLuaFileSysLib::FILESYS_GetListDirectoryEntry(lua_State*)]+0x45): undefined reference to `lua_settop'
    globals.cpp:(.text._ZN14TLuaFileSysLib29FILESYS_GetListDirectoryEntryEP9lua_State[TLuaFileSysLib::FILESYS_GetListDirectoryEntry(lua_State*)]+0x88): undefined reference to `lua_pushstring'
    /tmp/ccrzjlbv.o: In function `TLuaFileSysLib::FILESYS_MountWriteableHDDDir(lua_State*)':
    globals.cpp:(.text._ZN14TLuaFileSysLib28FILESYS_MountWriteableHDDDirEP9lua_State[TLuaFileSysLib::FILESYS_MountWriteableHDDDir(lua_State*)]+0x1f): undefined reference to `lua_tolstring'
    globals.cpp:(.text._ZN14TLuaFileSysLib28FILESYS_MountWriteableHDDDirEP9lua_State[TLuaFileSysLib::FILESYS_MountWriteableHDDDir(lua_State*)]+0x47): undefined reference to `lua_settop'
    globals.cpp:(.text._ZN14TLuaFileSysLib28FILESYS_MountWriteableHDDDirEP9lua_State[TLuaFileSysLib::FILESYS_MountWriteableHDDDir(lua_State*)]+0x5f): undefined reference to `lua_tolstring'
    globals.cpp:(.text._ZN14TLuaFileSysLib28FILESYS_MountWriteableHDDDirEP9lua_State[TLuaFileSysLib::FILESYS_MountWriteableHDDDir(lua_State*)]+0x87): undefined reference to `lua_settop'
    globals.cpp:(.text._ZN14TLuaFileSysLib28FILESYS_MountWriteableHDDDirEP9lua_State[TLuaFileSysLib::FILESYS_MountWriteableHDDDir(lua_State*)]+0x10c): undefined reference to `lua_pushnumber'
    /tmp/ccrzjlbv.o: In function `TLuaFileSysLib::FILESYS_MountHDDDir(lua_State*)':
    globals.cpp:(.text._ZN14TLuaFileSysLib19FILESYS_MountHDDDirEP9lua_State[TLuaFileSysLib::FILESYS_MountHDDDir(lua_State*)]+0x1f): undefined reference to `lua_tolstring'
    globals.cpp:(.text._ZN14TLuaFileSysLib19FILESYS_MountHDDDirEP9lua_State[TLuaFileSysLib::FILESYS_MountHDDDir(lua_State*)]+0x47): undefined reference to `lua_settop'
    globals.cpp:(.text._ZN14TLuaFileSysLib19FILESYS_MountHDDDirEP9lua_State[TLuaFileSysLib::FILESYS_MountHDDDir(lua_State*)]+0x5f): undefined reference to `lua_tolstring'
    globals.cpp:(.text._ZN14TLuaFileSysLib19FILESYS_MountHDDDirEP9lua_State[TLuaFileSysLib::FILESYS_MountHDDDir(lua_State*)]+0x87): undefined reference to `lua_settop'
    globals.cpp:(.text._ZN14TLuaFileSysLib19FILESYS_MountHDDDirEP9lua_State[TLuaFileSysLib::FILESYS_MountHDDDir(lua_State*)]+0x104): undefined reference to `lua_pushnumber'
    /tmp/ccrzjlbv.o: In function `TLuaFileSysLib::FILESYS_StartListDirectory(lua_State*)':
    globals.cpp:(.text._ZN14TLuaFileSysLib26FILESYS_StartListDirectoryEP9lua_State[TLuaFileSysLib::FILESYS_StartListDirectory(lua_State*)]+0x67): undefined reference to `lua_tolstring'
    globals.cpp:(.text._ZN14TLuaFileSysLib26FILESYS_StartListDirectoryEP9lua_State[TLuaFileSysLib::FILESYS_StartListDirectory(lua_State*)]+0x8b): undefined reference to `lua_settop'
    globals.cpp:(.text._ZN14TLuaFileSysLib26FILESYS_StartListDirectoryEP9lua_State[TLuaFileSysLib::FILESYS_StartListDirectory(lua_State*)]+0x9b): undefined reference to `lua_toboolean'
    globals.cpp:(.text._ZN14TLuaFileSysLib26FILESYS_StartListDirectoryEP9lua_State[TLuaFileSysLib::FILESYS_StartListDirectory(lua_State*)]+0xad): undefined reference to `lua_settop'
    globals.cpp:(.text._ZN14TLuaFileSysLib26FILESYS_StartListDirectoryEP9lua_State[TLuaFileSysLib::FILESYS_StartListDirectory(lua_State*)]+0xbd): undefined reference to `lua_toboolean'
    globals.cpp:(.text._ZN14TLuaFileSysLib26FILESYS_StartListDirectoryEP9lua_State[TLuaFileSysLib::FILESYS_StartListDirectory(lua_State*)]+0xd1): undefined reference to `lua_settop'
    globals.cpp:(.text._ZN14TLuaFileSysLib26FILESYS_StartListDirectoryEP9lua_State[TLuaFileSysLib::FILESYS_StartListDirectory(lua_State*)]+0xe1): undefined reference to `lua_toboolean'
    globals.cpp:(.text._ZN14TLuaFileSysLib26FILESYS_StartListDirectoryEP9lua_State[TLuaFileSysLib::FILESYS_StartListDirectory(lua_State*)]+0xf3): undefined reference to `lua_settop'
    globals.cpp:(.text._ZN14TLuaFileSysLib26FILESYS_StartListDirectoryEP9lua_State[TLuaFileSysLib::FILESYS_StartListDirectory(lua_State*)]+0x103): undefined reference to `lua_toboolean'
    globals.cpp:(.text._ZN14TLuaFileSysLib26FILESYS_StartListDirectoryEP9lua_State[TLuaFileSysLib::FILESYS_StartListDirectory(lua_State*)]+0x115): undefined reference to `lua_settop'
    globals.cpp:(.text._ZN14TLuaFileSysLib26FILESYS_StartListDirectoryEP9lua_State[TLuaFileSysLib::FILESYS_StartListDirectory(lua_State*)]+0x12d): undefined reference to `lua_tolstring'
    globals.cpp:(.text._ZN14TLuaFileSysLib26FILESYS_StartListDirectoryEP9lua_State[TLuaFileSysLib::FILESYS_StartListDirectory(lua_State*)]+0x155): undefined reference to `lua_settop'
    globals.cpp:(.text._ZN14TLuaFileSysLib26FILESYS_StartListDirectoryEP9lua_State[TLuaFileSysLib::FILESYS_StartListDirectory(lua_State*)]+0x21c): undefined reference to `lua_pushnumber'
    /tmp/ccrzjlbv.o: In function `TLuaFileSysLib::FILESYS_MountZip(lua_State*)':
    globals.cpp:(.text._ZN14TLuaFileSysLib16FILESYS_MountZipEP9lua_State[TLuaFileSysLib::FILESYS_MountZip(lua_State*)]+0x1f): undefined reference to `lua_tolstring'
    globals.cpp:(.text._ZN14TLuaFileSysLib16FILESYS_MountZipEP9lua_State[TLuaFileSysLib::FILESYS_MountZip(lua_State*)]+0x47): undefined reference to `lua_settop'
    globals.cpp:(.text._ZN14TLuaFileSysLib16FILESYS_MountZipEP9lua_State[TLuaFileSysLib::FILESYS_MountZip(lua_State*)]+0x5f): undefined reference to `lua_tolstring'
    globals.cpp:(.text._ZN14TLuaFileSysLib16FILESYS_MountZipEP9lua_State[TLuaFileSysLib::FILESYS_MountZip(lua_State*)]+0x87): undefined reference to `lua_settop'
    globals.cpp:(.text._ZN14TLuaFileSysLib16FILESYS_MountZipEP9lua_State[TLuaFileSysLib::FILESYS_MountZip(lua_State*)]+0x19a): undefined reference to `lua_pushnumber'
    /tmp/ccyewrmV.o: In function `DEVICE_GetVideoHeights(lua_State*)':
    glutils.cpp:(.text+0x14): undefined reference to `lua_tonumber'
    glutils.cpp:(.text+0x28): undefined reference to `lua_settop'
    glutils.cpp:(.text+0x60): undefined reference to `lua_pushnumber'
    /tmp/ccyewrmV.o: In function `DEVICE_GetVideoWidths(lua_State*)':
    glutils.cpp:(.text+0x84): undefined reference to `lua_tonumber'
    glutils.cpp:(.text+0x98): undefined reference to `lua_settop'
    glutils.cpp:(.text+0xd0): undefined reference to `lua_pushnumber'
    /tmp/ccyewrmV.o: In function `MATERIAL_SetMultiply(lua_State*)':
    glutils.cpp:(.text+0x14c): undefined reference to `lua_settop'
    /tmp/ccyewrmV.o: In function `LIGHT_Enable(lua_State*)':
    glutils.cpp:(.text+0x16b): undefined reference to `glEnable'
    /tmp/ccyewrmV.o: In function `LIGHT_Activate(lua_State*)':
    glutils.cpp:(.text+0x194): undefined reference to `lua_tonumber'
    glutils.cpp:(.text+0x1a8): undefined reference to `lua_settop'
    glutils.cpp:(.text+0x1d9): undefined reference to `glEnable'
    /tmp/ccyewrmV.o: In function `DEPTH_Enable(lua_State*)':
    glutils.cpp:(.text+0x1fb): undefined reference to `glEnable'
    /tmp/ccyewrmV.o: In function `BLEND_Activate(lua_State*)':
    glutils.cpp:(.text+0x21b): undefined reference to `glEnable'
    /tmp/ccyewrmV.o: In function `LIGHT_Disable(lua_State*)':
    glutils.cpp:(.text+0x23b): undefined reference to `glDisable'
    /tmp/ccyewrmV.o: In function `LIGHT_Deactivate(lua_State*)':
    glutils.cpp:(.text+0x264): undefined reference to `lua_tonumber'
    glutils.cpp:(.text+0x278): undefined reference to `lua_settop'
    glutils.cpp:(.text+0x2a9): undefined reference to `glDisable'
    /tmp/ccyewrmV.o: In function `DEPTH_Disable(lua_State*)':
    glutils.cpp:(.text+0x2cb): undefined reference to `glDisable'
    /tmp/ccyewrmV.o: In function `BLEND_Deactivate(lua_State*)':
    glutils.cpp:(.text+0x2eb): undefined reference to `glDisable'
    /tmp/ccyewrmV.o: In function `MATERIAL_SetSpecularPower(lua_State*)':
    glutils.cpp:(.text+0x314): undefined reference to `lua_tonumber'
    glutils.cpp:(.text+0x328): undefined reference to `lua_settop'
    glutils.cpp:(.text+0x362): undefined reference to `glMaterialf'
    /tmp/ccyewrmV.o: In function `MATERIAL_SetColor(lua_State*)':
    glutils.cpp:(.text+0x437): undefined reference to `lua_settop'
    glutils.cpp:(.text+0x443): undefined reference to `glColor4fv'
    /tmp/ccyewrmV.o: In function `MATERIAL_SetEmissive(lua_State*)':
    glutils.cpp:(.text+0x507): undefined reference to `lua_settop'
    glutils.cpp:(.text+0x523): undefined reference to `glMaterialfv'
    /tmp/ccyewrmV.o: In function `MATERIAL_SetSpecular(lua_State*)':
    glutils.cpp:(.text+0x5e7): undefined reference to `lua_settop'
    glutils.cpp:(.text+0x603): undefined reference to `glMaterialfv'
    /tmp/ccyewrmV.o: In function `MATERIAL_SetAmbient(lua_State*)':
    glutils.cpp:(.text+0x6c7): undefined reference to `lua_settop'
    glutils.cpp:(.text+0x6e3): undefined reference to `glMaterialfv'
    /tmp/ccyewrmV.o: In function `MATERIAL_SetDiffuse(lua_State*)':
    glutils.cpp:(.text+0x7ab): undefined reference to `lua_settop'
    glutils.cpp:(.text+0x7c3): undefined reference to `glMaterialfv'
    /tmp/ccyewrmV.o: In function `LIGHT_SetSpecular(lua_State*)':
    glutils.cpp:(.text+0x856): undefined reference to `lua_settop'
    glutils.cpp:(.text+0x866): undefined reference to `lua_tonumber'
    glutils.cpp:(.text+0x87a): undefined reference to `lua_settop'
    glutils.cpp:(.text+0x8bb): undefined reference to `glLightfv'
    /tmp/ccyewrmV.o: In function `LIGHT_SetDiffuse(lua_State*)':
    glutils.cpp:(.text+0x946): undefined reference to `lua_settop'
    glutils.cpp:(.text+0x956): undefined reference to `lua_tonumber'
    glutils.cpp:(.text+0x96a): undefined reference to `lua_settop'
    glutils.cpp:(.text+0x9ab): undefined reference to `glLightfv'
    /tmp/ccyewrmV.o: In function `LIGHT_SetAmbient(lua_State*)':
    glutils.cpp:(.text+0xa36): undefined reference to `lua_settop'
    glutils.cpp:(.text+0xa46): undefined reference to `lua_tonumber'
    glutils.cpp:(.text+0xa5a): undefined reference to `lua_settop'
    glutils.cpp:(.text+0xa9b): undefined reference to `glLightfv'
    /tmp/ccyewrmV.o: In function `LIGHT_SetPosition(lua_State*)':
    glutils.cpp:(.text+0xad7): undefined reference to `lua_tonumber'
    glutils.cpp:(.text+0xaeb): undefined reference to `lua_settop'
    glutils.cpp:(.text+0xb4c): undefined reference to `glLightfv'
    /tmp/ccyewrmV.o: In function `LIGHT_SetGlobalAmbient(lua_State*)':
    glutils.cpp:(.text+0xbd6): undefined reference to `lua_settop'
    glutils.cpp:(.text+0xbea): undefined reference to `glLightModelfv'
    /tmp/ccyewrmV.o: In function `DEVICE_Init(lua_State*)':
    glutils.cpp:(.text+0xc37): undefined reference to `lua_tonumber'
    glutils.cpp:(.text+0xc4b): undefined reference to `lua_settop'
    glutils.cpp:(.text+0xc5b): undefined reference to `lua_tonumber'
    glutils.cpp:(.text+0xc6f): undefined reference to `lua_settop'
    glutils.cpp:(.text+0xc7f): undefined reference to `lua_tonumber'
    glutils.cpp:(.text+0xc93): undefined reference to `lua_settop'
    glutils.cpp:(.text+0xca3): undefined reference to `lua_tonumber'
    glutils.cpp:(.text+0xcb7): undefined reference to `lua_settop'
    glutils.cpp:(.text+0xcc7): undefined reference to `lua_tonumber'
    glutils.cpp:(.text+0xcdb): undefined reference to `lua_settop'
    /tmp/ccyewrmV.o: In function `DEVICE_HasGLSL(lua_State*)':
    glutils.cpp:(.text+0xd84): undefined reference to `lua_pushnumber'
    /tmp/ccyewrmV.o: In function `DEVICE_Clear(lua_State*)':
    glutils.cpp:(.text+0xe24): undefined reference to `lua_settop'
    glutils.cpp:(.text+0xe48): undefined reference to `glClearColor'
    glutils.cpp:(.text+0xe54): undefined reference to `glClear'
    /tmp/ccyewrmV.o: In function `DEPTH_Clear(lua_State*)':
    glutils.cpp:(.text+0xe6b): undefined reference to `glClear'
    /tmp/ccyewrmV.o: In function `DEVICE_UnOrtho(lua_State*)':
    glutils.cpp:(.text+0xe8b): undefined reference to `glMatrixMode'
    glutils.cpp:(.text+0xe90): undefined reference to `glPopMatrix'
    glutils.cpp:(.text+0xe9c): undefined reference to `glMatrixMode'
    glutils.cpp:(.text+0xea1): undefined reference to `glPopMatrix'
    /tmp/ccyewrmV.o: In function `DEVICE_Ortho(lua_State*)':
    glutils.cpp:(.text+0xebb): undefined reference to `glMatrixMode'
    glutils.cpp:(.text+0xec0): undefined reference to `glPushMatrix'
    glutils.cpp:(.text+0xec5): undefined reference to `glLoadIdentity'
    glutils.cpp:(.text+0xef5): undefined reference to `glOrtho'
    glutils.cpp:(.text+0xf01): undefined reference to `glMatrixMode'
    glutils.cpp:(.text+0xf06): undefined reference to `glPushMatrix'
    glutils.cpp:(.text+0xf0b): undefined reference to `glLoadIdentity'
    /tmp/ccyewrmV.o: In function `DEVICE_Viewport(lua_State*)':
    glutils.cpp:(.text+0xf34): undefined reference to `lua_tonumber'
    glutils.cpp:(.text+0xf48): undefined reference to `lua_settop'
    glutils.cpp:(.text+0xf58): undefined reference to `lua_tonumber'
    glutils.cpp:(.text+0xf6c): undefined reference to `lua_settop'
    glutils.cpp:(.text+0xfb0): undefined reference to `glViewport'
    /tmp/ccyewrmV.o: In function `DEPTH_Mask(lua_State*)':
    glutils.cpp:(.text+0xfd4): undefined reference to `lua_tonumber'
    glutils.cpp:(.text+0xfe8): undefined reference to `lua_settop'
    glutils.cpp:(.text+0x1017): undefined reference to `glDepthMask'
    /tmp/ccyewrmV.o: In function `CULL_Mode(lua_State*)':
    glutils.cpp:(.text+0x1045): undefined reference to `lua_tonumber'
    glutils.cpp:(.text+0x1075): undefined reference to `lua_settop'
    glutils.cpp:(.text+0x1085): undefined reference to `glEnable'
    glutils.cpp:(.text+0x109a): undefined reference to `glCullFace'
    glutils.cpp:(.text+0x10a9): undefined reference to `glDisable'
    /tmp/ccyewrmV.o: In function `BLEND_Function(lua_State*)':
    glutils.cpp:(.text+0x10d4): undefined reference to `lua_tonumber'
    glutils.cpp:(.text+0x10e8): undefined reference to `lua_settop'
    glutils.cpp:(.text+0x10f8): undefined reference to `lua_tonumber'
    glutils.cpp:(.text+0x110c): undefined reference to `lua_settop'
    glutils.cpp:(.text+0x1140): undefined reference to `glBlendFunc'
    /tmp/ccyewrmV.o: In function `DEPTH_Offset(lua_State*)':
    glutils.cpp:(.text+0x1164): undefined reference to `lua_tonumber'
    glutils.cpp:(.text+0x1178): undefined reference to `lua_settop'
    glutils.cpp:(.text+0x1188): undefined reference to `lua_tonumber'
    glutils.cpp:(.text+0x11a4): undefined reference to `lua_settop'
    glutils.cpp:(.text+0x11de): undefined reference to `glEnable'
    glutils.cpp:(.text+0x11f2): undefined reference to `glPolygonOffset'
    glutils.cpp:(.text+0x1212): undefined reference to `glPolygonOffset'
    glutils.cpp:(.text+0x121e): undefined reference to `glDisable'
    /tmp/ccyewrmV.o: In function `DEVICE_SaveFramePic(lua_State*)':
    glutils.cpp:(.text+0x207b): undefined reference to `lua_tonumber'
    glutils.cpp:(.text+0x208f): undefined reference to `lua_settop'
    glutils.cpp:(.text+0x209f): undefined reference to `lua_tonumber'
    glutils.cpp:(.text+0x20b3): undefined reference to `lua_settop'
    glutils.cpp:(.text+0x20cb): undefined reference to `lua_tolstring'
    glutils.cpp:(.text+0x20ef): undefined reference to `lua_settop'
    /tmp/ccyewrmV.o: In function `GetModes(int, int)':
    glutils.cpp:(.text+0x37ce): undefined reference to `SDL_ListModes'
    /tmp/ccyewrmV.o: In function `DEVICE_GetVideoModes(lua_State*)':
    glutils.cpp:(.text+0x3a94): undefined reference to `lua_tonumber'
    glutils.cpp:(.text+0x3aa8): undefined reference to `lua_settop'
    glutils.cpp:(.text+0x3ab8): undefined reference to `lua_tonumber'
    glutils.cpp:(.text+0x3acc): undefined reference to `lua_settop'
    glutils.cpp:(.text+0x3b14): undefined reference to `lua_pushnumber'
    /tmp/ccyewrmV.o: In function `TLuaGLLib::LglFogParams(lua_State*)':
    glutils.cpp:(.text._ZN9TLuaGLLib12LglFogParamsEP9lua_State[TLuaGLLib::LglFogParams(lua_State*)]+0x14): undefined reference to `lua_tonumber'
    glutils.cpp:(.text._ZN9TLuaGLLib12LglFogParamsEP9lua_State[TLuaGLLib::LglFogParams(lua_State*)]+0x28): undefined reference to `lua_settop'
    glutils.cpp:(.text._ZN9TLuaGLLib12LglFogParamsEP9lua_State[TLuaGLLib::LglFogParams(lua_State*)]+0x38): undefined reference to `lua_tonumber'
    glutils.cpp:(.text._ZN9TLuaGLLib12LglFogParamsEP9lua_State[TLuaGLLib::LglFogParams(lua_State*)]+0x4c): undefined reference to `lua_settop'
    glutils.cpp:(.text._ZN9TLuaGLLib12LglFogParamsEP9lua_State[TLuaGLLib::LglFogParams(lua_State*)]+0x5c): undefined reference to `lua_tonumber'
    glutils.cpp:(.text._ZN9TLuaGLLib12LglFogParamsEP9lua_State[TLuaGLLib::LglFogParams(lua_State*)]+0x70): undefined reference to `lua_settop'
    glutils.cpp:(.text._ZN9TLuaGLLib12LglFogParamsEP9lua_State[TLuaGLLib::LglFogParams(lua_State*)]+0x84): undefined reference to `glFogf'
    glutils.cpp:(.text._ZN9TLuaGLLib12LglFogParamsEP9lua_State[TLuaGLLib::LglFogParams(lua_State*)]+0x98): undefined reference to `glFogf'
    glutils.cpp:(.text._ZN9TLuaGLLib12LglFogParamsEP9lua_State[TLuaGLLib::LglFogParams(lua_State*)]+0xac): undefined reference to `glFogf'
    /tmp/ccyewrmV.o: In function `TLuaGLLib::LglGetFogColor(lua_State*)':
    glutils.cpp:(.text._ZN9TLuaGLLib14LglGetFogColorEP9lua_State[TLuaGLLib::LglGetFogColor(lua_State*)]+0x18): undefined reference to `glGetFloatv'
    glutils.cpp:(.text._ZN9TLuaGLLib14LglGetFogColorEP9lua_State[TLuaGLLib::LglGetFogColor(lua_State*)]+0x54): undefined reference to `lua_createtable'
    glutils.cpp:(.text._ZN9TLuaGLLib14LglGetFogColorEP9lua_State[TLuaGLLib::LglGetFogColor(lua_State*)]+0x64): undefined reference to `lua_pushstring'
    glutils.cpp:(.text._ZN9TLuaGLLib14LglGetFogColorEP9lua_State[TLuaGLLib::LglGetFogColor(lua_State*)]+0x74): undefined reference to `lua_pushnumber'
    glutils.cpp:(.text._ZN9TLuaGLLib14LglGetFogColorEP9lua_State[TLuaGLLib::LglGetFogColor(lua_State*)]+0x84): undefined reference to `lua_settable'
    glutils.cpp:(.text._ZN9TLuaGLLib14LglGetFogColorEP9lua_State[TLuaGLLib::LglGetFogColor(lua_State*)]+0x94): undefined reference to `lua_pushstring'
    glutils.cpp:(.text._ZN9TLuaGLLib14LglGetFogColorEP9lua_State[TLuaGLLib::LglGetFogColor(lua_State*)]+0xa4): undefined reference to `lua_pushnumber'
    glutils.cpp:(.text._ZN9TLuaGLLib14LglGetFogColorEP9lua_State[TLuaGLLib::LglGetFogColor(lua_State*)]+0xb4): undefined reference to `lua_settable'
    glutils.cpp:(.text._ZN9TLuaGLLib14LglGetFogColorEP9lua_State[TLuaGLLib::LglGetFogColor(lua_State*)]+0xc4): undefined reference to `lua_pushstring'
    glutils.cpp:(.text._ZN9TLuaGLLib14LglGetFogColorEP9lua_State[TLuaGLLib::LglGetFogColor(lua_State*)]+0xd4): undefined reference to `lua_pushnumber'
    glutils.cpp:(.text._ZN9TLuaGLLib14LglGetFogColorEP9lua_State[TLuaGLLib::LglGetFogColor(lua_State*)]+0xe4): undefined reference to `lua_settable'
    glutils.cpp:(.text._ZN9TLuaGLLib14LglGetFogColorEP9lua_State[TLuaGLLib::LglGetFogColor(lua_State*)]+0xf4): undefined reference to `lua_pushstring'
    glutils.cpp:(.text._ZN9TLuaGLLib14LglGetFogColorEP9lua_State[TLuaGLLib::LglGetFogColor(lua_State*)]+0x104): undefined reference to `lua_pushnumber'
    glutils.cpp:(.text._ZN9TLuaGLLib14LglGetFogColorEP9lua_State[TLuaGLLib::LglGetFogColor(lua_State*)]+0x114): undefined reference to `lua_settable'
    /tmp/ccyewrmV.o: In function `TLuaGLLib::LglFogColor(lua_State*)':
    glutils.cpp:(.text._ZN9TLuaGLLib11LglFogColorEP9lua_State[TLuaGLLib::LglFogColor(lua_State*)]+0x64): undefined reference to `lua_settop'
    glutils.cpp:(.text._ZN9TLuaGLLib11LglFogColorEP9lua_State[TLuaGLLib::LglFogColor(lua_State*)]+0x78): undefined reference to `glFogfv'
    /tmp/ccyewrmV.o: In function `TLuaGLLib::LglCallList(lua_State*)':
    glutils.cpp:(.text._ZN9TLuaGLLib11LglCallListEP9lua_State[TLuaGLLib::LglCallList(lua_State*)]+0x14): undefined reference to `lua_tonumber'
    glutils.cpp:(.text._ZN9TLuaGLLib11LglCallListEP9lua_State[TLuaGLLib::LglCallList(lua_State*)]+0x28): undefined reference to `lua_settop'
    glutils.cpp:(.text._ZN9TLuaGLLib11LglCallListEP9lua_State[TLuaGLLib::LglCallList(lua_State*)]+0x4c): undefined reference to `glCallList'
    /tmp/ccyewrmV.o: In function `TLuaGLLib::LglEndListCompile(lua_State*)':
    glutils.cpp:(.text._ZN9TLuaGLLib17LglEndListCompileEP9lua_State[TLuaGLLib::LglEndListCompile(lua_State*)]+0x4): undefined reference to `glEndList'
    /tmp/ccyewrmV.o: In function `TLuaGLLib::LglBeginListCompile(lua_State*)':
    glutils.cpp:(.text._ZN9TLuaGLLib19LglBeginListCompileEP9lua_State[TLuaGLLib::LglBeginListCompile(lua_State*)]+0x14): undefined reference to `lua_tonumber'
    glutils.cpp:(.text._ZN9TLuaGLLib19LglBeginListCompileEP9lua_State[TLuaGLLib::LglBeginListCompile(lua_State*)]+0x28): undefined reference to `lua_settop'
    glutils.cpp:(.text._ZN9TLuaGLLib19LglBeginListCompileEP9lua_State[TLuaGLLib::LglBeginListCompile(lua_State*)]+0x54): undefined reference to `glNewList'
    /tmp/ccyewrmV.o: In function `TLuaGLLib::LglDeleteLists(lua_State*)':
    glutils.cpp:(.text._ZN9TLuaGLLib14LglDeleteListsEP9lua_State[TLuaGLLib::LglDeleteLists(lua_State*)]+0x14): undefined reference to `lua_tonumber'
    glutils.cpp:(.text._ZN9TLuaGLLib14LglDeleteListsEP9lua_State[TLuaGLLib::LglDeleteLists(lua_State*)]+0x28): undefined reference to `lua_settop'
    glutils.cpp:(.text._ZN9TLuaGLLib14LglDeleteListsEP9lua_State[TLuaGLLib::LglDeleteLists(lua_State*)]+0x38): undefined reference to `lua_tonumber'
    glutils.cpp:(.text._ZN9TLuaGLLib14LglDeleteListsEP9lua_State[TLuaGLLib::LglDeleteLists(lua_State*)]+0x4c): undefined reference to `lua_settop'
    glutils.cpp:(.text._ZN9TLuaGLLib14LglDeleteListsEP9lua_State[TLuaGLLib::LglDeleteLists(lua_State*)]+0x80): undefined reference to `glDeleteLists'
    /tmp/ccyewrmV.o: In function `TLuaGLLib::LglGenLists(lua_State*)':
    glutils.cpp:(.text._ZN9TLuaGLLib11LglGenListsEP9lua_State[TLuaGLLib::LglGenLists(lua_State*)]+0x14): undefined reference to `lua_tonumber'
    glutils.cpp:(.text._ZN9TLuaGLLib11LglGenListsEP9lua_State[TLuaGLLib::LglGenLists(lua_State*)]+0x28): undefined reference to `lua_settop'
    glutils.cpp:(.text._ZN9TLuaGLLib11LglGenListsEP9lua_State[TLuaGLLib::LglGenLists(lua_State*)]+0x4c): undefined reference to `glGenLists'
    glutils.cpp:(.text._ZN9TLuaGLLib11LglGenListsEP9lua_State[TLuaGLLib::LglGenLists(lua_State*)]+0x60): undefined reference to `lua_pushnumber'
    /tmp/ccyewrmV.o: In function `TLuaGLLib::LglTexCoord2f(lua_State*)':
    glutils.cpp:(.text._ZN9TLuaGLLib13LglTexCoord2fEP9lua_State[TLuaGLLib::LglTexCoord2f(lua_State*)]+0x14): undefined reference to `lua_tonumber'
    glutils.cpp:(.text._ZN9TLuaGLLib13LglTexCoord2fEP9lua_State[TLuaGLLib::LglTexCoord2f(lua_State*)]+0x28): undefined reference to `lua_settop'
    glutils.cpp:(.text._ZN9TLuaGLLib13LglTexCoord2fEP9lua_State[TLuaGLLib::LglTexCoord2f(lua_State*)]+0x38): undefined reference to `lua_tonumber'
    glutils.cpp:(.text._ZN9TLuaGLLib13LglTexCoord2fEP9lua_State[TLuaGLLib::LglTexCoord2f(lua_State*)]+0x4c): undefined reference to `lua_settop'
    glutils.cpp:(.text._ZN9TLuaGLLib13LglTexCoord2fEP9lua_State[TLuaGLLib::LglTexCoord2f(lua_State*)]+0x60): undefined reference to `glTexCoord2f'
    /tmp/ccyewrmV.o: In function `TLuaGLLib::LglVertex3f(lua_State*)':
    glutils.cpp:(.text._ZN9TLuaGLLib11LglVertex3fEP9lua_State[TLuaGLLib::LglVertex3f(lua_State*)]+0x14): undefined reference to `lua_tonumber'
    glutils.cpp:(.text._ZN9TLuaGLLib11LglVertex3fEP9lua_State[TLuaGLLib::LglVertex3f(lua_State*)]+0x28): undefined reference to `lua_settop'
    glutils.cpp:(.text._ZN9TLuaGLLib11LglVertex3fEP9lua_State[TLuaGLLib::LglVertex3f(lua_State*)]+0x38): undefined reference to `lua_tonumber'
    glutils.cpp:(.text._ZN9TLuaGLLib11LglVertex3fEP9lua_State[TLuaGLLib::LglVertex3f(lua_State*)]+0x4c): undefined reference to `lua_settop'
    glutils.cpp:(.text._ZN9TLuaGLLib11LglVertex3fEP9lua_State[TLuaGLLib::LglVertex3f(lua_State*)]+0x5c): undefined reference to `lua_tonumber'
    glutils.cpp:(.text._ZN9TLuaGLLib11LglVertex3fEP9lua_State[TLuaGLLib::LglVertex3f(lua_State*)]+0x70): undefined reference to `lua_settop'
    glutils.cpp:(.text._ZN9TLuaGLLib11LglVertex3fEP9lua_State[TLuaGLLib::LglVertex3f(lua_State*)]+0x8c): undefined reference to `glVertex3f'
    /tmp/ccyewrmV.o: In function `TLuaGLLib::LglVertex2f(lua_State*)':
    glutils.cpp:(.text._ZN9TLuaGLLib11LglVertex2fEP9lua_State[TLuaGLLib::LglVertex2f(lua_State*)]+0x14): undefined reference to `lua_tonumber'
    glutils.cpp:(.text._ZN9TLuaGLLib11LglVertex2fEP9lua_State[TLuaGLLib::LglVertex2f(lua_State*)]+0x28): undefined reference to `lua_settop'
    glutils.cpp:(.text._ZN9TLuaGLLib11LglVertex2fEP9lua_State[TLuaGLLib::LglVertex2f(lua_State*)]+0x38): undefined reference to `lua_tonumber'
    glutils.cpp:(.text._ZN9TLuaGLLib11LglVertex2fEP9lua_State[TLuaGLLib::LglVertex2f(lua_State*)]+0x4c): undefined reference to `lua_settop'
    glutils.cpp:(.text._ZN9TLuaGLLib11LglVertex2fEP9lua_State[TLuaGLLib::LglVertex2f(lua_State*)]+0x60): undefined reference to `glVertex2f'
    /tmp/ccyewrmV.o: In function `TLuaGLLib::LglVertex(lua_State*)':
    glutils.cpp:(.text._ZN9TLuaGLLib9LglVertexEP9lua_State[TLuaGLLib::LglVertex(lua_State*)]+0x32): undefined reference to `glVertex3f'
    /tmp/ccyewrmV.o: In function `TLuaGLLib::LglNormal3f(lua_State*)':
    glutils.cpp:(.text._ZN9TLuaGLLib11LglNormal3fEP9lua_State[TLuaGLLib::LglNormal3f(lua_State*)]+0x14): undefined reference to `lua_tonumber'
    glutils.cpp:(.text._ZN9TLuaGLLib11LglNormal3fEP9lua_State[TLuaGLLib::LglNormal3f(lua_State*)]+0x28): undefined reference to `lua_settop'
    glutils.cpp:(.text._ZN9TLuaGLLib11LglNormal3fEP9lua_State[TLuaGLLib::LglNormal3f(lua_State*)]+0x38): undefined reference to `lua_tonumber'
    glutils.cpp:(.text._ZN9TLuaGLLib11LglNormal3fEP9lua_State[TLuaGLLib::LglNormal3f(lua_State*)]+0x4c): undefined reference to `lua_settop'
    glutils.cpp:(.text._ZN9TLuaGLLib11LglNormal3fEP9lua_State[TLuaGLLib::LglNormal3f(lua_State*)]+0x5c): undefined reference to `lua_tonumber'
    glutils.cpp:(.text._ZN9TLuaGLLib11LglNormal3fEP9lua_State[TLuaGLLib::LglNormal3f(lua_State*)]+0x70): undefined reference to `lua_settop'
    glutils.cpp:(.text._ZN9TLuaGLLib11LglNormal3fEP9lua_State[TLuaGLLib::LglNormal3f(lua_State*)]+0x8c): undefined reference to `glNormal3f'
    /tmp/ccyewrmV.o: In function `TLuaGLLib::LglNormal(lua_State*)':
    glutils.cpp:(.text._ZN9TLuaGLLib9LglNormalEP9lua_State[TLuaGLLib::LglNormal(lua_State*)]+0x32): undefined reference to `glNormal3f'
    /tmp/ccyewrmV.o: In function `TLuaGLLib::LglEnd(lua_State*)':
    glutils.cpp:(.text._ZN9TLuaGLLib6LglEndEP9lua_State[TLuaGLLib::LglEnd(lua_State*)]+0x4): undefined reference to `glEnd'
    /tmp/ccyewrmV.o: In function `TLuaGLLib::LglFogMode(lua_State*)':
    glutils.cpp:(.text._ZN9TLuaGLLib10LglFogModeEP9lua_State[TLuaGLLib::LglFogMode(lua_State*)]+0x21): undefined reference to `lua_tolstring'
    glutils.cpp:(.text._ZN9TLuaGLLib10LglFogModeEP9lua_State[TLuaGLLib::LglFogMode(lua_State*)]+0x45): undefined reference to `lua_settop'
    glutils.cpp:(.text._ZN9TLuaGLLib10LglFogModeEP9lua_State[TLuaGLLib::LglFogMode(lua_State*)]+0x65): undefined reference to `glEnable'
    glutils.cpp:(.text._ZN9TLuaGLLib10LglFogModeEP9lua_State[TLuaGLLib::LglFogMode(lua_State*)]+0x79): undefined reference to `glHint'
    glutils.cpp:(.text._ZN9TLuaGLLib10LglFogModeEP9lua_State[TLuaGLLib::LglFogMode(lua_State*)]+0x8d): undefined reference to `glFogf'
    glutils.cpp:(.text._ZN9TLuaGLLib10LglFogModeEP9lua_State[TLuaGLLib::LglFogMode(lua_State*)]+0xcc): undefined reference to `glEnable'
    glutils.cpp:(.text._ZN9TLuaGLLib10LglFogModeEP9lua_State[TLuaGLLib::LglFogMode(lua_State*)]+0xe0): undefined reference to `glHint'
    glutils.cpp:(.text._ZN9TLuaGLLib10LglFogModeEP9lua_State[TLuaGLLib::LglFogMode(lua_State*)]+0xf4): undefined reference to `glFogf'
    glutils.cpp:(.text._ZN9TLuaGLLib10LglFogModeEP9lua_State[TLuaGLLib::LglFogMode(lua_State*)]+0x11c): undefined reference to `glEnable'
    glutils.cpp:(.text._ZN9TLuaGLLib10LglFogModeEP9lua_State[TLuaGLLib::LglFogMode(lua_State*)]+0x130): undefined reference to `glHint'
    glutils.cpp:(.text._ZN9TLuaGLLib10LglFogModeEP9lua_State[TLuaGLLib::LglFogMode(lua_State*)]+0x144): undefined reference to `glFogf'
    glutils.cpp:(.text._ZN9TLuaGLLib10LglFogModeEP9lua_State[TLuaGLLib::LglFogMode(lua_State*)]+0x151): undefined reference to `glDisable'
    /tmp/ccyewrmV.o: In function `TLuaGLLib::LglBegin(lua_State*)':
    glutils.cpp:(.text._ZN9TLuaGLLib8LglBeginEP9lua_State[TLuaGLLib::LglBegin(lua_State*)]+0x21): undefined reference to `lua_tolstring'
    glutils.cpp:(.text._ZN9TLuaGLLib8LglBeginEP9lua_State[TLuaGLLib::LglBegin(lua_State*)]+0x45): undefined reference to `lua_settop'
    glutils.cpp:(.text._ZN9TLuaGLLib8LglBeginEP9lua_State[TLuaGLLib::LglBegin(lua_State*)]+0x7c): undefined reference to `glBegin'
    /tmp/ccSinipq.o: In function `TJoystick::Name()':
    joystick.cpp:(.text+0x1a3): undefined reference to `SDL_JoystickName'
    /tmp/ccSinipq.o: In function `TJoystick::GetAxis(int)':
    joystick.cpp:(.text+0x226): undefined reference to `SDL_JoystickGetAxis'
    /tmp/ccSinipq.o: In function `TJoystick::GetButton(int)':
    joystick.cpp:(.text+0x286): undefined reference to `SDL_JoystickGetButton'
    /tmp/ccSinipq.o: In function `TJoystick::HandleKeys()':
    joystick.cpp:(.text+0x305): undefined reference to `SDL_JoystickNumAxes'
    joystick.cpp:(.text+0x328): undefined reference to `SDL_JoystickGetAxis'
    joystick.cpp:(.text+0x453): undefined reference to `SDL_JoystickNumButtons'
    joystick.cpp:(.text+0x472): undefined reference to `SDL_JoystickGetButton'
    /tmp/ccSinipq.o: In function `TJoystick::~TJoystick()':
    joystick.cpp:(.text+0x5e3): undefined reference to `SDL_JoystickClose'
    /tmp/ccSinipq.o: In function `TJoystick::TJoystick(int, TJoystickServer*)':
    joystick.cpp:(.text+0x750): undefined reference to `SDL_JoystickOpen'
    joystick.cpp:(.text+0x804): undefined reference to `SDL_JoystickNumAxes'
    joystick.cpp:(.text+0x831): undefined reference to `SDL_JoystickGetAxis'
    joystick.cpp:(.text+0x920): undefined reference to `SDL_JoystickNumButtons'
    joystick.cpp:(.text+0x949): undefined reference to `SDL_JoystickGetButton'
    /tmp/ccSinipq.o: In function `TJoystickServer::Initialize()':
    joystick.cpp:(.text+0xb08): undefined reference to `SDL_NumJoysticks'
    joystick.cpp:(.text+0xd8a): undefined reference to `SDL_JoystickName'
    joystick.cpp:(.text+0xf6a): undefined reference to `SDL_JoystickName'
    /tmp/ccSinipq.o: In function `TJoystick::NumAxes()':
    joystick.cpp:(.text+0x2ac): undefined reference to `SDL_JoystickNumAxes'
    /tmp/ccSinipq.o: In function `TJoystick::NumButtons()':
    joystick.cpp:(.text+0x2bc): undefined reference to `SDL_JoystickNumButtons'
    /tmp/ccSinipq.o: In function `TJoystickServer::NumJoysticks()':
    joystick.cpp:(.text+0x5c1): undefined reference to `SDL_NumJoysticks'
    /tmp/ccesCCT2.o: In function `KEYB_GetKeyConst(lua_State*)':
    keyboard.cpp:(.text+0xe72): undefined reference to `lua_tolstring'
    keyboard.cpp:(.text+0xe96): undefined reference to `lua_settop'
    keyboard.cpp:(.text+0xeec): undefined reference to `lua_pushnumber'
    /tmp/ccesCCT2.o: In function `TKeyboard::StartTextInput()':
    keyboard.cpp:(.text+0x201b): undefined reference to `SDL_EnableUNICODE'
    /tmp/ccesCCT2.o: In function `TKeyboard::StopTextInput()':
    keyboard.cpp:(.text+0x203b): undefined reference to `SDL_EnableUNICODE'
    /tmp/ccesCCT2.o: In function `KEYB_GetKeyName(lua_State*)':
    keyboard.cpp:(.text+0x3049): undefined reference to `lua_tonumber'
    keyboard.cpp:(.text+0x305d): undefined reference to `lua_settop'
    keyboard.cpp:(.text+0x30a9): undefined reference to `lua_pushstring'
    /tmp/ccesCCT2.o: In function `TKeyboard::Init()':
    keyboard.cpp:(.text+0x41f5): undefined reference to `SDL_GetKeyState'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::ARGS_Count(lua_State*)':
    luautils.cpp:(.text+0xfc): undefined reference to `lua_pushnumber'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::GLOBAL_GetScale(lua_State*)':
    luautils.cpp:(.text+0x125): undefined reference to `lua_pushnumber'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::CONFIG_Close(lua_State*)':
    luautils.cpp:(.text+0x214): undefined reference to `lua_tonumber'
    luautils.cpp:(.text+0x228): undefined reference to `lua_settop'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::SCORE_Close(lua_State*)':
    luautils.cpp:(.text+0x274): undefined reference to `lua_tonumber'
    luautils.cpp:(.text+0x288): undefined reference to `lua_settop'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::SAVE_Close(lua_State*)':
    luautils.cpp:(.text+0x2d4): undefined reference to `lua_tonumber'
    luautils.cpp:(.text+0x2e8): undefined reference to `lua_settop'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::LOG_GetVerboseMode(lua_State*)':
    luautils.cpp:(.text+0x33c): undefined reference to `lua_pushnumber'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::GLOBAL_GetFPS(lua_State*)':
    luautils.cpp:(.text+0x394): undefined reference to `lua_pushnumber'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::GLOBAL_SetMinFrames(lua_State*)':
    luautils.cpp:(.text+0x3c4): undefined reference to `lua_tonumber'
    luautils.cpp:(.text+0x3d8): undefined reference to `lua_settop'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::GLOBAL_SetMaxElapsed(lua_State*)':
    luautils.cpp:(.text+0x414): undefined reference to `lua_tonumber'
    luautils.cpp:(.text+0x428): undefined reference to `lua_settop'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::GLOBAL_GetElapsed(lua_State*)':
    luautils.cpp:(.text+0x46c): undefined reference to `lua_pushnumber'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::GLOBAL_GetTime(lua_State*)':
    luautils.cpp:(.text+0x49c): undefined reference to `lua_pushnumber'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::LOG_SetVerboseMode(lua_State*)':
    luautils.cpp:(.text+0x4c4): undefined reference to `lua_tonumber'
    luautils.cpp:(.text+0x4d8): undefined reference to `lua_settop'
    /tmp/ccfhWVaV.o: In function `TLuaAccess::LoadStdLibs()':
    luautils.cpp:(.text+0x523): undefined reference to `luaopen_base'
    luautils.cpp:(.text+0x52e): undefined reference to `luaopen_table'
    luautils.cpp:(.text+0x539): undefined reference to `luaopen_string'
    luautils.cpp:(.text+0x544): undefined reference to `luaopen_math'
    /tmp/ccfhWVaV.o: In function `TLuaAccess::~TLuaAccess()':
    luautils.cpp:(.text+0x7a5): undefined reference to `lua_close'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::SCORE_Write(lua_State*)':
    luautils.cpp:(.text+0x80f): undefined reference to `lua_tolstring'
    luautils.cpp:(.text+0x837): undefined reference to `lua_settop'
    luautils.cpp:(.text+0x847): undefined reference to `lua_tonumber'
    luautils.cpp:(.text+0x85b): undefined reference to `lua_settop'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::DEBUG(lua_State*)':
    luautils.cpp:(.text+0xa9d): undefined reference to `glGetMaterialfv'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::LOG_Mode(lua_State*)':
    luautils.cpp:(.text+0xbec): undefined reference to `lua_tonumber'
    luautils.cpp:(.text+0xc1a): undefined reference to `lua_settop'
    /tmp/ccfhWVaV.o: In function `TLuaVarHolder::StoreVar(lua_State*)':
    luautils.cpp:(.text+0x2047): undefined reference to `lua_tolstring'
    luautils.cpp:(.text+0x206b): undefined reference to `lua_remove'
    luautils.cpp:(.text+0x207b): undefined reference to `lua_type'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::TRANS_StrD(lua_State*)':
    luautils.cpp:(.text+0x22f3): undefined reference to `lua_tolstring'
    luautils.cpp:(.text+0x2317): undefined reference to `lua_settop'
    luautils.cpp:(.text+0x232f): undefined reference to `lua_tolstring'
    luautils.cpp:(.text+0x2357): undefined reference to `lua_settop'
    luautils.cpp:(.text+0x23a5): undefined reference to `lua_pushstring'
    luautils.cpp:(.text+0x23fc): undefined reference to `lua_pushstring'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::TRANS_Str(lua_State*)':
    luautils.cpp:(.text+0x2533): undefined reference to `lua_tolstring'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::ARGS_Val(lua_State*)':
    luautils.cpp:(.text+0x2669): undefined reference to `lua_tonumber'
    luautils.cpp:(.text+0x267d): undefined reference to `lua_settop'
    luautils.cpp:(.text+0x26b8): undefined reference to `lua_pushstring'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::ARGS_Key(lua_State*)':
    luautils.cpp:(.text+0x2739): undefined reference to `lua_tonumber'
    luautils.cpp:(.text+0x274d): undefined reference to `lua_settop'
    luautils.cpp:(.text+0x2788): undefined reference to `lua_pushstring'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::DIR_GetProfileDir(lua_State*)':
    luautils.cpp:(.text+0x2b23): undefined reference to `lua_pushstring'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::DIR_GetDataDir(lua_State*)':
    luautils.cpp:(.text+0x2bb3): undefined reference to `lua_pushstring'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::CONFIG_Open(lua_State*)':
    luautils.cpp:(.text+0x2c4f): undefined reference to `lua_tolstring'
    luautils.cpp:(.text+0x2c73): undefined reference to `lua_settop'
    luautils.cpp:(.text+0x2d12): undefined reference to `lua_pushnumber'
    luautils.cpp:(.text+0x2d4a): undefined reference to `lua_pushnumber'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::CONFIG_Load(lua_State*)':
    luautils.cpp:(.text+0x2e13): undefined reference to `lua_tolstring'
    luautils.cpp:(.text+0x2e37): undefined reference to `lua_settop'
    luautils.cpp:(.text+0x2eef): undefined reference to `luaL_loadfile'
    luautils.cpp:(.text+0x2f09): undefined reference to `lua_pushnumber'
    luautils.cpp:(.text+0x2f22): undefined reference to `lua_pushnumber'
    luautils.cpp:(.text+0x2f64): undefined reference to `lua_pcall'
    luautils.cpp:(.text+0x2f7a): undefined reference to `lua_pushnumber'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::USING(lua_State*)':
    luautils.cpp:(.text+0x3043): undefined reference to `lua_tolstring'
    luautils.cpp:(.text+0x3067): undefined reference to `lua_settop'
    luautils.cpp:(.text+0x30ac): undefined reference to `lua_pushcclosure'
    luautils.cpp:(.text+0x30c5): undefined reference to `lua_setfield'
    luautils.cpp:(.text+0x313c): undefined reference to `lua_pushcclosure'
    luautils.cpp:(.text+0x3155): undefined reference to `lua_setfield'
    luautils.cpp:(.text+0x31b4): undefined reference to `lua_pushcclosure'
    luautils.cpp:(.text+0x31cd): undefined reference to `lua_setfield'
    luautils.cpp:(.text+0x3234): undefined reference to `lua_pushcclosure'
    luautils.cpp:(.text+0x324d): undefined reference to `lua_setfield'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::MOD_GetName(lua_State*)':
    luautils.cpp:(.text+0x32e3): undefined reference to `lua_pushstring'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::MOD_SetName(lua_State*)':
    luautils.cpp:(.text+0x3371): undefined reference to `lua_tolstring'
    luautils.cpp:(.text+0x3395): undefined reference to `lua_settop'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::SCORE_Open(lua_State*)':
    luautils.cpp:(.text+0x349f): undefined reference to `lua_tolstring'
    luautils.cpp:(.text+0x34c3): undefined reference to `lua_settop'
    luautils.cpp:(.text+0x3562): undefined reference to `lua_pushnumber'
    luautils.cpp:(.text+0x359a): undefined reference to `lua_pushnumber'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::SAVE_Load(lua_State*)':
    luautils.cpp:(.text+0x3663): undefined reference to `lua_tolstring'
    luautils.cpp:(.text+0x3687): undefined reference to `lua_settop'
    luautils.cpp:(.text+0x3762): undefined reference to `luaL_loadfile'
    luautils.cpp:(.text+0x3774): undefined reference to `lua_pushnumber'
    luautils.cpp:(.text+0x378a): undefined reference to `lua_pushnumber'
    luautils.cpp:(.text+0x37cc): undefined reference to `lua_pcall'
    luautils.cpp:(.text+0x37da): undefined reference to `lua_pushnumber'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::SAVE_Write(lua_State*)':
    luautils.cpp:(.text+0x38f1): undefined reference to `lua_tolstring'
    luautils.cpp:(.text+0x3915): undefined reference to `lua_settop'
    luautils.cpp:(.text+0x3925): undefined reference to `lua_tonumber'
    luautils.cpp:(.text+0x3939): undefined reference to `lua_settop'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::SAVE_Open(lua_State*)':
    luautils.cpp:(.text+0x39ff): undefined reference to `lua_tolstring'
    luautils.cpp:(.text+0x3a23): undefined reference to `lua_settop'
    luautils.cpp:(.text+0x3ac2): undefined reference to `lua_pushnumber'
    luautils.cpp:(.text+0x3afa): undefined reference to `lua_pushnumber'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::SCORE_Load(lua_State*)':
    luautils.cpp:(.text+0x3bc3): undefined reference to `lua_tolstring'
    luautils.cpp:(.text+0x3be7): undefined reference to `lua_settop'
    luautils.cpp:(.text+0x3c9f): undefined reference to `luaL_loadfile'
    luautils.cpp:(.text+0x3cb9): undefined reference to `lua_pushnumber'
    luautils.cpp:(.text+0x3cd2): undefined reference to `lua_pushnumber'
    luautils.cpp:(.text+0x3d14): undefined reference to `lua_pcall'
    luautils.cpp:(.text+0x3d2a): undefined reference to `lua_pushnumber'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::SCORE_VarDefined(lua_State*)':
    luautils.cpp:(.text+0x3dff): undefined reference to `lua_tolstring'
    luautils.cpp:(.text+0x3e23): undefined reference to `lua_settop'
    luautils.cpp:(.text+0x3e6b): undefined reference to `lua_pushnumber'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::GLOBAL_VarDefined(lua_State*)':
    luautils.cpp:(.text+0x3f5f): undefined reference to `lua_tolstring'
    luautils.cpp:(.text+0x3f83): undefined reference to `lua_settop'
    luautils.cpp:(.text+0x3fcb): undefined reference to `lua_pushnumber'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::GLOBAL_StartDeveloperMode(lua_State*)':
    luautils.cpp:(.text+0x40b2): undefined reference to `lua_tolstring'
    luautils.cpp:(.text+0x40d6): undefined reference to `lua_settop'
    /tmp/ccfhWVaV.o: In function `TLuaAccess::~TLuaAccess()':
    luautils.cpp:(.text+0x41e5): undefined reference to `lua_close'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::CONFIG_Write(lua_State*)':
    luautils.cpp:(.text+0x426f): undefined reference to `lua_tolstring'
    luautils.cpp:(.text+0x4297): undefined reference to `lua_settop'
    luautils.cpp:(.text+0x42a7): undefined reference to `lua_tonumber'
    luautils.cpp:(.text+0x42bb): undefined reference to `lua_settop'
    /tmp/ccfhWVaV.o: In function `lua_doCuboFile(lua_State*, cls_FileReadable*)':
    luautils.cpp:(.text+0x4618): undefined reference to `luaL_loadfile'
    luautils.cpp:(.text+0x4640): undefined reference to `lua_pcall'
    luautils.cpp:(.text+0x46ba): undefined reference to `luaL_loadbuffer'
    luautils.cpp:(.text+0x46e2): undefined reference to `lua_pcall'
    /tmp/ccfhWVaV.o: In function `TLuaAccess::TLuaAccess()':
    luautils.cpp:(.text+0x4759): undefined reference to `luaL_newstate'
    luautils.cpp:(.text+0x4768): undefined reference to `luaopen_base'
    luautils.cpp:(.text+0x4773): undefined reference to `luaopen_table'
    luautils.cpp:(.text+0x477e): undefined reference to `luaopen_string'
    luautils.cpp:(.text+0x4789): undefined reference to `luaopen_math'
    luautils.cpp:(.text+0x4794): undefined reference to `luaopen_os'
    /tmp/ccfhWVaV.o: In function `TLuaAccess::Reset()':
    luautils.cpp:(.text+0x47ef): undefined reference to `lua_close'
    luautils.cpp:(.text+0x47f4): undefined reference to `luaL_newstate'
    /tmp/ccfhWVaV.o: In function `TLuaAccess::PushInt(int)':
    luautils.cpp:(.text+0x4856): undefined reference to `lua_pushnumber'
    /tmp/ccfhWVaV.o: In function `TLuaAccess::PopInt()':
    luautils.cpp:(.text+0x4877): undefined reference to `lua_tonumber'
    luautils.cpp:(.text+0x488e): undefined reference to `lua_settop'
    /tmp/ccfhWVaV.o: In function `TLuaAccess::PopFloat()':
    luautils.cpp:(.text+0x48e7): undefined reference to `lua_tonumber'
    luautils.cpp:(.text+0x48fe): undefined reference to `lua_settop'
    /tmp/ccfhWVaV.o: In function `TLuaAccess::PopString()':
    luautils.cpp:(.text+0x4954): undefined reference to `lua_tolstring'
    luautils.cpp:(.text+0x497b): undefined reference to `lua_settop'
    /tmp/ccfhWVaV.o: In function `TLuaAccess::FuncExists(char const*)':
    luautils.cpp:(.text+0x49bf): undefined reference to `lua_getfield'
    luautils.cpp:(.text+0x49ca): undefined reference to `lua_gettop'
    luautils.cpp:(.text+0x49d9): undefined reference to `lua_type'
    luautils.cpp:(.text+0x49f0): undefined reference to `lua_settop'
    luautils.cpp:(.text+0x4a01): undefined reference to `lua_settop'
    /tmp/ccfhWVaV.o: In function `TLuaAccess::Include(TLuaCFunctions*)':
    luautils.cpp:(.text+0x4a4c): undefined reference to `lua_pushcclosure'
    luautils.cpp:(.text+0x4a68): undefined reference to `lua_setfield'
    /tmp/ccfhWVaV.o: In function `TLuaCFunctions::RegisterToState(lua_State*)':
    luautils.cpp:(.text+0x4ac4): undefined reference to `lua_pushcclosure'
    luautils.cpp:(.text+0x4ae0): undefined reference to `lua_setfield'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::INCLUDE(lua_State*)':
    luautils.cpp:(.text+0x5152): undefined reference to `lua_tolstring'
    luautils.cpp:(.text+0x517a): undefined reference to `lua_settop'
    luautils.cpp:(.text+0x5192): undefined reference to `lua_getfield'
    luautils.cpp:(.text+0x51aa): undefined reference to `lua_tolstring'
    luautils.cpp:(.text+0x51d2): undefined reference to `lua_settop'
    luautils.cpp:(.text+0x51ea): undefined reference to `lua_getfield'
    luautils.cpp:(.text+0x51fa): undefined reference to `lua_tonumber'
    luautils.cpp:(.text+0x520e): undefined reference to `lua_settop'
    luautils.cpp:(.text+0x52ac): undefined reference to `lua_getfield'
    luautils.cpp:(.text+0x52c4): undefined reference to `lua_tolstring'
    luautils.cpp:(.text+0x52ec): undefined reference to `lua_settop'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::INCLUDEABSOLUTE(lua_State*)':
    luautils.cpp:(.text+0x5683): undefined reference to `lua_tolstring'
    luautils.cpp:(.text+0x56a7): undefined reference to `lua_settop'
    luautils.cpp:(.text+0x56ff): undefined reference to `lua_getfield'
    luautils.cpp:(.text+0x5717): undefined reference to `lua_tolstring'
    luautils.cpp:(.text+0x573f): undefined reference to `lua_settop'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::mycout(lua_State*)':
    luautils.cpp:(.text+0x5a47): undefined reference to `lua_gettop'
    luautils.cpp:(.text+0x5a74): undefined reference to `lua_tolstring'
    luautils.cpp:(.text+0x5ae8): undefined reference to `lua_tonumber'
    luautils.cpp:(.text+0x5b08): undefined reference to `lua_tolstring'
    /tmp/ccfhWVaV.o: In function `getfloatfield(lua_State*, char const*)':
    luautils.cpp:(.text+0x7cb4): undefined reference to `lua_pushstring'
    luautils.cpp:(.text+0x7cc4): undefined reference to `lua_gettable'
    luautils.cpp:(.text+0x7cd4): undefined reference to `lua_tonumber'
    luautils.cpp:(.text+0x7ce8): undefined reference to `lua_settop'
    /tmp/ccfhWVaV.o: In function `Vector3FromStack(lua_State*)':
    luautils.cpp:(.text+0x7d19): undefined reference to `lua_pushstring'
    luautils.cpp:(.text+0x7d29): undefined reference to `lua_gettable'
    luautils.cpp:(.text+0x7d39): undefined reference to `lua_tonumber'
    luautils.cpp:(.text+0x7d4d): undefined reference to `lua_settop'
    luautils.cpp:(.text+0x7d5d): undefined reference to `lua_pushstring'
    luautils.cpp:(.text+0x7d6d): undefined reference to `lua_gettable'
    luautils.cpp:(.text+0x7d7d): undefined reference to `lua_tonumber'
    luautils.cpp:(.text+0x7d91): undefined reference to `lua_settop'
    luautils.cpp:(.text+0x7da1): undefined reference to `lua_pushstring'
    luautils.cpp:(.text+0x7db1): undefined reference to `lua_gettable'
    luautils.cpp:(.text+0x7dc1): undefined reference to `lua_tonumber'
    luautils.cpp:(.text+0x7dd5): undefined reference to `lua_settop'
    luautils.cpp:(.text+0x7df9): undefined reference to `lua_settop'
    /tmp/ccfhWVaV.o: In function `Vector4FromStack(lua_State*)':
    luautils.cpp:(.text+0x7e29): undefined reference to `lua_pushstring'
    luautils.cpp:(.text+0x7e39): undefined reference to `lua_gettable'
    luautils.cpp:(.text+0x7e49): undefined reference to `lua_tonumber'
    luautils.cpp:(.text+0x7e5d): undefined reference to `lua_settop'
    luautils.cpp:(.text+0x7e6d): undefined reference to `lua_pushstring'
    luautils.cpp:(.text+0x7e7d): undefined reference to `lua_gettable'
    luautils.cpp:(.text+0x7e8d): undefined reference to `lua_tonumber'
    luautils.cpp:(.text+0x7ea1): undefined reference to `lua_settop'
    luautils.cpp:(.text+0x7eb1): undefined reference to `lua_pushstring'
    luautils.cpp:(.text+0x7ec1): undefined reference to `lua_gettable'
    luautils.cpp:(.text+0x7ed1): undefined reference to `lua_tonumber'
    luautils.cpp:(.text+0x7ee5): undefined reference to `lua_settop'
    luautils.cpp:(.text+0x7ef5): undefined reference to `lua_pushstring'
    luautils.cpp:(.text+0x7f05): undefined reference to `lua_gettable'
    luautils.cpp:(.text+0x7f15): undefined reference to `lua_tonumber'
    luautils.cpp:(.text+0x7f29): undefined reference to `lua_settop'
    luautils.cpp:(.text+0x7f54): undefined reference to `lua_settop'
    /tmp/ccfhWVaV.o: In function `_ZN10TLuaAccess8LoadFileEP16cls_FileReadableii.constprop.207':
    luautils.cpp:(.text+0x83c4): undefined reference to `lua_pushnumber'
    luautils.cpp:(.text+0x83df): undefined reference to `lua_setfield'
    luautils.cpp:(.text+0x840b): undefined reference to `lua_pushstring'
    luautils.cpp:(.text+0x842e): undefined reference to `lua_setfield'
    luautils.cpp:(.text+0x845a): undefined reference to `lua_pushstring'
    luautils.cpp:(.text+0x847d): undefined reference to `lua_setfield'
    luautils.cpp:(.text+0x84a9): undefined reference to `lua_pushstring'
    luautils.cpp:(.text+0x84cc): undefined reference to `lua_setfield'
    luautils.cpp:(.text+0x84df): undefined reference to `lua_pushnumber'
    luautils.cpp:(.text+0x84fa): undefined reference to `lua_setfield'
    luautils.cpp:(.text+0x8634): undefined reference to `lua_tolstring'
    /tmp/ccfhWVaV.o: In function `ReloadLanguage()':
    luautils.cpp:(.text+0x89fc): undefined reference to `luaL_newstate'
    luautils.cpp:(.text+0x8a10): undefined reference to `luaopen_base'
    luautils.cpp:(.text+0x8a1c): undefined reference to `luaopen_table'
    luautils.cpp:(.text+0x8a28): undefined reference to `luaopen_string'
    luautils.cpp:(.text+0x8a34): undefined reference to `luaopen_math'
    luautils.cpp:(.text+0x8a40): undefined reference to `luaopen_os'
    luautils.cpp:(.text+0x8ab8): undefined reference to `lua_pushcclosure'
    luautils.cpp:(.text+0x8ad8): undefined reference to `lua_setfield'
    luautils.cpp:(.text+0x8b1d): undefined reference to `lua_close'
    /tmp/ccfhWVaV.o: In function `TLuaCuboLib::TRANS_Load(lua_State*)':
    luautils.cpp:(.text+0x8c8f): undefined reference to `lua_tolstring'
    luautils.cpp:(.text+0x8cb7): undefined reference to `lua_settop'
    luautils.cpp:(.text+0x8cf0): undefined reference to `luaL_newstate'
    luautils.cpp:(.text+0x8d04): undefined reference to `luaopen_base'
    luautils.cpp:(.text+0x8d10): undefined reference to `luaopen_table'
    luautils.cpp:(.text+0x8d1c): undefined reference to `luaopen_string'
    luautils.cpp:(.text+0x8d28): undefined reference to `luaopen_math'
    luautils.cpp:(.text+0x8d34): undefined reference to `luaopen_os'
    luautils.cpp:(.text+0x8dc8): undefined reference to `lua_pushcclosure'
    luautils.cpp:(.text+0x8de8): undefined reference to `lua_setfield'
    luautils.cpp:(.text+0x8e54): undefined reference to `lua_close'
    /tmp/ccfhWVaV.o: In function `TLuaAccess::LoadFile(cls_FileReadable*, int, int)':
    luautils.cpp:(.text+0x9063): undefined reference to `lua_pushnumber'
    luautils.cpp:(.text+0x907e): undefined reference to `lua_setfield'
    luautils.cpp:(.text+0x90aa): undefined reference to `lua_pushstring'
    luautils.cpp:(.text+0x90cd): undefined reference to `lua_setfield'
    luautils.cpp:(.text+0x90f9): undefined reference to `lua_pushstring'
    luautils.cpp:(.text+0x911c): undefined reference to `lua_setfield'
    luautils.cpp:(.text+0x9148): undefined reference to `lua_pushstring'
    luautils.cpp:(.text+0x916b): undefined reference to `lua_setfield'
    luautils.cpp:(.text+0x9181): undefined reference to `lua_pushnumber'
    luautils.cpp:(.text+0x919c): undefined reference to `lua_setfield'
    luautils.cpp:(.text+0x92d6): undefined reference to `lua_tolstring'
    /tmp/ccfhWVaV.o: In function `TLuaAccess::ExecStrings(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)':
    luautils.cpp:(.text+0x96ca): undefined reference to `lua_load'
    luautils.cpp:(.text+0x97ef): undefined reference to `lua_tolstring'
    luautils.cpp:(.text+0x993f): undefined reference to `lua_pcall'
    /tmp/ccfhWVaV.o: In function `TLuaAccess::ExecString(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
    luautils.cpp:(.text+0x9afc): undefined reference to `luaL_loadstring'
    luautils.cpp:(.text+0x9c25): undefined reference to `lua_tolstring'
    luautils.cpp:(.text+0x9d97): undefined reference to `lua_pcall'
    /tmp/ccfhWVaV.o: In function `TLuaAccess::CallVA(char const*, char const*, ...)':
    luautils.cpp:(.text+0x9f1e): undefined reference to `lua_getfield'
    luautils.cpp:(.text+0xa294): undefined reference to `lua_createtable'
    luautils.cpp:(.text+0xa2a7): undefined reference to `lua_pushstring'
    luautils.cpp:(.text+0xa2ba): undefined reference to `lua_pushnumber'
    luautils.cpp:(.text+0xa2cd): undefined reference to `lua_rawset'
    luautils.cpp:(.text+0xa2e0): undefined reference to `lua_pushstring'
    luautils.cpp:(.text+0xa2f3): undefined reference to `lua_pushnumber'
    luautils.cpp:(.text+0xa306): undefined reference to `lua_rawset'
    luautils.cpp:(.text+0xa319): undefined reference to `lua_pushstring'
    luautils.cpp:(.text+0xa32c): undefined reference to `lua_pushnumber'
    luautils.cpp:(.text+0xa33f): undefined reference to `lua_rawset'
    luautils.cpp:(.text+0xa361): undefined reference to `luaL_checkstack'
    luautils.cpp:(.text+0xa3a1): undefined reference to `lua_pcall'
    luautils.cpp:(.text+0xa67b): undefined reference to `lua_pushnil'
    luautils.cpp:(.text+0xa6bf): undefined reference to `lua_settop'
    luautils.cpp:(.text+0xa6d2): undefined reference to `lua_next'
    luautils.cpp:(.text+0xa6ed): undefined reference to `lua_isnumber'
    luautils.cpp:(.text+0xa70c): undefined reference to `lua_tolstring'
    luautils.cpp:(.text+0xa72f): undefined reference to `lua_tonumber'
    luautils.cpp:(.text+0xa7c0): undefined reference to `lua_settop'
    luautils.cpp:(.text+0xa7df): undefined reference to `lua_isstring'
    luautils.cpp:(.text+0xaa52): undefined reference to `lua_tolstring'
    luautils.cpp:(.text+0xaa67): undefined reference to `lua_settop'
    luautils.cpp:(.text+0xaa7f): undefined reference to `lua_isnumber'
    luautils.cpp:(.text+0xace6): undefined reference to `lua_tonumber'
    luautils.cpp:(.text+0xad13): undefined reference to `lua_settop'
    luautils.cpp:(.text+0xad2f): undefined reference to `lua_isnumber'
    luautils.cpp:(.text+0xaf9d): undefined reference to `lua_tonumber'
    luautils.cpp:(.text+0xb156): undefined reference to `lua_pushnumber'
    luautils.cpp:(.text+0xb17b): undefined reference to `lua_pushstring'
    luautils.cpp:(.text+0xb3d1): undefined reference to `lua_tolstring'
    /tmp/ccfhWVaV.o: In function `TLuaVarHolder::GetVar(lua_State*)':
    luautils.cpp:(.text+0xbabb): undefined reference to `lua_tolstring'
    luautils.cpp:(.text+0xbae2): undefined reference to `lua_remove'
    luautils.cpp:(.text+0xbb6c): undefined reference to `lua_getfield'
    luautils.cpp:(.text+0xbb84): undefined reference to `lua_tolstring'
    luautils.cpp:(.text+0xbbb2): undefined reference to `lua_settop'
    /tmp/ccfhWVaV.o: In function `TLuaAccess::LoadStdLibs()':
    luautils.cpp:(.text+0x554): undefined reference to `luaopen_os'
    /tmp/ccfhWVaV.o: In function `TLuaAccess::PushFloat(double)':
    luautils.cpp:(.text+0x48cc): undefined reference to `lua_pushnumber'
    /tmp/ccfhWVaV.o: In function `TLuaAccess::PushString(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
    luautils.cpp:(.text+0x4926): undefined reference to `lua_pushstring'
    /tmp/ccfhWVaV.o: In function `TLuaStringVar::WriteInState(lua_State*)':
    luautils.cpp:(.text._ZN13TLuaStringVar12WriteInStateEP9lua_State[TLuaStringVar::WriteInState(lua_State*)]+0x14): undefined reference to `lua_pushstring'
    /tmp/ccfhWVaV.o: In function `TLuaNumberVar::WriteInState(lua_State*)':
    luautils.cpp:(.text._ZN13TLuaNumberVar12WriteInStateEP9lua_State[TLuaNumberVar::WriteInState(lua_State*)]+0x16): undefined reference to `lua_pushnumber'
    /tmp/ccfhWVaV.o: In function `TLuaBaseVar::ReadFromState(lua_State*)':
    luautils.cpp:(.text._ZN11TLuaBaseVar13ReadFromStateEP9lua_State[TLuaBaseVar::ReadFromState(lua_State*)]+0x11): undefined reference to `lua_remove'
    /tmp/ccfhWVaV.o: In function `TLuaNumberVar::ReadFromState(lua_State*)':
    luautils.cpp:(.text._ZN13TLuaNumberVar13ReadFromStateEP9lua_State[TLuaNumberVar::ReadFromState(lua_State*)]+0x1f): undefined reference to `lua_tonumber'
    luautils.cpp:(.text._ZN13TLuaNumberVar13ReadFromStateEP9lua_State[TLuaNumberVar::ReadFromState(lua_State*)]+0x3e): undefined reference to `lua_remove'
    /tmp/ccfhWVaV.o: In function `TLuaStringVar::ReadFromState(lua_State*)':
    luautils.cpp:(.text._ZN13TLuaStringVar13ReadFromStateEP9lua_State[TLuaStringVar::ReadFromState(lua_State*)]+0x2b): undefined reference to `lua_tolstring'
    luautils.cpp:(.text._ZN13TLuaStringVar13ReadFromStateEP9lua_State[TLuaStringVar::ReadFromState(lua_State*)]+0x68): undefined reference to `lua_remove'
    /tmp/cc8JT6UY.o: In function `main':
    main.cpp:(.text.startup+0x2a3): undefined reference to `SDL_Init'
    main.cpp:(.text.startup+0x30c): undefined reference to `SDL_WM_SetCaption'
    main.cpp:(.text.startup+0x320): undefined reference to `SDL_GL_SetAttribute'
    main.cpp:(.text.startup+0x334): undefined reference to `SDL_GL_SetAttribute'
    main.cpp:(.text.startup+0x348): undefined reference to `SDL_GL_SetAttribute'
    main.cpp:(.text.startup+0x35c): undefined reference to `SDL_GL_SetAttribute'
    main.cpp:(.text.startup+0x370): undefined reference to `SDL_GL_SetAttribute'
    main.cpp:(.text.startup+0x487): undefined reference to `SDL_Quit'
    /tmp/ccpnUMR5.o: In function `MATRIX_Scale(lua_State*)':
    matrixutils.cpp:(.text+0x32): undefined reference to `glScalef'
    /tmp/ccpnUMR5.o: In function `MATRIX_ScaleUniform(lua_State*)':
    matrixutils.cpp:(.text+0x54): undefined reference to `lua_tonumber'
    matrixutils.cpp:(.text+0x70): undefined reference to `lua_settop'
    matrixutils.cpp:(.text+0x84): undefined reference to `glScalef'
    /tmp/ccpnUMR5.o: In function `MATRIX_AxisRotate(lua_State*)':
    matrixutils.cpp:(.text+0xa4): undefined reference to `lua_tonumber'
    matrixutils.cpp:(.text+0xb8): undefined reference to `lua_settop'
    matrixutils.cpp:(.text+0xef): undefined reference to `glRotatef'
    /tmp/ccpnUMR5.o: In function `MATRIX_Identity(lua_State*)':
    matrixutils.cpp:(.text+0x104): undefined reference to `glLoadIdentity'
    /tmp/ccpnUMR5.o: In function `MATRIX_Translate(lua_State*)':
    matrixutils.cpp:(.text+0x142): undefined reference to `glTranslatef'
    /tmp/ccpnUMR5.o: In function `MATRIX_Pop(lua_State*)':
    matrixutils.cpp:(.text+0x154): undefined reference to `glPopMatrix'
    /tmp/ccpnUMR5.o: In function `MATRIX_Push(lua_State*)':
    matrixutils.cpp:(.text+0x164): undefined reference to `glPushMatrix'
    /tmp/ccpnUMR5.o: In function `MATRIX_MultBase(lua_State*)':
    matrixutils.cpp:(.text+0x347): undefined reference to `glMatrixMode'
    matrixutils.cpp:(.text+0x353): undefined reference to `glMultMatrixf'
    /tmp/ccpnUMR5.o: In function `T4dGlutMatrix::glPushMult()':
    matrixutils.cpp:(.text+0x3e2): undefined reference to `glMatrixMode'
    matrixutils.cpp:(.text+0x3e7): undefined reference to `glPushMatrix'
    /tmp/ccpnUMR5.o: In function `T4dGlutMatrix::glMult()':
    matrixutils.cpp:(.text+0x412): undefined reference to `glMatrixMode'
    /tmp/ccpnUMR5.o: In function `T4dGlutMatrix::glPop()':
    matrixutils.cpp:(.text+0x43e): undefined reference to `glMatrixMode'
    /tmp/ccpnUMR5.o: In function `T4dGlutMatrix::glPushLoad()':
    matrixutils.cpp:(.text+0x462): undefined reference to `glMatrixMode'
    matrixutils.cpp:(.text+0x467): undefined reference to `glPushMatrix'
    /tmp/ccpnUMR5.o: In function `T4dGlutMatrix::glLoad()':
    matrixutils.cpp:(.text+0x492): undefined reference to `glMatrixMode'
    /tmp/ccpnUMR5.o: In function `T4dGlutMatrix::glPushMult()':
    matrixutils.cpp:(.text+0x3f4): undefined reference to `glMultMatrixf'
    /tmp/ccpnUMR5.o: In function `T4dGlutMatrix::glMult()':
    matrixutils.cpp:(.text+0x41f): undefined reference to `glMultMatrixf'
    /tmp/ccpnUMR5.o: In function `T4dGlutMatrix::glPop()':
    matrixutils.cpp:(.text+0x446): undefined reference to `glPopMatrix'
    /tmp/ccpnUMR5.o: In function `T4dGlutMatrix::glPushLoad()':
    matrixutils.cpp:(.text+0x474): undefined reference to `glLoadMatrixf'
    /tmp/ccpnUMR5.o: In function `T4dGlutMatrix::glLoad()':
    matrixutils.cpp:(.text+0x49f): undefined reference to `glLoadMatrixf'
    /tmp/cc67C6Ps.o: In function `MODEL_DrawGroup(lua_State*)':
    models.cpp:(.text+0x74): undefined reference to `lua_tonumber'
    models.cpp:(.text+0x88): undefined reference to `lua_settop'
    models.cpp:(.text+0x98): undefined reference to `lua_tonumber'
    models.cpp:(.text+0xac): undefined reference to `lua_settop'
    /tmp/cc67C6Ps.o: In function `MODEL_Render(lua_State*)':
    models.cpp:(.text+0x134): undefined reference to `lua_tonumber'
    models.cpp:(.text+0x148): undefined reference to `lua_settop'
    models.cpp:(.text+0x158): undefined reference to `lua_tonumber'
    models.cpp:(.text+0x16c): undefined reference to `lua_settop'
    /tmp/cc67C6Ps.o: In function `TMdlDef::~TMdlDef()':
    models.cpp:(.text+0x201): undefined reference to `glDeleteLists'
    /tmp/cc67C6Ps.o: In function `TOBJModel::DrawGroup(int)':
    models.cpp:(.text+0x268): undefined reference to `glGenLists'
    models.cpp:(.text+0x286): undefined reference to `glNewList'
    models.cpp:(.text+0x292): undefined reference to `glBegin'
    models.cpp:(.text+0x319): undefined reference to `glTexCoord2f'
    models.cpp:(.text+0x331): undefined reference to `glNormal3f'
    models.cpp:(.text+0x349): undefined reference to `glVertex3f'
    models.cpp:(.text+0x3ab): undefined reference to `glTexCoord2f'
    models.cpp:(.text+0x3c3): undefined reference to `glNormal3f'
    models.cpp:(.text+0x3db): undefined reference to `glVertex3f'
    models.cpp:(.text+0x43d): undefined reference to `glTexCoord2f'
    models.cpp:(.text+0x455): undefined reference to `glNormal3f'
    models.cpp:(.text+0x46d): undefined reference to `glVertex3f'
    models.cpp:(.text+0x49e): undefined reference to `glEnd'
    models.cpp:(.text+0x4bb): undefined reference to `glEndList'
    /tmp/cc67C6Ps.o: In function `TMdlDef::~TMdlDef()':
    models.cpp:(.text+0xb61): undefined reference to `glDeleteLists'
    /tmp/cc67C6Ps.o: In function `MDLDEF_Render(lua_State*)':
    models.cpp:(.text+0xbb5): undefined reference to `lua_tonumber'
    models.cpp:(.text+0xbc9): undefined reference to `lua_settop'
    models.cpp:(.text+0xc5c): undefined reference to `glCallList'
    /tmp/cc67C6Ps.o: In function `MODEL_DrawGroupWithTangent(lua_State*)':
    models.cpp:(.text+0x1e83): undefined reference to `lua_tolstring'
    models.cpp:(.text+0x1ea7): undefined reference to `lua_settop'
    models.cpp:(.text+0x1eb7): undefined reference to `lua_tonumber'
    models.cpp:(.text+0x1ecb): undefined reference to `lua_settop'
    models.cpp:(.text+0x1edb): undefined reference to `lua_tonumber'
    models.cpp:(.text+0x1eef): undefined reference to `lua_settop'
    /tmp/cc67C6Ps.o: In function `TOBJModel::DrawGroupWithTangent(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
    models.cpp:(.text+0x23c0): undefined reference to `glBegin'
    models.cpp:(.text+0x2423): undefined reference to `__glewVertexAttrib3fARB'
    models.cpp:(.text+0x2485): undefined reference to `glTexCoord2f'
    models.cpp:(.text+0x249d): undefined reference to `glNormal3f'
    models.cpp:(.text+0x24b9): undefined reference to `glVertex3f'
    models.cpp:(.text+0x251d): undefined reference to `glTexCoord2f'
    models.cpp:(.text+0x2535): undefined reference to `glNormal3f'
    models.cpp:(.text+0x2551): undefined reference to `glVertex3f'
    models.cpp:(.text+0x25b8): undefined reference to `glTexCoord2f'
    models.cpp:(.text+0x25d0): undefined reference to `glNormal3f'
    models.cpp:(.text+0x25ec): undefined reference to `glVertex3f'
    models.cpp:(.text+0x2618): undefined reference to `glEnd'
    /tmp/cc67C6Ps.o: In function `TOBJModel::Clear()':
    models.cpp:(.text+0x29e6): undefined reference to `glDeleteLists'
    /tmp/cc67C6Ps.o: In function `MODEL_LoadOBJ(lua_State*)':
    models.cpp:(.text+0x2d63): undefined reference to `lua_tolstring'
    models.cpp:(.text+0x2d87): undefined reference to `lua_settop'
    models.cpp:(.text+0x2e2d): undefined reference to `lua_pushnumber'
    models.cpp:(.text+0x2f08): undefined reference to `lua_pushnumber'
    /tmp/cc67C6Ps.o: In function `MDLDEF_CreateRenderList(lua_State*)':
    models.cpp:(.text+0x30c5): undefined reference to `lua_tonumber'
    models.cpp:(.text+0x30d9): undefined reference to `lua_settop'
    models.cpp:(.text+0x30f1): undefined reference to `lua_getfield'
    models.cpp:(.text+0x3101): undefined reference to `lua_tonumber'
    models.cpp:(.text+0x3115): undefined reference to `lua_settop'
    models.cpp:(.text+0x3180): undefined reference to `glGenLists'
    models.cpp:(.text+0x3193): undefined reference to `glNewList'
    models.cpp:(.text+0x3226): undefined reference to `glEndList'
    /tmp/cc67C6Ps.o: In function `TMdlDef::CreateRenderList(int)':
    models.cpp:(.text+0x39c0): undefined reference to `glGenLists'
    models.cpp:(.text+0x39d3): undefined reference to `glNewList'
    models.cpp:(.text+0x3a66): undefined reference to `glEndList'
    /tmp/cc67C6Ps.o: In function `MDLDEF_Load(lua_State*)':
    models.cpp:(.text+0x558f): undefined reference to `lua_tolstring'
    models.cpp:(.text+0x55bb): undefined reference to `lua_settop'
    models.cpp:(.text+0x573b): undefined reference to `lua_pushnumber'
    /tmp/cc67C6Ps.o: In function `TOBJModel::DrawGroup(int)':
    models.cpp:(.text+0x4e7): undefined reference to `glCallList'
    /tmp/cc67C6Ps.o: In function `TMdlDef::Call_RenderModel()':
    models.cpp:(.text+0x3b48): undefined reference to `glCallList'
    /tmp/ccwHjufV.o: In function `MOUSE_GetState(lua_State*)':
    mouse.cpp:(.text+0x3d): undefined reference to `lua_createtable'
    mouse.cpp:(.text+0x4d): undefined reference to `lua_pushstring'
    mouse.cpp:(.text+0x5d): undefined reference to `lua_pushnumber'
    mouse.cpp:(.text+0x6d): undefined reference to `lua_rawset'
    mouse.cpp:(.text+0x7d): undefined reference to `lua_pushstring'
    mouse.cpp:(.text+0x8d): undefined reference to `lua_pushnumber'
    mouse.cpp:(.text+0x9d): undefined reference to `lua_rawset'
    mouse.cpp:(.text+0xc0): undefined reference to `lua_pushstring'
    mouse.cpp:(.text+0xd4): undefined reference to `lua_pushnumber'
    mouse.cpp:(.text+0xe4): undefined reference to `lua_rawset'
    mouse.cpp:(.text+0x107): undefined reference to `lua_pushstring'
    mouse.cpp:(.text+0x11b): undefined reference to `lua_pushnumber'
    mouse.cpp:(.text+0x12b): undefined reference to `lua_rawset'
    mouse.cpp:(.text+0x14e): undefined reference to `lua_pushstring'
    mouse.cpp:(.text+0x162): undefined reference to `lua_pushnumber'
    mouse.cpp:(.text+0x172): undefined reference to `lua_rawset'
    mouse.cpp:(.text+0x199): undefined reference to `lua_pushstring'
    mouse.cpp:(.text+0x1ab): undefined reference to `lua_pushnumber'
    mouse.cpp:(.text+0x1bb): undefined reference to `lua_rawset'
    mouse.cpp:(.text+0x1e2): undefined reference to `lua_pushstring'
    mouse.cpp:(.text+0x1f2): undefined reference to `lua_pushnumber'
    mouse.cpp:(.text+0x202): undefined reference to `lua_rawset'
    /tmp/ccwHjufV.o: In function `MOUSE_Snap(lua_State*)':
    mouse.cpp:(.text+0x234): undefined reference to `lua_tonumber'
    mouse.cpp:(.text+0x248): undefined reference to `lua_settop'
    mouse.cpp:(.text+0x294): undefined reference to `SDL_WM_GrabInput'
    mouse.cpp:(.text+0x2a8): undefined reference to `SDL_WM_GrabInput'
    /tmp/ccwHjufV.o: In function `TMouse::Snap(int)':
    mouse.cpp:(.text+0x1480): undefined reference to `SDL_WM_GrabInput'
    /tmp/ccwHjufV.o: In function `TMouse::Initialize()':
    mouse.cpp:(.text+0x13b0): undefined reference to `SDL_ShowCursor'
    /tmp/ccwHjufV.o: In function `TMouse::Snap(int)':
    mouse.cpp:(.text+0x1473): undefined reference to `SDL_WM_GrabInput'
    /tmp/ccnZu6Zu.o: In function `EFFECT_SetRenderTarget(lua_State*)':
    posteffects.cpp:(.text+0x35): undefined reference to `lua_tonumber'
    posteffects.cpp:(.text+0x49): undefined reference to `lua_settop'
    posteffects.cpp:(.text+0xac): undefined reference to `__glewBindFramebuffer'
    posteffects.cpp:(.text+0xcc): undefined reference to `__glewBindFramebuffer'
    /tmp/ccnZu6Zu.o: In function `EFFECT_DepthToStage(lua_State*)':
    posteffects.cpp:(.text+0x135): undefined reference to `lua_tonumber'
    posteffects.cpp:(.text+0x149): undefined reference to `lua_settop'
    posteffects.cpp:(.text+0x159): undefined reference to `lua_tonumber'
    posteffects.cpp:(.text+0x16d): undefined reference to `lua_settop'
    posteffects.cpp:(.text+0x1e6): undefined reference to `glBindTexture'
    posteffects.cpp:(.text+0x266): undefined reference to `__glewActiveTexture'
    /tmp/ccnZu6Zu.o: In function `EFFECT_TempTextureToStage(lua_State*)':
    posteffects.cpp:(.text+0x285): undefined reference to `lua_tonumber'
    posteffects.cpp:(.text+0x299): undefined reference to `lua_settop'
    posteffects.cpp:(.text+0x2a9): undefined reference to `lua_tonumber'
    posteffects.cpp:(.text+0x2bd): undefined reference to `lua_settop'
    posteffects.cpp:(.text+0x335): undefined reference to `glBindTexture'
    posteffects.cpp:(.text+0x3b6): undefined reference to `__glewActiveTexture'
    /tmp/ccnZu6Zu.o: In function `EFFECT_DoRenderPart(lua_State*)':
    posteffects.cpp:(.text+0x1209): undefined reference to `lua_tonumber'
    posteffects.cpp:(.text+0x121d): undefined reference to `lua_settop'
    posteffects.cpp:(.text+0x1235): undefined reference to `lua_tolstring'
    posteffects.cpp:(.text+0x1259): undefined reference to `lua_settop'
    /tmp/ccnZu6Zu.o: In function `EFFECT_SpecialRenderPass(lua_State*)':
    posteffects.cpp:(.text+0x13e7): undefined reference to `lua_tonumber'
    posteffects.cpp:(.text+0x13fb): undefined reference to `lua_settop'
    posteffects.cpp:(.text+0x1413): undefined reference to `lua_tolstring'
    posteffects.cpp:(.text+0x1437): undefined reference to `lua_settop'
    /tmp/ccnZu6Zu.o: In function `EFFECT_Load(lua_State*)':
    posteffects.cpp:(.text+0x156f): undefined reference to `lua_tolstring'
    posteffects.cpp:(.text+0x1593): undefined reference to `lua_settop'
    /tmp/ccnZu6Zu.o: In function `TPostEffect::CreateTempTexture(int, int, int)':
    posteffects.cpp:(.text+0x1b37): undefined reference to `glGenTextures'
    posteffects.cpp:(.text+0x1b4b): undefined reference to `glBindTexture'
    posteffects.cpp:(.text+0x1b67): undefined reference to `glTexParameterf'
    posteffects.cpp:(.text+0x1b83): undefined reference to `glTexParameterf'
    posteffects.cpp:(.text+0x1b9f): undefined reference to `glTexParameteri'
    posteffects.cpp:(.text+0x1bbb): undefined reference to `glTexParameteri'
    posteffects.cpp:(.text+0x1bff): undefined reference to `glTexImage2D'
    posteffects.cpp:(.text+0x1c13): undefined reference to `glBindTexture'
    posteffects.cpp:(.text+0x1c3f): undefined reference to `__glewGenFramebuffers'
    posteffects.cpp:(.text+0x1c54): undefined reference to `__glewBindFramebuffer'
    posteffects.cpp:(.text+0x1c81): undefined reference to `__glewFramebufferTexture2D'
    posteffects.cpp:(.text+0x1c96): undefined reference to `__glewBindFramebuffer'
    posteffects.cpp:(.text+0x1d48): undefined reference to `glGenTextures'
    posteffects.cpp:(.text+0x1d5c): undefined reference to `glBindTexture'
    posteffects.cpp:(.text+0x1da0): undefined reference to `glTexImage2D'
    posteffects.cpp:(.text+0x1db5): undefined reference to `__glewGenFramebuffers'
    posteffects.cpp:(.text+0x1dca): undefined reference to `__glewBindFramebuffer'
    posteffects.cpp:(.text+0x1df7): undefined reference to `__glewFramebufferTexture2D'
    posteffects.cpp:(.text+0x1e24): undefined reference to `__glewFramebufferTexture2D'
    /tmp/ccnZu6Zu.o: In function `EFFECT_CreateTempTexture(lua_State*)':
    posteffects.cpp:(.text+0x1f65): undefined reference to `lua_tonumber'
    posteffects.cpp:(.text+0x1f79): undefined reference to `lua_settop'
    posteffects.cpp:(.text+0x1f89): undefined reference to `lua_tonumber'
    posteffects.cpp:(.text+0x1f9d): undefined reference to `lua_settop'
    posteffects.cpp:(.text+0x1fad): undefined reference to `lua_tonumber'
    posteffects.cpp:(.text+0x1fdd): undefined reference to `lua_settop'
    posteffects.cpp:(.text+0x2038): undefined reference to `lua_pushnumber'
    /tmp/ccnZu6Zu.o: In function `TPostEffect::SetRenderTarget(int)':
    posteffects.cpp:(.text+0x2093): undefined reference to `__glewBindFramebuffer'
    /tmp/ccnZu6Zu.o: In function `TPostEffect::UnPrecache()':
    posteffects.cpp:(.text+0x2159): undefined reference to `__glewDeleteFramebuffers'
    posteffects.cpp:(.text+0x216e): undefined reference to `glDeleteTextures'
    posteffects.cpp:(.text+0x218e): undefined reference to `glDeleteTextures'
    /tmp/ccnZu6Zu.o: In function `TPostEffect::DrawQuad()':
    posteffects.cpp:(.text+0x22ab): undefined reference to `glBegin'
    posteffects.cpp:(.text+0x22bf): undefined reference to `glTexCoord2f'
    posteffects.cpp:(.text+0x22d3): undefined reference to `glVertex2f'
    posteffects.cpp:(.text+0x22e7): undefined reference to `glTexCoord2f'
    posteffects.cpp:(.text+0x22fb): undefined reference to `glVertex2f'
    posteffects.cpp:(.text+0x230f): undefined reference to `glTexCoord2f'
    posteffects.cpp:(.text+0x2323): undefined reference to `glVertex2f'
    posteffects.cpp:(.text+0x2337): undefined reference to `glTexCoord2f'
    posteffects.cpp:(.text+0x234b): undefined reference to `glVertex2f'
    /tmp/ccnZu6Zu.o: In function `TPostEffect::DepthToStage(int, int)':
    posteffects.cpp:(.text+0x24ab): undefined reference to `__glewActiveTexture'
    /tmp/ccnZu6Zu.o: In function `TPostEffect::TempTextureToStage(int, int)':
    posteffects.cpp:(.text+0x25ab): undefined reference to `__glewActiveTexture'
    /tmp/ccnZu6Zu.o: In function `TPostEffect::DrawQuad()':
    posteffects.cpp:(.text+0x2354): undefined reference to `glEnd'
    /tmp/ccnZu6Zu.o: In function `TPostEffect::DepthToStage(int, int)':
    posteffects.cpp:(.text+0x243e): undefined reference to `glBindTexture'
    /tmp/ccnZu6Zu.o: In function `TPostEffect::TempTextureToStage(int, int)':
    posteffects.cpp:(.text+0x253d): undefined reference to `glBindTexture'
    /tmp/ccDCgjhd.o: In function `SHADER_Activate(lua_State*)':
    shaderutil.cpp:(.text+0x15): undefined reference to `lua_tonumber'
    shaderutil.cpp:(.text+0x45): undefined reference to `lua_settop'
    shaderutil.cpp:(.text+0x6b): undefined reference to `__glewUseProgram'
    /tmp/ccDCgjhd.o: In function `SHADER_Deactivate(lua_State*)':
    shaderutil.cpp:(.text+0xa3): undefined reference to `__glewUseProgram'
    /tmp/ccDCgjhd.o: In function `SHADER_SetFloat(lua_State*)':
    shaderutil.cpp:(.text+0xf2a): undefined reference to `lua_tonumber'
    shaderutil.cpp:(.text+0xf3e): undefined reference to `lua_settop'
    shaderutil.cpp:(.text+0xf56): undefined reference to `lua_tolstring'
    shaderutil.cpp:(.text+0xf7a): undefined reference to `lua_settop'
    shaderutil.cpp:(.text+0xfa8): undefined reference to `__glewUniform1fARB'
    shaderutil.cpp:(.text+0xfbd): undefined reference to `__glewGetUniformLocationARB'
    /tmp/ccDCgjhd.o: In function `SHADER_SetInt(lua_State*)':
    shaderutil.cpp:(.text+0x109a): undefined reference to `lua_tonumber'
    shaderutil.cpp:(.text+0x10ae): undefined reference to `lua_settop'
    shaderutil.cpp:(.text+0x10c6): undefined reference to `lua_tolstring'
    shaderutil.cpp:(.text+0x10ea): undefined reference to `lua_settop'
    shaderutil.cpp:(.text+0x1118): undefined reference to `__glewUniform1iARB'
    shaderutil.cpp:(.text+0x112d): undefined reference to `__glewGetUniformLocationARB'
    /tmp/ccDCgjhd.o: In function `SHADER_SetVector4(lua_State*)':
    shaderutil.cpp:(.text+0x124e): undefined reference to `lua_tolstring'
    shaderutil.cpp:(.text+0x127c): undefined reference to `lua_settop'
    shaderutil.cpp:(.text+0x12be): undefined reference to `__glewUniform4fARB'
    shaderutil.cpp:(.text+0x12db): undefined reference to `__glewGetUniformLocationARB'
    /tmp/ccDCgjhd.o: In function `SHADER_SetVector3(lua_State*)':
    shaderutil.cpp:(.text+0x13fa): undefined reference to `lua_tolstring'
    shaderutil.cpp:(.text+0x1428): undefined reference to `lua_settop'
    shaderutil.cpp:(.text+0x1462): undefined reference to `__glewUniform3fARB'
    shaderutil.cpp:(.text+0x147f): undefined reference to `__glewGetUniformLocationARB'
    /tmp/ccDCgjhd.o: In function `ExtensionSupported(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
    shaderutil.cpp:(.text+0x156b): undefined reference to `glGetString'
    /tmp/ccDCgjhd.o: In function `TBaseShader::Activate()':
    shaderutil.cpp:(.text+0x159c): undefined reference to `__glewUseProgram'
    /tmp/ccDCgjhd.o: In function `TBaseShader::~TBaseShader()':
    shaderutil.cpp:(.text+0x15c0): undefined reference to `__glewDeleteProgram'
    shaderutil.cpp:(.text+0x15cc): undefined reference to `__glewDeleteShader'
    shaderutil.cpp:(.text+0x15d8): undefined reference to `__glewDeleteShader'
    /tmp/ccDCgjhd.o: In function `TBaseShader::Deactivate()':
    shaderutil.cpp:(.text+0x1641): undefined reference to `__glewUseProgram'
    /tmp/ccDCgjhd.o: In function `TShaderServer::CompileShaderText(unsigned int, char const*)':
    shaderutil.cpp:(.text+0x1698): undefined reference to `__glewCreateShader'
    shaderutil.cpp:(.text+0x16bb): undefined reference to `__glewShaderSource'
    shaderutil.cpp:(.text+0x16c4): undefined reference to `__glewCompileShader'
    shaderutil.cpp:(.text+0x16dd): undefined reference to `__glewGetShaderiv'
    shaderutil.cpp:(.text+0x1749): undefined reference to `__glewGetShaderInfoLog'
    /tmp/ccDCgjhd.o: In function `TShaderServer::LinkShaders(unsigned int, unsigned int)':
    shaderutil.cpp:(.text+0x1c88): undefined reference to `__glewCreateProgram'
    shaderutil.cpp:(.text+0x1cad): undefined reference to `__glewLinkProgram'
    shaderutil.cpp:(.text+0x1cc6): undefined reference to `__glewGetProgramiv'
    shaderutil.cpp:(.text+0x1d19): undefined reference to `__glewGetProgramInfoLog'
    shaderutil.cpp:(.text+0x1df9): undefined reference to `__glewAttachShader'
    shaderutil.cpp:(.text+0x1e11): undefined reference to `__glewAttachShader'
    /tmp/ccDCgjhd.o: In function `TBaseShader::Load(TShaderServer*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
    shaderutil.cpp:(.text+0x20ab): undefined reference to `__glewIsProgram'
    shaderutil.cpp:(.text+0x20bf): undefined reference to `__glewIsShader'
    shaderutil.cpp:(.text+0x20d3): undefined reference to `__glewIsShader'
    /tmp/ccDCgjhd.o: In function `_ZN11TBaseShader4LoadEP13TShaderServerSs.constprop.195':
    shaderutil.cpp:(.text+0x2688): undefined reference to `__glewIsProgram'
    shaderutil.cpp:(.text+0x269c): undefined reference to `__glewIsShader'
    shaderutil.cpp:(.text+0x26b0): undefined reference to `__glewIsShader'
    /tmp/ccDCgjhd.o: In function `TShaderServer::ValidateShaderProgram(unsigned int)':
    shaderutil.cpp:(.text+0x2b36): undefined reference to `__glewValidateProgramARB'
    shaderutil.cpp:(.text+0x2b4f): undefined reference to `__glewGetProgramiv'
    shaderutil.cpp:(.text+0x2bb5): undefined reference to `__glewGetProgramInfoLog'
    /tmp/ccDCgjhd.o: In function `SetUniformValues(unsigned int, uniform_info*)':
    shaderutil.cpp:(.text+0x2ded): undefined reference to `__glewGetUniformLocation'
    shaderutil.cpp:(.text+0x2e36): undefined reference to `__glewUniform4fv'
    shaderutil.cpp:(.text+0x2e8e): undefined reference to `__glewUniform1i'
    shaderutil.cpp:(.text+0x2eac): undefined reference to `__glewUniform3fv'
    shaderutil.cpp:(.text+0x2ecc): undefined reference to `__glewUniform2fv'
    shaderutil.cpp:(.text+0x2eec): undefined reference to `__glewUniform1fv'
    /tmp/ccDCgjhd.o: In function `GetUniforms(unsigned int, uniform_info*)':
    shaderutil.cpp:(.text+0x2ff2): undefined reference to `__glewGetProgramiv'
    shaderutil.cpp:(.text+0x300b): undefined reference to `__glewGetProgramiv'
    shaderutil.cpp:(.text+0x3050): undefined reference to `__glewGetActiveUniform'
    shaderutil.cpp:(.text+0x3075): undefined reference to `__glewGetUniformLocation'
    /tmp/ccDCgjhd.o: In function `GetAttribs(unsigned int, attrib_info*)':
    shaderutil.cpp:(.text+0x3192): undefined reference to `__glewGetProgramiv'
    shaderutil.cpp:(.text+0x31ab): undefined reference to `__glewGetProgramiv'
    shaderutil.cpp:(.text+0x31f0): undefined reference to `__glewGetActiveAttrib'
    shaderutil.cpp:(.text+0x3215): undefined reference to `__glewGetAttribLocation'
    /tmp/ccDCgjhd.o: In function `TShaderServer::Activate(int)':
    shaderutil.cpp:(.text+0x3610): undefined reference to `__glewUseProgram'
    /tmp/ccDCgjhd.o: In function `TShaderServer::Deactivate()':
    shaderutil.cpp:(.text+0x3638): undefined reference to `__glewUseProgram'
    /tmp/ccDCgjhd.o: In function `TShaderServer::SetInt(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int)':
    shaderutil.cpp:(.text+0x3692): undefined reference to `__glewUniform1iARB'
    shaderutil.cpp:(.text+0x36a7): undefined reference to `__glewGetUniformLocationARB'
    /tmp/ccDCgjhd.o: In function `TShaderServer::SetFloat(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, float)':
    shaderutil.cpp:(.text+0x3702): undefined reference to `__glewUniform1fARB'
    shaderutil.cpp:(.text+0x3717): undefined reference to `__glewGetUniformLocationARB'
    /tmp/ccDCgjhd.o: In function `TShaderServer::SetVector3(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, T3dVector)':
    shaderutil.cpp:(.text+0x3788): undefined reference to `__glewUniform3fARB'
    shaderutil.cpp:(.text+0x3797): undefined reference to `__glewGetUniformLocationARB'
    /tmp/ccDCgjhd.o: In function `TShaderServer::SetVector4(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, T4dVector)':
    shaderutil.cpp:(.text+0x3808): undefined reference to `__glewUniform4fARB'
    shaderutil.cpp:(.text+0x3837): undefined reference to `__glewGetUniformLocationARB'
    /tmp/ccDCgjhd.o: In function `TShaderServer::GetAttributeLocation(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
    shaderutil.cpp:(.text+0x389e): undefined reference to `__glewGetAttribLocationARB'
    /tmp/ccDCgjhd.o: In function `SHADER_Load(lua_State*)':
    shaderutil.cpp:(.text+0x404f): undefined reference to `lua_tolstring'
    shaderutil.cpp:(.text+0x407b): undefined reference to `lua_settop'
    shaderutil.cpp:(.text+0x41f3): undefined reference to `lua_pushnumber'
    /tmp/ccDCgjhd.o: In function `TShaderServer::clear()':
    shaderutil.cpp:(.text+0x4538): undefined reference to `__glewDeleteProgram'
    shaderutil.cpp:(.text+0x4544): undefined reference to `__glewDeleteShader'
    shaderutil.cpp:(.text+0x4550): undefined reference to `__glewDeleteShader'
    shaderutil.cpp:(.text+0x45e3): undefined reference to `__glewDeleteProgram'
    shaderutil.cpp:(.text+0x45ef): undefined reference to `__glewDeleteShader'
    shaderutil.cpp:(.text+0x45fb): undefined reference to `__glewDeleteShader'
    /tmp/ccDCgjhd.o: In function `TShaderServer::FreeShaders()':
    shaderutil.cpp:(.text+0x46a1): undefined reference to `__glewDeleteProgram'
    shaderutil.cpp:(.text+0x46ad): undefined reference to `__glewDeleteShader'
    shaderutil.cpp:(.text+0x46b9): undefined reference to `__glewDeleteShader'
    shaderutil.cpp:(.text+0x473f): undefined reference to `__glewDeleteProgram'
    shaderutil.cpp:(.text+0x474b): undefined reference to `__glewDeleteShader'
    shaderutil.cpp:(.text+0x4757): undefined reference to `__glewDeleteShader'
    /tmp/ccwpY7PU.o: In function `SOUND_PlayedByChannel(lua_State*)':
    sounds.cpp:(.text+0x1b5): undefined reference to `lua_tonumber'
    sounds.cpp:(.text+0x1e5): undefined reference to `lua_settop'
    sounds.cpp:(.text+0x216): undefined reference to `lua_pushnumber'
    /tmp/ccwpY7PU.o: In function `SOUND_RewindMusic(lua_State*)':
    sounds.cpp:(.text+0x23e): undefined reference to `Mix_RewindMusic'
    /tmp/ccwpY7PU.o: In function `SOUND_SetMusicVolume(lua_State*)':
    sounds.cpp:(.text+0x264): undefined reference to `lua_tonumber'
    sounds.cpp:(.text+0x278): undefined reference to `lua_settop'
    sounds.cpp:(.text+0x2d2): undefined reference to `Mix_VolumeMusic'
    /tmp/ccwpY7PU.o: In function `SOUND_SetVolume(lua_State*)':
    sounds.cpp:(.text+0x2f4): undefined reference to `lua_tonumber'
    sounds.cpp:(.text+0x308): undefined reference to `lua_settop'
    sounds.cpp:(.text+0x369): undefined reference to `Mix_Volume'
    /tmp/ccwpY7PU.o: In function `s_ChannelFinished(int)':
    sounds.cpp:(.text+0x38c): undefined reference to `Mix_UnregisterAllEffects'
    /tmp/ccwpY7PU.o: In function `SOUND_StopChannel(lua_State*)':
    sounds.cpp:(.text+0x3d4): undefined reference to `lua_tonumber'
    sounds.cpp:(.text+0x3e8): undefined reference to `lua_settop'
    sounds.cpp:(.text+0x428): undefined reference to `Mix_HaltChannel'
    /tmp/ccwpY7PU.o: In function `SOUND_PlayingMusic(lua_State*)':
    sounds.cpp:(.text+0x540): undefined reference to `Mix_PlayingMusic'
    sounds.cpp:(.text+0x558): undefined reference to `lua_pushnumber'
    /tmp/ccwpY7PU.o: In function `SOUND_Set3dFromCam(lua_State*)':
    sounds.cpp:(.text+0x591): undefined reference to `lua_tonumber'
    sounds.cpp:(.text+0x5ad): undefined reference to `lua_settop'
    sounds.cpp:(.text+0x5cc): undefined reference to `lua_tonumber'
    sounds.cpp:(.text+0x600): undefined reference to `lua_settop'
    sounds.cpp:(.text+0x823): undefined reference to `Mix_SetPosition'
    /tmp/ccwpY7PU.o: In function `SOUND_PlayMusic(lua_State*)':
    sounds.cpp:(.text+0x855): undefined reference to `lua_tonumber'
    sounds.cpp:(.text+0x869): undefined reference to `lua_settop'
    sounds.cpp:(.text+0x8ce): undefined reference to `Mix_PlayMusic'
    sounds.cpp:(.text+0x8f0): undefined reference to `lua_pushnumber'
    /tmp/ccwpY7PU.o: In function `SOUND_SetPostEffect(lua_State*)':
    sounds.cpp:(.text+0x174a): undefined reference to `lua_tonumber'
    sounds.cpp:(.text+0x175e): undefined reference to `lua_settop'
    sounds.cpp:(.text+0x176e): undefined reference to `lua_tonumber'
    sounds.cpp:(.text+0x1782): undefined reference to `lua_settop'
    sounds.cpp:(.text+0x1792): undefined reference to `lua_tonumber'
    sounds.cpp:(.text+0x17a6): undefined reference to `lua_settop'
    sounds.cpp:(.text+0x17be): undefined reference to `lua_tolstring'
    sounds.cpp:(.text+0x17e2): undefined reference to `lua_settop'
    sounds.cpp:(.text+0x18b0): undefined reference to `Mix_SetPostMix'
    sounds.cpp:(.text+0x18f0): undefined reference to `Mix_QuerySpec'
    sounds.cpp:(.text+0x194e): undefined reference to `Mix_SetPostMix'
    /tmp/ccwpY7PU.o: In function `TSoundServer::ChannelFinished(int)':
    sounds.cpp:(.text+0x1a17): undefined reference to `Mix_UnregisterAllEffects'
    /tmp/ccwpY7PU.o: In function `TSoundServer::SetPostMix(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, double, double, double)':
    sounds.cpp:(.text+0x1af0): undefined reference to `Mix_SetPostMix'
    sounds.cpp:(.text+0x1b28): undefined reference to `Mix_QuerySpec'
    sounds.cpp:(.text+0x1b7e): undefined reference to `Mix_SetPostMix'
    /tmp/ccwpY7PU.o: In function `TSoundContainer::~TSoundContainer()':
    sounds.cpp:(.text+0x1ba2): undefined reference to `Mix_FreeChunk'
    /tmp/ccwpY7PU.o: In function `TSoundContainer::Load(cls_FileReadable*)':
    sounds.cpp:(.text+0x1c5e): undefined reference to `SDL_RWFromFile'
    sounds.cpp:(.text+0x1c81): undefined reference to `Mix_LoadWAV_RW'
    sounds.cpp:(.text+0x1d0a): undefined reference to `SDL_RWFromMem'
    sounds.cpp:(.text+0x1d19): undefined reference to `SDL_GetError'
    /tmp/ccwpY7PU.o: In function `SOUND_Load(lua_State*)':
    sounds.cpp:(.text+0x1e62): undefined reference to `lua_tolstring'
    sounds.cpp:(.text+0x1e8a): undefined reference to `lua_settop'
    sounds.cpp:(.text+0x20f8): undefined reference to `lua_pushnumber'
    sounds.cpp:(.text+0x212a): undefined reference to `Mix_FreeChunk'
    sounds.cpp:(.text+0x2213): undefined reference to `lua_pushnumber'
    /tmp/ccwpY7PU.o: In function `TSoundContainer::Reload()':
    sounds.cpp:(.text+0x26de): undefined reference to `Mix_FreeChunk'
    /tmp/ccwpY7PU.o: In function `TMusicContainer::~TMusicContainer()':
    sounds.cpp:(.text+0x2832): undefined reference to `Mix_FreeMusic'
    /tmp/ccwpY7PU.o: In function `TMusicContainer::Load(cls_FileReadable*)':
    sounds.cpp:(.text+0x2949): undefined reference to `SDL_RWFromFile'
    sounds.cpp:(.text+0x2967): undefined reference to `Mix_LoadMUS_RW'
    sounds.cpp:(.text+0x29e1): undefined reference to `Mix_LoadMUS'
    sounds.cpp:(.text+0x2a52): undefined reference to `SDL_RWFromMem'
    sounds.cpp:(.text+0x2b67): undefined reference to `SDL_GetError'
    /tmp/ccwpY7PU.o: In function `SOUND_LoadMusic(lua_State*)':
    sounds.cpp:(.text+0x30f2): undefined reference to `lua_tolstring'
    sounds.cpp:(.text+0x311a): undefined reference to `lua_settop'
    sounds.cpp:(.text+0x3313): undefined reference to `lua_pushnumber'
    sounds.cpp:(.text+0x3342): undefined reference to `Mix_FreeMusic'
    sounds.cpp:(.text+0x342b): undefined reference to `lua_pushnumber'
    /tmp/ccwpY7PU.o: In function `TMusicContainer::Reload()':
    sounds.cpp:(.text+0x398e): undefined reference to `Mix_FreeMusic'
    /tmp/ccwpY7PU.o: In function `TSoundServer::KillSound()':
    sounds.cpp:(.text+0x3af8): undefined reference to `Mix_HaltChannel'
    sounds.cpp:(.text+0x3afd): undefined reference to `Mix_HaltMusic'
    sounds.cpp:(.text+0x3b42): undefined reference to `Mix_FreeChunk'
    sounds.cpp:(.text+0x3bc2): undefined reference to `Mix_FreeMusic'
    sounds.cpp:(.text+0x3c08): undefined reference to `Mix_CloseAudio'
    sounds.cpp:(.text+0x3c89): undefined reference to `Mix_FreeMusic'
    sounds.cpp:(.text+0x3d08): undefined reference to `Mix_FreeChunk'
    /tmp/ccwpY7PU.o: In function `TSoundServer::StopChannel(int)':
    sounds.cpp:(.text+0x3e5c): undefined reference to `Mix_HaltChannel'
    /tmp/ccwpY7PU.o: In function `TSoundServer::Reload()':
    sounds.cpp:(.text+0x4063): undefined reference to `Mix_PlayingMusic'
    sounds.cpp:(.text+0x4071): undefined reference to `Mix_HaltChannel'
    sounds.cpp:(.text+0x4076): undefined reference to `Mix_HaltMusic'
    sounds.cpp:(.text+0x4126): undefined reference to `Mix_PlayMusic'
    /tmp/ccwpY7PU.o: In function `TSoundServer::LoadSound(cls_FileReadable*)':
    sounds.cpp:(.text+0x4b92): undefined reference to `Mix_FreeChunk'
    /tmp/ccwpY7PU.o: In function `TSoundServer::LoadMusic(cls_FileReadable*)':
    sounds.cpp:(.text+0x4f32): undefined reference to `Mix_FreeMusic'
    /tmp/ccwpY7PU.o: In function `SOUND_Play(lua_State*)':
    sounds.cpp:(.text+0x5213): undefined reference to `lua_tonumber'
    sounds.cpp:(.text+0x5227): undefined reference to `lua_settop'
    sounds.cpp:(.text+0x5237): undefined reference to `lua_tonumber'
    sounds.cpp:(.text+0x524b): undefined reference to `lua_settop'
    sounds.cpp:(.text+0x52cc): undefined reference to `Mix_PlayChannelTimed'
    sounds.cpp:(.text+0x5308): undefined reference to `lua_pushnumber'
    /tmp/ccwpY7PU.o: In function `TSoundServer::SetNumChannels(int)':
    sounds.cpp:(.text+0x544c): undefined reference to `Mix_AllocateChannels'
    /tmp/ccwpY7PU.o: In function `SOUND_AllocateChannels(lua_State*)':
    sounds.cpp:(.text+0x5504): undefined reference to `lua_tonumber'
    sounds.cpp:(.text+0x5518): undefined reference to `lua_settop'
    sounds.cpp:(.text+0x5558): undefined reference to `lua_pushnumber'
    /tmp/ccwpY7PU.o: In function `TSoundServer::InitSound(int, int, int, int)':
    sounds.cpp:(.text+0x55ff): undefined reference to `Mix_OpenAudio'
    sounds.cpp:(.text+0x562a): undefined reference to `Mix_ChannelFinished'
    sounds.cpp:(.text+0x56b9): undefined reference to `SDL_GetError'
    /tmp/ccwpY7PU.o: In function `SOUND_Init(lua_State*)':
    sounds.cpp:(.text+0x5717): undefined reference to `lua_tonumber'
    sounds.cpp:(.text+0x5743): undefined reference to `lua_settop'
    sounds.cpp:(.text+0x5753): undefined reference to `lua_tonumber'
    sounds.cpp:(.text+0x577f): undefined reference to `lua_settop'
    sounds.cpp:(.text+0x578f): undefined reference to `lua_tonumber'
    sounds.cpp:(.text+0x57bb): undefined reference to `lua_settop'
    sounds.cpp:(.text+0x57cb): undefined reference to `lua_tonumber'
    sounds.cpp:(.text+0x57f7): undefined reference to `lua_settop'
    sounds.cpp:(.text+0x5876): undefined reference to `Mix_OpenAudio'
    sounds.cpp:(.text+0x589c): undefined reference to `Mix_ChannelFinished'
    sounds.cpp:(.text+0x5936): undefined reference to `lua_pushnumber'
    sounds.cpp:(.text+0x5949): undefined reference to `SDL_GetError'
    sounds.cpp:(.text+0x5980): undefined reference to `Mix_HaltChannel'
    sounds.cpp:(.text+0x5985): undefined reference to `Mix_HaltMusic'
    sounds.cpp:(.text+0x59ca): undefined reference to `Mix_FreeChunk'
    sounds.cpp:(.text+0x5a5a): undefined reference to `Mix_FreeMusic'
    sounds.cpp:(.text+0x5aae): undefined reference to `Mix_CloseAudio'
    sounds.cpp:(.text+0x5b5d): undefined reference to `Mix_FreeChunk'
    sounds.cpp:(.text+0x5be4): undefined reference to `Mix_FreeMusic'
    /tmp/ccwpY7PU.o: In function `TSoundServer::PlaySound(int, int)':
    sounds.cpp:(.text+0x5cde): undefined reference to `Mix_PlayChannelTimed'
    /tmp/ccwpY7PU.o: In function `TSoundServer::PlaySoundLooped(int, int, int)':
    sounds.cpp:(.text+0x5dbe): undefined reference to `Mix_PlayChannelTimed'
    /tmp/ccwpY7PU.o: In function `SOUND_PlayLooped(lua_State*)':
    sounds.cpp:(.text+0x5e63): undefined reference to `lua_tonumber'
    sounds.cpp:(.text+0x5e77): undefined reference to `lua_settop'
    sounds.cpp:(.text+0x5e87): undefined reference to `lua_tonumber'
    sounds.cpp:(.text+0x5e9b): undefined reference to `lua_settop'
    sounds.cpp:(.text+0x5eab): undefined reference to `lua_tonumber'
    sounds.cpp:(.text+0x5ebf): undefined reference to `lua_settop'
    sounds.cpp:(.text+0x5f48): undefined reference to `Mix_PlayChannelTimed'
    sounds.cpp:(.text+0x5f88): undefined reference to `lua_pushnumber'
    /tmp/ccwpY7PU.o: In function `TSoundServer::PlayMusic(int)':
    sounds.cpp:(.text+0x3ec7): undefined reference to `Mix_PlayMusic'
    /tmp/ccwpY7PU.o: In function `TSoundServer::PlayingMusic()':
    sounds.cpp:(.text+0x3ef1): undefined reference to `Mix_PlayingMusic'
    /tmp/ccwpY7PU.o: In function `TSoundServer::RewindMusic()':
    sounds.cpp:(.text+0x3f11): undefined reference to `Mix_RewindMusic'
    /tmp/ccwpY7PU.o: In function `TSoundServer::SetMusicVolume(int)':
    sounds.cpp:(.text+0x3f74): undefined reference to `Mix_VolumeMusic'
    /tmp/ccwpY7PU.o: In function `TSoundServer::SetVolume(int)':
    sounds.cpp:(.text+0x3fdc): undefined reference to `Mix_Volume'
    /tmp/ccwpY7PU.o: In function `TSoundServer::SetPosition(int, float, float)':
    sounds.cpp:(.text+0x4047): undefined reference to `Mix_SetPosition'
    /tmp/ccqBTYg3.o: In function `PARTICLE_SetTimeScale(lua_State*)':
    spriteutils.cpp:(.text+0x34): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x48): undefined reference to `lua_settop'
    /tmp/ccqBTYg3.o: In function `EMITTER_GetVar(lua_State*)':
    spriteutils.cpp:(.text+0x7f): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0xaf): undefined reference to `lua_remove'
    /tmp/ccqBTYg3.o: In function `EMITTER_SetVar(lua_State*)':
    spriteutils.cpp:(.text+0x12f): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x15f): undefined reference to `lua_remove'
    /tmp/ccqBTYg3.o: In function `PARTICLE_CreateEnvOnSide(lua_State*)':
    spriteutils.cpp:(.text+0xa5f): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0xa8f): undefined reference to `lua_settop'
    spriteutils.cpp:(.text+0xad4): undefined reference to `lua_pushnumber'
    /tmp/ccqBTYg3.o: In function `PARTICLE_CreateEnvOnActor(lua_State*)':
    spriteutils.cpp:(.text+0xb1f): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0xb4f): undefined reference to `lua_settop'
    spriteutils.cpp:(.text+0xb94): undefined reference to `lua_pushnumber'
    /tmp/ccqBTYg3.o: In function `SPRITETYPE_SetLifeTime(lua_State*)':
    spriteutils.cpp:(.text+0xcaf): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0xcc3): undefined reference to `lua_settop'
    spriteutils.cpp:(.text+0xcd3): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0xd03): undefined reference to `lua_settop'
    /tmp/ccqBTYg3.o: In function `SPRITE_SetPhase(lua_State*)':
    spriteutils.cpp:(.text+0xd5f): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0xd73): undefined reference to `lua_settop'
    spriteutils.cpp:(.text+0xd83): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0xdb3): undefined reference to `lua_settop'
    /tmp/ccqBTYg3.o: In function `SPRITE_SetRot(lua_State*)':
    spriteutils.cpp:(.text+0xe36): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0xe4a): undefined reference to `lua_settop'
    spriteutils.cpp:(.text+0xe5a): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0xe6e): undefined reference to `lua_settop'
    spriteutils.cpp:(.text+0xe7e): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0xeae): undefined reference to `lua_settop'
    /tmp/ccqBTYg3.o: In function `EMITTER_SetScaleMultiply(lua_State*)':
    spriteutils.cpp:(.text+0xf2f): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0xf43): undefined reference to `lua_settop'
    spriteutils.cpp:(.text+0xf53): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0xf83): undefined reference to `lua_settop'
    /tmp/ccqBTYg3.o: In function `EMITTER_SetColorMultiply(lua_State*)':
    spriteutils.cpp:(.text+0x1009): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x1039): undefined reference to `lua_settop'
    /tmp/ccqBTYg3.o: In function `EMITTER_SetMaxTimeInterval(lua_State*)':
    spriteutils.cpp:(.text+0x10bf): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x10d3): undefined reference to `lua_settop'
    spriteutils.cpp:(.text+0x10e3): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x1113): undefined reference to `lua_settop'
    /tmp/ccqBTYg3.o: In function `EMITTER_Die(lua_State*)':
    spriteutils.cpp:(.text+0x1185): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x11b7): undefined reference to `lua_settop'
    /tmp/ccqBTYg3.o: In function `EMITTER_SetGravity(lua_State*)':
    spriteutils.cpp:(.text+0x1216): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x122a): undefined reference to `lua_settop'
    spriteutils.cpp:(.text+0x124d): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x127d): undefined reference to `lua_settop'
    /tmp/ccqBTYg3.o: In function `EMITTER_SetVelocity(lua_State*)':
    spriteutils.cpp:(.text+0x1312): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x1342): undefined reference to `lua_settop'
    /tmp/ccqBTYg3.o: In function `EMITTER_SetPos(lua_State*)':
    spriteutils.cpp:(.text+0x13b6): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x13e6): undefined reference to `lua_settop'
    spriteutils.cpp:(.text+0x1409): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x143b): undefined reference to `lua_settop'
    /tmp/ccqBTYg3.o: In function `EMITTER_GetActiveSprites(lua_State*)':
    spriteutils.cpp:(.text+0x14bf): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x14ef): undefined reference to `lua_settop'
    spriteutils.cpp:(.text+0x1529): undefined reference to `lua_pushnumber'
    /tmp/ccqBTYg3.o: In function `EMITTER_Clear(lua_State*)':
    spriteutils.cpp:(.text+0x1565): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x1597): undefined reference to `lua_settop'
    /tmp/ccqBTYg3.o: In function `PARTICLE_LoadDef(lua_State*)':
    spriteutils.cpp:(.text+0x242f): undefined reference to `lua_tolstring'
    spriteutils.cpp:(.text+0x245b): undefined reference to `lua_settop'
    spriteutils.cpp:(.text+0x25d3): undefined reference to `lua_pushnumber'
    /tmp/ccqBTYg3.o: In function `LUA_GET_EMITTER_FUNC(lua_State*)':
    spriteutils.cpp:(.text+0x29c5): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x29f7): undefined reference to `lua_settop'
    /tmp/ccqBTYg3.o: In function `LUA_GET_SPRITETYPE_FUNC(lua_State*)':
    spriteutils.cpp:(.text+0x2a55): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x2a87): undefined reference to `lua_settop'
    /tmp/ccqBTYg3.o: In function `SPRITE_SetPos(lua_State*)':
    spriteutils.cpp:(.text+0x39e6): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x3a16): undefined reference to `lua_settop'
    spriteutils.cpp:(.text+0x3a39): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x3a6b): undefined reference to `lua_settop'
    /tmp/ccqBTYg3.o: In function `TSpriteDef::Render(TSprite&)':
    spriteutils.cpp:(.text+0x3b4d): undefined reference to `glColor4f'
    spriteutils.cpp:(.text+0x3dad): undefined reference to `glTexCoord2f'
    spriteutils.cpp:(.text+0x3dc9): undefined reference to `glVertex3f'
    spriteutils.cpp:(.text+0x3ddd): undefined reference to `glTexCoord2f'
    spriteutils.cpp:(.text+0x3e02): undefined reference to `glVertex3f'
    spriteutils.cpp:(.text+0x3e16): undefined reference to `glTexCoord2f'
    spriteutils.cpp:(.text+0x3e3b): undefined reference to `glVertex3f'
    spriteutils.cpp:(.text+0x3e4f): undefined reference to `glTexCoord2f'
    spriteutils.cpp:(.text+0x3e74): undefined reference to `glVertex3f'
    spriteutils.cpp:(.text+0x3eb7): undefined reference to `glTexCoord2f'
    spriteutils.cpp:(.text+0x3eed): undefined reference to `glVertex3f'
    spriteutils.cpp:(.text+0x3f01): undefined reference to `glTexCoord2f'
    spriteutils.cpp:(.text+0x3f37): undefined reference to `glVertex3f'
    spriteutils.cpp:(.text+0x3f4b): undefined reference to `glTexCoord2f'
    spriteutils.cpp:(.text+0x3f81): undefined reference to `glVertex3f'
    spriteutils.cpp:(.text+0x3f95): undefined reference to `glTexCoord2f'
    spriteutils.cpp:(.text+0x3fcb): undefined reference to `glVertex3f'
    /tmp/ccqBTYg3.o: In function `TSpriteEmitter::RenderAfterLevel()':
    spriteutils.cpp:(.text+0x40a0): undefined reference to `glBegin'
    spriteutils.cpp:(.text+0x40bf): undefined reference to `glNormal3f'
    spriteutils.cpp:(.text+0x411a): undefined reference to `glEnd'
    spriteutils.cpp:(.text+0x4161): undefined reference to `glBegin'
    /tmp/ccqBTYg3.o: In function `CreateInterFunc(lua_State*)':
    spriteutils.cpp:(.text+0x44d9): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x44ed): undefined reference to `lua_settop'
    spriteutils.cpp:(.text+0x44fd): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x4511): undefined reference to `lua_settop'
    spriteutils.cpp:(.text+0x4521): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x4535): undefined reference to `lua_settop'
    spriteutils.cpp:(.text+0x4545): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x4559): undefined reference to `lua_settop'
    spriteutils.cpp:(.text+0x4569): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x457d): undefined reference to `lua_settop'
    spriteutils.cpp:(.text+0x4595): undefined reference to `lua_tolstring'
    spriteutils.cpp:(.text+0x45b9): undefined reference to `lua_settop'
    /tmp/ccqBTYg3.o: In function `SPRITETYPE_SetColorFunction(lua_State*)':
    spriteutils.cpp:(.text+0x477c): undefined reference to `lua_tolstring'
    spriteutils.cpp:(.text+0x47a0): undefined reference to `lua_settop'
    spriteutils.cpp:(.text+0x47b0): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x47c4): undefined reference to `lua_settop'
    /tmp/ccqBTYg3.o: In function `SPRITETYPE_SetScaleFunction(lua_State*)':
    spriteutils.cpp:(.text+0x4949): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x497b): undefined reference to `lua_settop'
    /tmp/ccqBTYg3.o: In function `SPRITETYPE_SetGravityFunction(lua_State*)':
    spriteutils.cpp:(.text+0x49e9): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x4a1b): undefined reference to `lua_settop'
    /tmp/ccqBTYg3.o: In function `PARTICLE_AddEmitter(lua_State*)':
    spriteutils.cpp:(.text+0x5ee6): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x5f16): undefined reference to `lua_settop'
    spriteutils.cpp:(.text+0x5f26): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x5f56): undefined reference to `lua_settop'
    spriteutils.cpp:(.text+0x5f96): undefined reference to `lua_pushnumber'
    /tmp/ccqBTYg3.o: In function `TSpriteEnvironments::RenderAfterLevel()':
    spriteutils.cpp:(.text+0x6165): undefined reference to `glDisable'
    spriteutils.cpp:(.text+0x6171): undefined reference to `glDepthMask'
    spriteutils.cpp:(.text+0x6185): undefined reference to `glColorMaterial'
    spriteutils.cpp:(.text+0x6191): undefined reference to `glEnable'
    spriteutils.cpp:(.text+0x619d): undefined reference to `glEnable'
    spriteutils.cpp:(.text+0x61b1): undefined reference to `glBlendFunc'
    spriteutils.cpp:(.text+0x631d): undefined reference to `glColor4f'
    spriteutils.cpp:(.text+0x6329): undefined reference to `glDepthMask'
    spriteutils.cpp:(.text+0x6335): undefined reference to `glDisable'
    spriteutils.cpp:(.text+0x6341): undefined reference to `glDisable'
    /tmp/ccqBTYg3.o: In function `EMITTER_SpawnSprite(lua_State*)':
    spriteutils.cpp:(.text+0x6746): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x675a): undefined reference to `lua_settop'
    spriteutils.cpp:(.text+0x676a): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x677e): undefined reference to `lua_settop'
    spriteutils.cpp:(.text+0x678e): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x67a2): undefined reference to `lua_settop'
    spriteutils.cpp:(.text+0x67b2): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x67e2): undefined reference to `lua_settop'
    spriteutils.cpp:(.text+0x67f2): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x6824): undefined reference to `lua_settop'
    /tmp/ccqBTYg3.o: In function `EMITTER_NewSpriteType(lua_State*)':
    spriteutils.cpp:(.text+0x6b84): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x6b98): undefined reference to `lua_settop'
    spriteutils.cpp:(.text+0x6ba8): undefined reference to `lua_tonumber'
    spriteutils.cpp:(.text+0x6bbc): undefined reference to `lua_settop'
    spriteutils.cpp:(.text+0x6c14): undefined reference to `lua_pushnumber'
    /tmp/ccqBTYg3.o: In function `TSpriteEmitter::RenderAfterLevel()':
    spriteutils.cpp:(.text+0x41d8): undefined reference to `glEnd'
    /tmp/ccqBTYg3.o: In function `TSpriteEnvironments::RenderAfterLevel()':
    spriteutils.cpp:(.text+0x6355): undefined reference to `glEnable'
    /tmp/cceeABNq.o: In function `TEXTURE_SetMaxSize(lua_State*)':
    textures.cpp:(.text+0xb4): undefined reference to `lua_tonumber'
    textures.cpp:(.text+0xc8): undefined reference to `lua_settop'
    /tmp/cceeABNq.o: In function `TEXTURE_MatrixMode(lua_State*)':
    textures.cpp:(.text+0x114): undefined reference to `lua_tonumber'
    textures.cpp:(.text+0x128): undefined reference to `lua_settop'
    textures.cpp:(.text+0x15c): undefined reference to `glMatrixMode'
    textures.cpp:(.text+0x170): undefined reference to `glMatrixMode'
    /tmp/cceeABNq.o: In function `TEXTURE_GetMaxSize(lua_State*)':
    textures.cpp:(.text+0x19f): undefined reference to `lua_pushnumber'
    /tmp/cceeABNq.o: In function `TEXTURE_SetClamp(lua_State*)':
    textures.cpp:(.text+0x1c5): undefined reference to `lua_tonumber'
    textures.cpp:(.text+0x1fa): undefined reference to `lua_settop'
    textures.cpp:(.text+0x225): undefined reference to `glTexParameteri'
    textures.cpp:(.text+0x23d): undefined reference to `glTexParameteri'
    /tmp/cceeABNq.o: In function `TEXDEF_Render(lua_State*)':
    textures.cpp:(.text+0x4a5): undefined reference to `lua_tonumber'
    textures.cpp:(.text+0x4b9): undefined reference to `lua_settop'
    textures.cpp:(.text+0x4c9): undefined reference to `lua_tonumber'
    textures.cpp:(.text+0x4dd): undefined reference to `lua_settop'
    /tmp/cceeABNq.o: In function `TEXDEF_RenderDirect(lua_State*)':
    textures.cpp:(.text+0x682): undefined reference to `lua_tonumber'
    textures.cpp:(.text+0x696): undefined reference to `lua_settop'
    textures.cpp:(.text+0x6b2): undefined reference to `glBegin'
    textures.cpp:(.text+0x6c2): undefined reference to `glNormal3f'
    textures.cpp:(.text+0x6ce): undefined reference to `glTexCoord2f'
    textures.cpp:(.text+0x6de): undefined reference to `glVertex3f'
    textures.cpp:(.text+0x6ea): undefined reference to `glTexCoord2f'
    textures.cpp:(.text+0x6fa): undefined reference to `glVertex3f'
    textures.cpp:(.text+0x706): undefined reference to `glTexCoord2f'
    textures.cpp:(.text+0x716): undefined reference to `glVertex3f'
    textures.cpp:(.text+0x722): undefined reference to `glTexCoord2f'
    textures.cpp:(.text+0x732): undefined reference to `glVertex3f'
    textures.cpp:(.text+0x737): undefined reference to `glEnd'
    /tmp/cceeABNq.o: In function `TEXDEF_Render2d(lua_State*)':
    textures.cpp:(.text+0x792): undefined reference to `lua_tonumber'
    textures.cpp:(.text+0x7a6): undefined reference to `lua_settop'
    textures.cpp:(.text+0x7c2): undefined reference to `glBegin'
    textures.cpp:(.text+0x7d6): undefined reference to `glNormal3f'
    textures.cpp:(.text+0x7eb): undefined reference to `glTexCoord2f'
    textures.cpp:(.text+0x7fb): undefined reference to `glVertex3f'
    textures.cpp:(.text+0x80b): undefined reference to `glTexCoord2f'
    textures.cpp:(.text+0x81b): undefined reference to `glVertex3f'
    textures.cpp:(.text+0x82b): undefined reference to `glTexCoord2f'
    textures.cpp:(.text+0x83b): undefined reference to `glVertex3f'
    textures.cpp:(.text+0x847): undefined reference to `glTexCoord2f'
    textures.cpp:(.text+0x857): undefined reference to `glVertex3f'
    textures.cpp:(.text+0x85c): undefined reference to `glEnd'
    /tmp/cceeABNq.o: In function `TJPEGTexture::loadFromFile(cls_FileReadable*)':
    textures.cpp:(.text+0x8de): undefined reference to `jpeg_std_error'
    textures.cpp:(.text+0x904): undefined reference to `jpeg_CreateDecompress'
    textures.cpp:(.text+0x967): undefined reference to `jpeg_stdio_src'
    textures.cpp:(.text+0x9c3): undefined reference to `jpeg_resync_to_restart'
    textures.cpp:(.text+0x9e7): undefined reference to `jpeg_read_header'
    textures.cpp:(.text+0x9ef): undefined reference to `jpeg_start_decompress'
    textures.cpp:(.text+0xa78): undefined reference to `jpeg_read_scanlines'
    textures.cpp:(.text+0xaee): undefined reference to `jpeg_finish_decompress'
    textures.cpp:(.text+0xaf6): undefined reference to `jpeg_destroy_decompress'
    /tmp/cceeABNq.o: In function `TEXTURE_GetTempTexture(lua_State*)':
    textures.cpp:(.text+0x1d2f): undefined reference to `lua_tolstring'
    textures.cpp:(.text+0x1d5b): undefined reference to `lua_settop'
    textures.cpp:(.text+0x1ddc): undefined reference to `lua_pushnumber'
    /tmp/cceeABNq.o: In function `TEXDEF_GetLastRenderedType(lua_State*)':
    textures.cpp:(.text+0x1fc9): undefined reference to `lua_pushstring'
    /tmp/cceeABNq.o: In function `TEXDEF_Load(lua_State*)':
    textures.cpp:(.text+0x205f): undefined reference to `lua_tolstring'
    textures.cpp:(.text+0x2083): undefined reference to `lua_settop'
    textures.cpp:(.text+0x20d2): undefined reference to `lua_pushnumber'
    /tmp/cceeABNq.o: In function `TTextureDef::RenderPlane()':
    textures.cpp:(.text+0x296c): undefined reference to `glBegin'
    textures.cpp:(.text+0x297c): undefined reference to `glNormal3f'
    textures.cpp:(.text+0x2988): undefined reference to `glTexCoord2f'
    textures.cpp:(.text+0x2998): undefined reference to `glVertex3f'
    textures.cpp:(.text+0x29a4): undefined reference to `glTexCoord2f'
    textures.cpp:(.text+0x29b4): undefined reference to `glVertex3f'
    textures.cpp:(.text+0x29c0): undefined reference to `glTexCoord2f'
    textures.cpp:(.text+0x29d0): undefined reference to `glVertex3f'
    textures.cpp:(.text+0x29dc): undefined reference to `glTexCoord2f'
    textures.cpp:(.text+0x29ec): undefined reference to `glVertex3f'
    /tmp/cceeABNq.o: In function `TTextureDef::Render2d()':
    textures.cpp:(.text+0x2a3c): undefined reference to `glBegin'
    textures.cpp:(.text+0x2a50): undefined reference to `glNormal3f'
    textures.cpp:(.text+0x2a65): undefined reference to `glTexCoord2f'
    textures.cpp:(.text+0x2a75): undefined reference to `glVertex3f'
    textures.cpp:(.text+0x2a85): undefined reference to `glTexCoord2f'
    textures.cpp:(.text+0x2a95): undefined reference to `glVertex3f'
    textures.cpp:(.text+0x2aa5): undefined reference to `glTexCoord2f'
    textures.cpp:(.text+0x2ab5): undefined reference to `glVertex3f'
    textures.cpp:(.text+0x2ac1): undefined reference to `glTexCoord2f'
    textures.cpp:(.text+0x2ad1): undefined reference to `glVertex3f'
    /tmp/cceeABNq.o: In function `TTextureContainer::activate()':
    textures.cpp:(.text+0x2d9d): undefined reference to `__glewActiveTextureARB'
    textures.cpp:(.text+0x2db3): undefined reference to `glBindTexture'
    /tmp/cceeABNq.o: In function `TTextureContainer::activate(int)':
    textures.cpp:(.text+0x2def): undefined reference to `__glewActiveTexture'
    /tmp/cceeABNq.o: In function `TTextureServer::clear()':
    textures.cpp:(.text+0x2f2c): undefined reference to `glDeleteTextures'
    /tmp/cceeABNq.o: In function `TTextureServer::DeactivateStage(int)':
    textures.cpp:(.text+0x30f4): undefined reference to `__glewActiveTexture'
    /tmp/cceeABNq.o: In function `TTextureContainer::makeFromTTexture(TTexture*, int, int)':
    textures.cpp:(.text+0x4367): undefined reference to `glGenTextures'
    textures.cpp:(.text+0x4379): undefined reference to `glBindTexture'
    textures.cpp:(.text+0x4395): undefined reference to `glTexEnvf'
    textures.cpp:(.text+0x43b1): undefined reference to `glTexParameterf'
    textures.cpp:(.text+0x43cd): undefined reference to `glTexParameterf'
    textures.cpp:(.text+0x43e9): undefined reference to `glTexParameterf'
    textures.cpp:(.text+0x4405): undefined reference to `glTexParameterf'
    textures.cpp:(.text+0x4411): undefined reference to `glGetString'
    textures.cpp:(.text+0x4439): undefined reference to `glGetFloatv'
    textures.cpp:(.text+0x4455): undefined reference to `glTexParameterf'
    textures.cpp:(.text+0x44a8): undefined reference to `gluBuild2DMipmaps'
    textures.cpp:(.text+0x4568): undefined reference to `gluScaleImage'
    textures.cpp:(.text+0x45be): undefined reference to `gluBuild2DMipmaps'
    /tmp/cceeABNq.o: In function `_ZN17TTextureContainer16makeFromTTextureEP8TTextureii.constprop.262':
    textures.cpp:(.text+0x4673): undefined reference to `glGenTextures'
    textures.cpp:(.text+0x4685): undefined reference to `glBindTexture'
    textures.cpp:(.text+0x46a1): undefined reference to `glTexEnvf'
    textures.cpp:(.text+0x46bd): undefined reference to `glTexParameterf'
    textures.cpp:(.text+0x46d9): undefined reference to `glTexParameterf'
    textures.cpp:(.text+0x46f5): undefined reference to `glTexParameterf'
    textures.cpp:(.text+0x4711): undefined reference to `glTexParameterf'
    textures.cpp:(.text+0x471d): undefined reference to `glGetString'
    textures.cpp:(.text+0x4745): undefined reference to `glGetFloatv'
    textures.cpp:(.text+0x4761): undefined reference to `glTexParameterf'
    textures.cpp:(.text+0x47b0): undefined reference to `gluBuild2DMipmaps'
    textures.cpp:(.text+0x4882): undefined reference to `gluScaleImage'
    textures.cpp:(.text+0x48cc): undefined reference to `gluBuild2DMipmaps'
    /tmp/cceeABNq.o: In function `TTextureServer::activate(int)':
    textures.cpp:(.text+0x494d): undefined reference to `glBindTexture'
    textures.cpp:(.text+0x4961): undefined reference to `__glewActiveTextureARB'
    textures.cpp:(.text+0x49a0): undefined reference to `__glewActiveTexture'
    textures.cpp:(.text+0x49b4): undefined reference to `glBindTexture'
    /tmp/cceeABNq.o: In function `TEXTURE_LoadWithAlpha(lua_State*)':
    textures.cpp:(.text+0x5fff): undefined reference to `lua_tolstring'
    textures.cpp:(.text+0x6027): undefined reference to `lua_settop'
    textures.cpp:(.text+0x603f): undefined reference to `lua_tolstring'
    textures.cpp:(.text+0x6067): undefined reference to `lua_settop'
    textures.cpp:(.text+0x6184): undefined reference to `lua_pushnumber'
    textures.cpp:(.text+0x625e): undefined reference to `lua_pushnumber'
    textures.cpp:(.text+0x6306): undefined reference to `lua_pushnumber'
    /tmp/cceeABNq.o: In function `TEXTURE_LoadSkyTexture(lua_State*)':
    textures.cpp:(.text+0x7903): undefined reference to `lua_tolstring'
    textures.cpp:(.text+0x7927): undefined reference to `lua_settop'
    textures.cpp:(.text+0x79c5): undefined reference to `lua_pushnumber'
    textures.cpp:(.text+0x7a8a): undefined reference to `lua_pushnumber'
    /tmp/cceeABNq.o: In function `TEXTURE_Load(lua_State*)':
    textures.cpp:(.text+0x7bd3): undefined reference to `lua_tolstring'
    textures.cpp:(.text+0x7bf7): undefined reference to `lua_settop'
    textures.cpp:(.text+0x7c95): undefined reference to `lua_pushnumber'
    textures.cpp:(.text+0x7d5a): undefined reference to `lua_pushnumber'
    /tmp/cceeABNq.o: In function `TTextureServer::activate(int, int)':
    textures.cpp:(.text+0x7efd): undefined reference to `glBindTexture'
    textures.cpp:(.text+0x7f23): undefined reference to `__glewActiveTexture'
    textures.cpp:(.text+0x7f7c): undefined reference to `__glewActiveTexture'
    textures.cpp:(.text+0x7f90): undefined reference to `glBindTexture'
    /tmp/cceeABNq.o: In function `TEXTURE_Deactivate(lua_State*)':
    textures.cpp:(.text+0x7fb4): undefined reference to `lua_tonumber'
    textures.cpp:(.text+0x7fc8): undefined reference to `lua_settop'
    /tmp/cceeABNq.o: In function `TEXTURE_Activate(lua_State*)':
    textures.cpp:(.text+0x8024): undefined reference to `lua_tonumber'
    textures.cpp:(.text+0x8038): undefined reference to `lua_settop'
    textures.cpp:(.text+0x8048): undefined reference to `lua_tonumber'
    textures.cpp:(.text+0x805c): undefined reference to `lua_settop'
    textures.cpp:(.text+0x8075): undefined reference to `glEnable'
    /tmp/cceeABNq.o: In function `TTextureServer::LoadTempTexture(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, cls_FileReadable*, int, unsigned int)':
    textures.cpp:(.text+0x81b3): undefined reference to `glDeleteTextures'
    /tmp/cceeABNq.o: In function `_ZN14TTextureServer15LoadTempTextureESsP16cls_FileReadableij.constprop.257':
    textures.cpp:(.text+0x8b3d): undefined reference to `glDeleteTextures'
    /tmp/cceeABNq.o: In function `TTextureServer::Reload()':
    textures.cpp:(.text+0x9414): undefined reference to `glDeleteTextures'
    /tmp/cceeABNq.o: In function `TEXTURE_LoadTempTexture(lua_State*)':
    textures.cpp:(.text+0x9fb3): undefined reference to `lua_tolstring'
    textures.cpp:(.text+0x9fd7): undefined reference to `lua_settop'
    textures.cpp:(.text+0x9fef): undefined reference to `lua_tolstring'
    textures.cpp:(.text+0xa017): undefined reference to `lua_settop'
    textures.cpp:(.text+0xa096): undefined reference to `lua_pushnumber'
    /tmp/cceeABNq.o: In function `TTextureDef::RenderPlane()':
    textures.cpp:(.text+0x2a04): undefined reference to `glEnd'
    /tmp/cceeABNq.o: In function `TTextureDef::Render2d()':
    textures.cpp:(.text+0x2ae9): undefined reference to `glEnd'
    /tmp/cceeABNq.o: In function `TTextureContainer::activate(int)':
    textures.cpp:(.text+0x2e0d): undefined reference to `glBindTexture'
    /tmp/cceeABNq.o: In function `TTextureServer::DeactivateStage(int)':
    textures.cpp:(.text+0x310d): undefined reference to `glBindTexture'
    /tmp/ccFPpD6U.o: In function `THEME_GetName(lua_State*)':
    themes.cpp:(.text+0xe58): undefined reference to `lua_pushstring'
    /tmp/ccFPpD6U.o: In function `THEME_Load(lua_State*)':
    themes.cpp:(.text+0xf8f): undefined reference to `lua_tolstring'
    themes.cpp:(.text+0xfb7): undefined reference to `lua_settop'
    /tmp/ccFPpD6U.o: In function `THEME_AddDir(lua_State*)':
    themes.cpp:(.text+0x134f): undefined reference to `lua_tolstring'
    themes.cpp:(.text+0x1373): undefined reference to `lua_settop'
    /tmp/ccGm0sri.o: In function `VECTOR_New(lua_State*)':
    vectors.cpp:(.text+0x64): undefined reference to `lua_tonumber'
    vectors.cpp:(.text+0x78): undefined reference to `lua_settop'
    vectors.cpp:(.text+0x88): undefined reference to `lua_tonumber'
    vectors.cpp:(.text+0x9c): undefined reference to `lua_settop'
    vectors.cpp:(.text+0xac): undefined reference to `lua_tonumber'
    vectors.cpp:(.text+0xc0): undefined reference to `lua_settop'
    vectors.cpp:(.text+0xd8): undefined reference to `lua_createtable'
    vectors.cpp:(.text+0xe8): undefined reference to `lua_pushstring'
    vectors.cpp:(.text+0x100): undefined reference to `lua_pushnumber'
    vectors.cpp:(.text+0x110): undefined reference to `lua_settable'
    vectors.cpp:(.text+0x120): undefined reference to `lua_pushstring'
    vectors.cpp:(.text+0x138): undefined reference to `lua_pushnumber'
    vectors.cpp:(.text+0x148): undefined reference to `lua_settable'
    vectors.cpp:(.text+0x158): undefined reference to `lua_pushstring'
    vectors.cpp:(.text+0x170): undefined reference to `lua_pushnumber'
    vectors.cpp:(.text+0x180): undefined reference to `lua_settable'
    /tmp/ccGm0sri.o: In function `COLOR_New(lua_State*)':
    vectors.cpp:(.text+0x1a4): undefined reference to `lua_tonumber'
    vectors.cpp:(.text+0x1b8): undefined reference to `lua_settop'
    vectors.cpp:(.text+0x1c8): undefined reference to `lua_tonumber'
    vectors.cpp:(.text+0x1dc): undefined reference to `lua_settop'
    vectors.cpp:(.text+0x1ec): undefined reference to `lua_tonumber'
    vectors.cpp:(.text+0x200): undefined reference to `lua_settop'
    vectors.cpp:(.text+0x210): undefined reference to `lua_tonumber'
    vectors.cpp:(.text+0x224): undefined reference to `lua_settop'
    vectors.cpp:(.text+0x23c): undefined reference to `lua_createtable'
    vectors.cpp:(.text+0x24c): undefined reference to `lua_pushstring'
    vectors.cpp:(.text+0x264): undefined reference to `lua_pushnumber'
    vectors.cpp:(.text+0x274): undefined reference to `lua_settable'
    vectors.cpp:(.text+0x284): undefined reference to `lua_pushstring'
    vectors.cpp:(.text+0x29c): undefined reference to `lua_pushnumber'
    vectors.cpp:(.text+0x2ac): undefined reference to `lua_settable'
    vectors.cpp:(.text+0x2bc): undefined reference to `lua_pushstring'
    vectors.cpp:(.text+0x2d4): undefined reference to `lua_pushnumber'
    vectors.cpp:(.text+0x2e4): undefined reference to `lua_settable'
    vectors.cpp:(.text+0x2f4): undefined reference to `lua_pushstring'
    vectors.cpp:(.text+0x30c): undefined reference to `lua_pushnumber'
    vectors.cpp:(.text+0x31c): undefined reference to `lua_settable'
    /tmp/ccGm0sri.o: In function `VECTOR_Add(lua_State*)':
    vectors.cpp:(.text+0x398): undefined reference to `lua_createtable'
    vectors.cpp:(.text+0x3a8): undefined reference to `lua_pushstring'
    vectors.cpp:(.text+0x3b8): undefined reference to `lua_pushnumber'
    vectors.cpp:(.text+0x3c8): undefined reference to `lua_settable'
    vectors.cpp:(.text+0x3d8): undefined reference to `lua_pushstring'
    vectors.cpp:(.text+0x3e8): undefined reference to `lua_pushnumber'
    vectors.cpp:(.text+0x3f8): undefined reference to `lua_settable'
    vectors.cpp:(.text+0x408): undefined reference to `lua_pushstring'
    vectors.cpp:(.text+0x418): undefined reference to `lua_pushnumber'
    vectors.cpp:(.text+0x428): undefined reference to `lua_settable'
    /tmp/ccGm0sri.o: In function `VECTOR_Sub(lua_State*)':
    vectors.cpp:(.text+0x4a8): undefined reference to `lua_createtable'
    vectors.cpp:(.text+0x4b8): undefined reference to `lua_pushstring'
    vectors.cpp:(.text+0x4c8): undefined reference to `lua_pushnumber'
    vectors.cpp:(.text+0x4d8): undefined reference to `lua_settable'
    vectors.cpp:(.text+0x4e8): undefined reference to `lua_pushstring'
    vectors.cpp:(.text+0x4f8): undefined reference to `lua_pushnumber'
    vectors.cpp:(.text+0x508): undefined reference to `lua_settable'
    vectors.cpp:(.text+0x518): undefined reference to `lua_pushstring'
    vectors.cpp:(.text+0x528): undefined reference to `lua_pushnumber'
    vectors.cpp:(.text+0x538): undefined reference to `lua_settable'
    /tmp/ccGm0sri.o: In function `VECTOR_Dot(lua_State*)':
    vectors.cpp:(.text+0x5a2): undefined reference to `lua_pushnumber'
    /tmp/ccGm0sri.o: In function `VECTOR_Scale(lua_State*)':
    vectors.cpp:(.text+0x5c4): undefined reference to `lua_tonumber'
    vectors.cpp:(.text+0x5e0): undefined reference to `lua_settop'
    vectors.cpp:(.text+0x62d): undefined reference to `lua_createtable'
    vectors.cpp:(.text+0x63d): undefined reference to `lua_pushstring'
    vectors.cpp:(.text+0x64d): undefined reference to `lua_pushnumber'
    vectors.cpp:(.text+0x65d): undefined reference to `lua_settable'
    vectors.cpp:(.text+0x66d): undefined reference to `lua_pushstring'
    vectors.cpp:(.text+0x67d): undefined reference to `lua_pushnumber'
    vectors.cpp:(.text+0x68d): undefined reference to `lua_settable'
    vectors.cpp:(.text+0x69d): undefined reference to `lua_pushstring'
    vectors.cpp:(.text+0x6ad): undefined reference to `lua_pushnumber'
    vectors.cpp:(.text+0x6bd): undefined reference to `lua_settable'
    /tmp/ccGm0sri.o: In function `VECTOR_Cross(lua_State*)':
    vectors.cpp:(.text+0x76c): undefined reference to `lua_createtable'
    vectors.cpp:(.text+0x77c): undefined reference to `lua_pushstring'
    vectors.cpp:(.text+0x78c): undefined reference to `lua_pushnumber'
    vectors.cpp:(.text+0x79c): undefined reference to `lua_settable'
    vectors.cpp:(.text+0x7ac): undefined reference to `lua_pushstring'
    vectors.cpp:(.text+0x7bc): undefined reference to `lua_pushnumber'
    vectors.cpp:(.text+0x7cc): undefined reference to `lua_settable'
    vectors.cpp:(.text+0x7dc): undefined reference to `lua_pushstring'
    vectors.cpp:(.text+0x7ec): undefined reference to `lua_pushnumber'
    vectors.cpp:(.text+0x7fc): undefined reference to `lua_settable'
    /tmp/ccGm0sri.o: In function `VECTOR_Length(lua_State*)':
    vectors.cpp:(.text+0x929): undefined reference to `lua_pushnumber'
    /tmp/ccGm0sri.o: In function `VECTOR_ToString(lua_State*)':
    vectors.cpp:(.text+0x34b3): undefined reference to `lua_pushstring'
    collect2: ld returned 1 exit status
    make: *** [cubo] Error 1
    

    I really would like to see the game run, so please let me know what I need to do to fix these errors.

    Thanks,

     
  • Exosphere
    Exosphere
    2012-09-03

    Hi, thanks for your interest in Cubosphere and for the report of your unsuccessful compilation.

    Obviously, it is an error caused during the linking process against the Lua libraries.
    In order to help you I'll need some more information. Can you please post the output of the following shell commands:

    dpkg -l | grep lua

    and

    ls /usr/lib/*lua*

    Futhermore, your OpenGL seems to be incompatible in some cases. Therefore, the output of

    ls /usr/lib/*GL*

    and
    ldd /usr/bin/glxgears

    as well as

    glxinfo

    would be nice to have.

    All together would help a lot to get insight into your compilation issues.

    I have to admit that my makefile is quite sloppy. Thus, compilation problems are quite generic. I'm looking forward to find somebody helping me out with the creation of packages that can be directly installed with a single command or click in the software center.
    However, please help us out by posting the output of the above commands.

    Greetings,
    Chriddo

     
  • SharpZQ
    SharpZQ
    2012-09-03

    $ sudo dpkg -l | grep lua

    ii  liblua5.1-0                            5.1.4-10                                Shared library for the Lua interpreter version 5.1
    ii  liblua5.1-0-dbg                        5.1.4-10                                Debug symbols for the Lua shared library interpreter
    ii  liblua5.1-0-dev                        5.1.4-10                                Development files for the Lua language version 5.1
    ii  liblua5.1-apr-dev                      0.19.8.1-2                              Lua development files for the Apache Portable Runtime library
    ii  liblua5.1-apr1                         0.19.8.1-2                              Apache Portable Runtime library for the Lua language version 5.1
    ii  liblua5.1-bitop-dev                    1.0.1-5                                 fast bit manipulation library devel files for the Lua language version 5.1
    ii  liblua5.1-bitop0                       1.0.1-5                                 fast bit manipulation library for the Lua language version 5.1
    ii  liblua5.1-cgi-dev                      5.1.3-3                                 Documentation files for the CGI library for the Lua language version 5.1
    ii  liblua5.1-cgi0                         5.1.3-3                                 CGI library for the Lua language version 5.1
    ii  liblua5.1-copas-dev                    1.1.5-3                                 Documentation files for the copas library for the Lua language version 5.1
    ii  liblua5.1-copas0                       1.1.5-3                                 Copas is a dispatcher of concurrent TCP/IP requests for Lua 5.1
    ii  liblua5.1-cosmo0                       10.04.06-2                              A template library for the Lua langua version 5.1
    ii  liblua5.1-coxpcall0                    1.13.0-3                                Protected function calls across coroutines for Lua 5.1
    ii  liblua5.1-curl-dev                     0.3.0-5                                 libcURL development files for the Lua language version 5.1
    ii  liblua5.1-curl0                        0.3.0-5                                 libcURL bindings for the Lua language version 5.1
    ii  liblua5.1-cyrussasl-dev                1.0.0-3                                 Cyrus SASL development files for the Lua language version 5.1
    ii  liblua5.1-cyrussasl0                   1.0.0-3                                 Cyrus SASL library for the Lua language version 5.1
    ii  liblua5.1-doc0                         3.0.1-3                                 Documentation generation library for the Lua language version 5.1
    ii  liblua5.1-event-dev                    0.3.1-3                                 libevent development files for Lua version 5.1
    ii  liblua5.1-event0                       0.3.1-3                                 asynchronous event notification library for Lua version 5.1
    ii  liblua5.1-expat-dev                    1.2.0-3                                 libexpat development files for the Lua language version 5.1
    ii  liblua5.1-expat0                       1.2.0-3                                 libexpat bindings for the Lua language version 5.1
    ii  liblua5.1-filesystem-dev               1.5.0-2                                 luafilesystem development files for the Lua language version 5.1
    ii  liblua5.1-filesystem0                  1.5.0-2                                 luafilesystem library for the Lua language version 5.1
    ii  liblua5.1-gnome-0                      0.9+20100528-2build1                    GNOME bindings for the Lua language version 5.1
    ii  liblua5.1-gnome-dev                    0.9+20100528-2build1                    GNOME development files for the Lua language version 5.1
    ii  liblua5.1-iconv0                       6-3                                     iconv bindings for the Lua programming language
    ii  liblua5.1-json                         1.2.1-1                                 JSON decoder/encoder for Lua
    ii  liblua5.1-leg-dev                      0.1.2-6                                 Leg development files for the Lua language version 5.1
    ii  liblua5.1-leg0                         0.1.2-6                                 Lua 5.1 grammar, with parsing and manipulation facilities
    ii  liblua5.1-logging                      1.1.4-4                                 lualogging library for the Lua language version 5.1
    ii  liblua5.1-logging-dev                  1.1.4-4                                 Documentation files for the lualogging library for the Lua language version 5.1
    ii  liblua5.1-lpeg-dev                     0.10.2-2                                LPeg development files for the Lua language version 5.1
    ii  liblua5.1-lpeg2                        0.10.2-2                                LPeg library for the Lua language version 5.1
    ii  liblua5.1-luacsnd5.2                   1:5.13.0~dfsg-4ubuntu1                  Lua bindings for the Csound API
    ii  liblua5.1-markdown0                    0.32-3                                  Pure lua5.1 implementation of the Markdown text-to-html markup
    ii  liblua5.1-md5-0                        1.1.2-4                                 MD5 library for the Lua language version 5.1
    ii  liblua5.1-md5-dev                      1.1.2-4                                 MD5 library for the Lua language version 5.1
    ii  liblua5.1-oocairo-dev                  1.3-3                                   Cairo vector graphics API for Lua - development files
    ii  liblua5.1-oocairo0                     1.3-3                                   provides Lua with full access to the Cairo vector graphics API
    ii  liblua5.1-oopango-dev                  1.0-1ubuntu1                            Pango API for Lua - development files
    ii  liblua5.1-oopango0                     1.0-1ubuntu1                            provides Lua with full access to the Pango text rendering API
    ii  liblua5.1-orbit-dev                    2.1.0+dfsg-3                            Documentation files for the orbit MVC framework
    ii  liblua5.1-orbit1                       2.1.0+dfsg-3                            MVC web framework for Lua
    ii  liblua5.1-posix-dev                    5.1.9-2                                 posix development files for the Lua language version 5.1
    ii  liblua5.1-posix1                       5.1.9-2                                 posix library for the Lua language version 5.1
    ii  liblua5.1-rex-doc                      2.5.3-2                                 documentation of the rex library for the Lua language version 5.1
    ii  liblua5.1-rex-onig-dev                 2.5.3-2                                 Onig regex development files for the Lua language version 5.1
    ii  liblua5.1-rex-onig0                    2.5.3-2                                 Onig regular expressions library for the Lua language version 5.1
    ii  liblua5.1-rex-pcre-dev                 2.5.3-2                                 PCRE development files for the Lua language version 5.1
    ii  liblua5.1-rex-pcre0                    2.5.3-2                                 Perl regular expressions library for the Lua language version 5.1
    ii  liblua5.1-rex-posix-dev                2.5.3-2                                 POSIX regex development files for the Lua language version 5.1
    ii  liblua5.1-rex-posix0                   2.5.3-2                                 POSIX regular expressions library for the Lua language version 5.1
    ii  liblua5.1-rings-dev                    1.2.2-4                                 Development files for the rings library for the Lua language version 5.1
    ii  liblua5.1-rings0                       1.2.2-4                                 Lua state creation and control library for the Lua language version 5.1
    ii  liblua5.1-rrd-dev                      1.4.3-3.1ubuntu2                        time-series data storage and display system (Lua 5.1 development)
    ii  liblua5.1-rrd0                         1.4.3-3.1ubuntu2                        time-series data storage and display system (Lua 5.1 interface)
    ii  liblua5.1-sec-dev                      0.4-5                                   SSL socket library library devel files for the Lua language version 5.1
    ii  liblua5.1-sec1                         0.4-5                                   SSL socket library for the Lua language version 5.1
    ii  liblua5.1-soap-dev                     1.0b-7                                  Documentation files for the SOAP library for the Lua language version 5.1
    ii  liblua5.1-soap0                        1.0b-7                                  SOAP library for the Lua language version 5.1
    ii  liblua5.1-socket-dev                   2.0.2-6                                 TCP/UDP socket library for Lua 5.1
    ii  liblua5.1-socket2                      2.0.2-6                                 TCP/UDP socket library for Lua 5.1
    ii  liblua5.1-sql-doc                      2.2.0~rc1-4                             luasql documentation
    ii  liblua5.1-sql-mysql-2                  2.2.0~rc1-4                             luasql library for the Lua language version 5.1
    ii  liblua5.1-sql-mysql-dev                2.2.0~rc1-4                             luasql development files for the Lua language version 5.1
    ii  liblua5.1-sql-postgres-2               2.2.0~rc1-4                             luasql library for the Lua language version 5.1
    ii  liblua5.1-sql-postgres-dev             2.2.0~rc1-4                             luasql development files for the Lua language version 5.1
    ii  liblua5.1-sql-sqlite3-2                2.2.0~rc1-4                             luasql library for the Lua language version 5.1
    ii  liblua5.1-sql-sqlite3-dev              2.2.0~rc1-4                             luasql development files for the Lua language version 5.1
    ii  liblua5.1-svn-dev                      0.4.0-4                                 Development files for the Subversion library for the Lua language version 5.1
    ii  liblua5.1-svn1                         0.4.0-4                                 Subversion library for the Lua language version 5.1
    ii  liblua5.1-wsapi-doc                    1.1.0-10                                wsapi documentation files for the Lua language version 5.1
    ii  liblua5.1-wsapi-fcgi-1                 1.1.0-10                                Web server API fastcgi backend
    ii  liblua5.1-wsapi-fcgi-dev               1.1.0-10                                wsapi fastcgi development files for the Lua language version 5.1
    ii  liblua5.1-wsapi1                       1.1.0-10                                Web server API abstraction layer for the Lua language version 5.1
    ii  liblua5.1-xmlrpc-dev                   1.2.1-2                                 Documentation files for the xmlrpc library for the Lua language version 5.1
    ii  liblua5.1-xmlrpc0                      1.2.1-2                                 xmlrpc library for the Lua language version 5.1
    ii  liblua5.1-zip-dev                      1.2.3-8                                 zip development files for the Lua language version 5.1
    ii  liblua5.1-zip0                         1.2.3-8                                 zip library for the Lua language version 5.1
    rc  liblua50                               5.0.3-6                                 Main interpreter library for the Lua 5.0 programming language
    rc  liblualib50                            5.0.3-6                                 Extension library for the Lua 5.0 programming language
    ii  lua5.1                                 5.1.4-10                                Simple, extensible, embeddable programming language
    

    (Note on the items tagged "rc":  I had tried installing liblua50 and liblualib50, since a lot of the errors are related to lua.  The error output was exactly the same, so I removed them (r) and the config files remain (C) because I forgot to use the "purge" option.

    $ ls -l /usr/lib/*lua*

    lrwxrwxrwx 1 root root     22 2011-06-11 18:03 /usr/lib/liblua5.1-atk.so -> liblua5.1-atk.so.0.0.0
    lrwxrwxrwx 1 root root     22 2011-06-11 18:03 /usr/lib/liblua5.1-atk.so.0 -> liblua5.1-atk.so.0.0.0
    -rw-r--r-- 1 root root  21920 2011-06-11 18:03 /usr/lib/liblua5.1-atk.so.0.0.0
    lrwxrwxrwx 1 root root     24 2011-06-11 18:03 /usr/lib/liblua5.1-cairo.so -> liblua5.1-cairo.so.0.0.0
    lrwxrwxrwx 1 root root     24 2011-06-11 18:03 /usr/lib/liblua5.1-cairo.so.0 -> liblua5.1-cairo.so.0.0.0
    -rw-r--r-- 1 root root  13732 2011-06-11 18:03 /usr/lib/liblua5.1-cairo.so.0.0.0
    lrwxrwxrwx 1 root root     24 2011-08-05 14:28 /usr/lib/liblua5.1-csnd.so -> liblua5.1-luacsnd.so.5.2
    lrwxrwxrwx 1 root root     24 2011-06-11 18:03 /usr/lib/liblua5.1-gnome.so -> liblua5.1-gnome.so.0.0.0
    lrwxrwxrwx 1 root root     24 2011-06-11 18:03 /usr/lib/liblua5.1-gnome.so.0 -> liblua5.1-gnome.so.0.0.0
    -rw-r--r-- 1 root root 104840 2011-06-11 18:03 /usr/lib/liblua5.1-gnome.so.0.0.0
    -rw-r--r-- 1 root root 696912 2011-08-05 14:31 /usr/lib/liblua5.1-luacsnd.so.5.2
    /usr/lib/lua:
    total 4
    drwxr-xr-x 2 root root 4096 2012-09-03 02:46 5.1
    


    $ ls -l /usr/lib/*GL*

    -rw-r--r-- 1 root root 344748 2011-08-04 18:51 /usr/lib/libGLEW.a
    lrwxrwxrwx 1 root root     16 2011-08-04 18:51 /usr/lib/libGLEW.so -> libGLEW.so.1.5.2
    lrwxrwxrwx 1 root root     16 2011-08-04 18:51 /usr/lib/libGLEW.so.1.5 -> libGLEW.so.1.5.2
    -rw-r--r-- 1 root root 283912 2011-08-04 18:51 /usr/lib/libGLEW.so.1.5.2
    

    $ ldd /usr/bin/glxgears

    ldd: /usr/bin/glxgears: No such file or directory
    


    $ glxinfo

    The program 'glxinfo' is currently not installed.  You can install it by typing:
    sudo apt-get install mesa-utils
    

    OK, the last two are missing, and my first instinct was to install the missing items.  However, I am waiting for your response on the matter, since these missing items weren't necessarily the cause of the problem.

     
  • Exosphere
    Exosphere
    2012-09-04

    Unfortunately, your outputs do not help me the way I was thinking of :-/

    First of all, I do not see a the OpenGL-library (libGL.so) on your system.
    Do you have an 64-bit system? In this case, you should also post the output of the corresponding 'ls /usr/lib64' commands.

    You do not need glxgears or glxinfo. Especially, you do not need the 'mesa-utils' package if you have already installed a proprietrary graphic card driver.
    Do you have an ATI graphic card? In this case, you should get the proprietary ATI drivers and you could try the command 'fglrxinfo'.
    In case of a NVIDIA card, you should get the proprietary drivers, too.
    In all other cases, you should install 'mesa-utils'. This will install the Mesa OpenGL driver as well to resolve the dependencies.

    Do you have other application installed that use OpenGL (i.e. almost each program using 3d graphics) ? If so, you could use a 'ldd' on their executables to find out the appropriate libGL file.

    Since SDL isn't found during linking as well, the commands

    sdl-config -libs
    sdl-config -cflags

    could yield an interesting output.

    If we do not find the solution, I'll install Ubuntu 11.10 (Xubuntu) on my secondary testing computer and try it for myself from scratch….

     
  • SharpZQ
    SharpZQ
    2012-09-16

    Hi,

    > Do you have an 64-bit system?

    The Xubuntu system is i386.  I have very little knowledge of the Linux graphics drivers, except that they work out-of-the-box for me everytime.

    > You do not need glxgears or glxinfo. Especially, you do not need the 'mesa-utils' package if you have already installed a proprietrary graphic card driver.

    My GUI applet 'Additional Drivers" reports that no proprietary drivers are in use on my system.

    > Do you have an ATI graphic card? In this case, you should get the proprietary ATI drivers and you could try the command 'fglrxinfo'. In case of a NVIDIA card, you should get the proprietary drivers, too.

    Here is the output of lshw -c video:

    $ sudo lshw -c video

      *-display               
           description: VGA compatible controller
           product: 82915G/GV/910GL Integrated Graphics Controller
           vendor: Intel Corporation
           physical id: 2
           bus info: pci@0000:00:02.0
           version: 04
           width: 32 bits
           clock: 33MHz
           capabilities: pm vga_controller bus_master cap_list rom
           configuration: driver=i915 latency=0
           resources: irq:16 memory:d0100000-d017ffff ioport:3800(size=8) memory:c0000000-cfffffff memory:d0180000-d01bffff
    

    > Do you have other application installed that use OpenGL (i.e. almost each program using 3d graphics) ? If so, you could use a 'ldd' on their executables to find out the appropriate libGL file.

    I tried this out with the greeware flight simulator "YSFlight" which is definitely 3d.  Here is the output:

    $ ldd $HOME/software/Ysflight/ysflight

        linux-gate.so.1 =>  (0x006b4000)
        libX11.so.6 => /usr/lib/i386-linux-gnu/libX11.so.6 (0x009b0000)
        libXext.so.6 => /usr/lib/i386-linux-gnu/libXext.so.6 (0x00110000)
        libGLU.so.1 => /usr/lib/i386-linux-gnu/libGLU.so.1 (0x00123000)
        [b]libGL.so.1 => /usr/lib/i386-linux-gnu/mesa/libGL.so.1 (0x00c3e000)[/b]
        libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0x00bae000)
        libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0x00e87000)
        libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0x003cd000)
        libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0x00970000)
        libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0x00195000)
        libxcb.so.1 => /usr/lib/i386-linux-gnu/libxcb.so.1 (0x00bef000)
        libglapi.so.0 => /usr/lib/i386-linux-gnu/libglapi.so.0 (0x00c1c000)
        libXdamage.so.1 => /usr/lib/i386-linux-gnu/libXdamage.so.1 (0x00313000)
        libXfixes.so.3 => /usr/lib/i386-linux-gnu/libXfixes.so.3 (0x00c98000)
        libXxf86vm.so.1 => /usr/lib/i386-linux-gnu/libXxf86vm.so.1 (0x00535000)
        libdrm.so.2 => /usr/lib/i386-linux-gnu/libdrm.so.2 (0x00317000)
        libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0x00323000)
        /lib/ld-linux.so.2 (0x00b7e000)
        libXau.so.6 => /usr/lib/i386-linux-gnu/libXau.so.6 (0x0033e000)
        libXdmcp.so.6 => /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0x00fa8000)
        librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0x00342000)
    

    $ sdl-config -libs

    -L/usr/lib -lSDL
    

    $ sdl-config -cflags

    -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT
    

    I hope all that helps.  The majority of the problems are with lua though, do you have any idea on how to fix that first? that way there would be much fewer errors to read through.

    Also, I am becoming increasingly curious about all the unexpected things you see with Xubuntu.  I would be willing to put in another hard drive and do a default install of ubuntu 11.10 in the same computer, if you beleive things will compile much differently.

     
  • SharpZQ
    SharpZQ
    2012-09-16

    Since I am not using nVidia or Ati, I guess its time to install mesa-utils.

    Before I install, this is the current setup:

    $ dpkg -l | grep mesa

    ii  libgl1-mesa-dev                                             7.11-0ubuntu3.2                         free implementation of the OpenGL API -- GLX development files
    ii  libgl1-mesa-dri                                             7.11-0ubuntu3.2                         free implementation of the OpenGL API -- DRI modules
    ii  libgl1-mesa-glx                                             7.11-0ubuntu3.2                         free implementation of the OpenGL API -- GLX runtime
    ii  libglapi-mesa                                               7.11-0ubuntu3.2                         free implementation of the GL API -- shared library
    ii  libglu1-mesa                                                7.11-0ubuntu3.2                         Mesa OpenGL utility library (GLU)
    ii  libglu1-mesa-dev                                            7.11-0ubuntu3.2                         Mesa OpenGL utility library -- development files
    ii  mesa-common-dev                                             7.11-0ubuntu3.2                         Developer documentation for Mesa
    

    After the install:

    $ dpkg -l | grep mesa

    ii  libgl1-mesa-dev                                             7.11-0ubuntu3.2                         free implementation of the OpenGL API -- GLX development files
    ii  libgl1-mesa-dri                                             7.11-0ubuntu3.2                         free implementation of the OpenGL API -- DRI modules
    ii  libgl1-mesa-glx                                             7.11-0ubuntu3.2                         free implementation of the OpenGL API -- GLX runtime
    ii  libglapi-mesa                                               7.11-0ubuntu3.2                         free implementation of the GL API -- shared library
    ii  libglu1-mesa                                                7.11-0ubuntu3.2                         Mesa OpenGL utility library (GLU)
    ii  libglu1-mesa-dev                                            7.11-0ubuntu3.2                         Mesa OpenGL utility library -- development files
    ii  mesa-common-dev                                             7.11-0ubuntu3.2                         Developer documentation for Mesa
    [b]ii  mesa-utils                                                  8.0.1+git20110129+d8f7d6b-0ubuntu2      Miscellaneous Mesa GL utilities[/b]
    

    So lets try again:

    $ ldd /usr/bin/glxgears

        linux-gate.so.1 =>  (0x0090a000)
        libGL.so.1 => /usr/lib/i386-linux-gnu/mesa/libGL.so.1 (0x007cd000)
        libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0x0094f000)
        libX11.so.6 => /usr/lib/i386-linux-gnu/libX11.so.6 (0x00e74000)
        libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0x00a72000)
        libglapi.so.0 => /usr/lib/i386-linux-gnu/libglapi.so.0 (0x00cba000)
        libXext.so.6 => /usr/lib/i386-linux-gnu/libXext.so.6 (0x002ac000)
        libXdamage.so.1 => /usr/lib/i386-linux-gnu/libXdamage.so.1 (0x0050c000)
        libXfixes.so.3 => /usr/lib/i386-linux-gnu/libXfixes.so.3 (0x001e8000)
        libXxf86vm.so.1 => /usr/lib/i386-linux-gnu/libXxf86vm.so.1 (0x003ce000)
        libdrm.so.2 => /usr/lib/i386-linux-gnu/libdrm.so.2 (0x00110000)
        libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0x00422000)
        libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0x0011c000)
        /lib/ld-linux.so.2 (0x003a1000)
        libxcb.so.1 => /usr/lib/i386-linux-gnu/libxcb.so.1 (0x0061c000)
        librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0x00121000)
        libXau.so.6 => /usr/lib/i386-linux-gnu/libXau.so.6 (0x00512000)
        libXdmcp.so.6 => /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0x008f3000)
    

    $ glxinfo
    Lots of output now!
    http://pastebin.com/zeG8mNSQ

    If you wish to know anything else, just ask.

     
  • Exosphere
    Exosphere
    2013-02-17

    Edit your Makefile and substitute line 30

    $(CC) $(CFLAGS) $(LIBS) src/*.cpp

    by

    $(CC) src/*.cpp $(CFLAGS) $(LIBS)