Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5270 in orxonox.OLD for trunk


Ignore:
Timestamp:
Sep 27, 2005, 7:21:38 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: try and catch windows compatibility with glew, catch because it does not work yet :*|

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r5265 r5270  
    324324         echo "GLU library not found."
    325325         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
     326         echo "------------------"
     327         exit -1
     328    fi
     329
     330# checking glew header
     331   AC_CHECK_HEADERS(GL/glew.h ,,
     332      [AC_MSG_ERROR([cannot find opengl extension wrangler headers]) ])
     333#   checking for Windows glew library
     334    AC_CHECK_LIB([glew32], [main], [AC_CHECK_LIB([glew32s], [main], FOUND_glew32=yes)] )
     335    if test x$FOUND_glew32 = xyes ; then
     336        LIBS="$LIBS -lglew32 -lglew32s"
     337    else
     338         echo "------------------"
     339         echo "opengl extension wrangler not found."
     340         echo "please install the glew package which can be found at http://glew.sourceforge.net"
    326341         echo "------------------"
    327342         exit -1
  • trunk/src/lib/util/helper_functions.cc

    r5207 r5270  
    4343  int result = strtol(INT, &endPtr, 10);
    4444
    45   if ( endPtr >= INT && endPtr < INT + strnlen(INT, 10))
     45  if ( endPtr >= INT && endPtr < INT + strlen(INT))
    4646    return defaultValue;
    4747  else
Note: See TracChangeset for help on using the changeset viewer.