glu required

Discussion in 'Mac Programming' started by titaniumdecoy, Feb 19, 2008.

  1. macrumors member

    Joined:
    Oct 13, 2005
    #1
    Hi all,

    I am trying to build the latest version of XMoto. I fixed the first two configuration problems by installing libjpeg and libpng. But now I get the following error:

    Code:
    [B]$[/B] ./configure
    <snip>
    checking for gluBuild2DMipmaps in -lGLU... no
    configure: error: glu required
    I did a search which came up with something called SDL, so I installed that too. But I am still getting the same error. Does anyone know what glu refers to?
     
  2. macrumors 6502a

    yeroen

    Joined:
    Mar 8, 2007
    Location:
    Cambridge, MA
    #2
    The clue here is the reference to gluBuild2DMipmaps. (A bit of google searching reveals that) This is part of glu, which is the OpenGL Utilities Library.

    I'm not at my Mac right now, but on Linux/X11, the symbol gluBuild2DMipmaps is found in /usr/X11R6/lib/libGLU.so. Are you compiling this for X11 or for Aqua?
     
  3. thread starter macrumors member

    Joined:
    Oct 13, 2005
    #3
    I managed to fix the problem by appending --with-apple-opengl-framework to the ./configure command. Although now I have more problems to deal with. :(
     
  4. thread starter macrumors member

    Joined:
    Oct 13, 2005
    #4
    @yeroen: To answer your question, I am trying to compile for OS X, although clearly it is apparently using a number of X11 libraries.

    I can't seem to figure out the problem here...

    Code:
    checking for library containing lua_pushboolean... no
    configure: error: liblua5.1
    ./configure: line 7514: exit: liblua50: numeric argument required
    ./configure: line 7514: exit: liblua50: numeric argument required
    Thanks for any suggestions.
     
  5. macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #5
    Lua is a scripting language. You need to compile and install it to get it to work (or the library at least).
     

Share This Page