qiqian / webp

Automatically exported from code.google.com/p/webp
0 stars 0 forks source link

vwebp: GLUT is deprecated in OS X 10.9 #187

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. ./configure --enable-everything
2. make

NSOpenGL [1] is the Cocoa way to do it [2][3].

[1] 
https://developer.apple.com/library/mac/samplecode/CocoaGL/Introduction/Intro.ht
ml
[2] https://developer.apple.com/library/mac/qa/qa1613/_index.html
[3] 
https://developer.apple.com/library/mac/releasenotes/General/APIDiffsMacOSX10_9/
GLUT.html

---

libwebp/examples/vwebp.c:196:7: warning: 'glutPostRedisplay' is deprecated: 
first deprecated in OS X 10.9 [-Wdeprecated-declarations]
      glutPostRedisplay();
      ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/S
DKs/MacOSX10.9.sdk/System/Library/Frameworks/GLUT.framework/Headers/glut.h:444:2
2: note: 'glutPostRedisplay' declared here
extern void APIENTRY glutPostRedisplay(void) OPENGL_DEPRECATED(10_0, 10_9);
                     ^
libwebp/examples/vwebp.c:197:7: warning: 'glutTimerFunc' is deprecated: first 
deprecated in OS X 10.9 [-Wdeprecated-declarations]
      glutTimerFunc(duration, decode_callback, what);
      ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/S
DKs/MacOSX10.9.sdk/System/Library/Frameworks/GLUT.framework/Headers/glut.h:514:2
2: note: 'glutTimerFunc' declared here
extern void APIENTRY glutTimerFunc(unsigned int millis, void (*func)(int 
value), int value) OPENGL_DEPRECATED(10_0, 10_9);
                     ^
libwebp/examples/vwebp.c:226:11: warning: 'glutTimerFunc' is deprecated: first 
deprecated in OS X 10.9 [-Wdeprecated-declarations]
          glutTimerFunc(0, decode_callback, 0);
          ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/S
DKs/MacOSX10.9.sdk/System/Library/Frameworks/GLUT.framework/Headers/glut.h:514:2
2: note: 'glutTimerFunc' declared here
extern void APIENTRY glutTimerFunc(unsigned int millis, void (*func)(int 
value), int value) OPENGL_DEPRECATED(10_0, 10_9);
                     ^
libwebp/examples/vwebp.c:230:9: warning: 'glutPostRedisplay' is deprecated: 
first deprecated in OS X 10.9 [-Wdeprecated-declarations]
        glutPostRedisplay();
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/S
DKs/MacOSX10.9.sdk/System/Library/Frameworks/GLUT.framework/Headers/glut.h:444:2
2: note: 'glutPostRedisplay' declared here
extern void APIENTRY glutPostRedisplay(void) OPENGL_DEPRECATED(10_0, 10_9);
                     ^
libwebp/examples/vwebp.c:235:5: warning: 'glutPostRedisplay' is deprecated: 
first deprecated in OS X 10.9 [-Wdeprecated-declarations]
    glutPostRedisplay();
    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/S
DKs/MacOSX10.9.sdk/System/Library/Frameworks/GLUT.framework/Headers/glut.h:444:2
2: note: 'glutPostRedisplay' declared here
extern void APIENTRY glutPostRedisplay(void) OPENGL_DEPRECATED(10_0, 10_9);
                     ^
libwebp/examples/vwebp.c:253:5: warning: 'glutBitmapCharacter' is deprecated: 
first deprecated in OS X 10.9 [-Wdeprecated-declarations]
    glutBitmapCharacter(font, text[i]);
    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/S
DKs/MacOSX10.9.sdk/System/Library/Frameworks/GLUT.framework/Headers/glut.h:560:2
2: note: 'glutBitmapCharacter' declared here
extern void APIENTRY glutBitmapCharacter(void *font, int character) 
OPENGL_DEPRECATED(10_0, 10_9);
                     ^
libwebp/examples/vwebp.c:351:3: warning: 'glutInitDisplayMode' is deprecated: 
first deprecated in OS X 10.9 [-Wdeprecated-declarations]
  glutInitDisplayMode(GLUT_RGBA);
  ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/S
DKs/MacOSX10.9.sdk/System/Library/Frameworks/GLUT.framework/Headers/glut.h:432:2
2: note: 'glutInitDisplayMode' declared here
extern void APIENTRY glutInitDisplayMode(unsigned int mode) 
OPENGL_DEPRECATED(10_0, 10_9);
                     ^
libwebp/examples/vwebp.c:352:3: warning: 'glutInitWindowSize' is deprecated: 
first deprecated in OS X 10.9 [-Wdeprecated-declarations]
  glutInitWindowSize(width, height);
  ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/S
DKs/MacOSX10.9.sdk/System/Library/Frameworks/GLUT.framework/Headers/glut.h:437:2
2: note: 'glutInitWindowSize' declared here
extern void APIENTRY glutInitWindowSize(int width, int height) 
OPENGL_DEPRECATED(10_0, 10_9);
                     ^
libwebp/examples/vwebp.c:353:3: warning: 'glutCreateWindow' is deprecated: 
first deprecated in OS X 10.9 [-Wdeprecated-declarations]
  glutCreateWindow("WebP viewer");
  ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/S
DKs/MacOSX10.9.sdk/System/Library/Frameworks/GLUT.framework/Headers/glut.h:441:2
1: note: 'glutCreateWindow' declared here
extern int APIENTRY glutCreateWindow(const char *title) OPENGL_DEPRECATED(10_0, 
10_9);
                    ^
libwebp/examples/vwebp.c:354:3: warning: 'glutDisplayFunc' is deprecated: first 
deprecated in OS X 10.9 [-Wdeprecated-declarations]
  glutDisplayFunc(HandleDisplay);
  ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/S
DKs/MacOSX10.9.sdk/System/Library/Frameworks/GLUT.framework/Headers/glut.h:505:2
2: note: 'glutDisplayFunc' declared here
extern void APIENTRY glutDisplayFunc(void (*func)(void)) 
OPENGL_DEPRECATED(10_0, 10_9);
                     ^
libwebp/examples/vwebp.c:355:3: warning: 'glutIdleFunc' is deprecated: first 
deprecated in OS X 10.9 [-Wdeprecated-declarations]
  glutIdleFunc(NULL);
  ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/S
DKs/MacOSX10.9.sdk/System/Library/Frameworks/GLUT.framework/Headers/glut.h:513:2
2: note: 'glutIdleFunc' declared here
extern void APIENTRY glutIdleFunc(void (*func)(void)) OPENGL_DEPRECATED(10_0, 
10_9);
                     ^
libwebp/examples/vwebp.c:356:3: warning: 'glutKeyboardFunc' is deprecated: 
first deprecated in OS X 10.9 [-Wdeprecated-declarations]
  glutKeyboardFunc(HandleKey);
  ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/S
DKs/MacOSX10.9.sdk/System/Library/Frameworks/GLUT.framework/Headers/glut.h:507:2
2: note: 'glutKeyboardFunc' declared here
extern void APIENTRY glutKeyboardFunc(void (*func)(unsigned char key, int x, 
int y)) OPENGL_DEPRECATED(10_0, 10_9);
                     ^
libwebp/examples/vwebp.c:508:3: warning: 'glutInit' is deprecated: first 
deprecated in OS X 10.9 [-Wdeprecated-declarations]
  glutInit(&argc, argv);
  ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/S
DKs/MacOSX10.9.sdk/System/Library/Frameworks/GLUT.framework/Headers/glut.h:431:2
2: note: 'glutInit' declared here
extern void APIENTRY glutInit(int *argcp, char **argv) OPENGL_DEPRECATED(10_0, 
10_9);
                     ^
libwebp/examples/vwebp.c:514:30: warning: 'glutTimerFunc' is deprecated: first 
deprecated in OS X 10.9 [-Wdeprecated-declarations]
  if (kParams.has_animation) glutTimerFunc(0, decode_callback, 0);
                             ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/S
DKs/MacOSX10.9.sdk/System/Library/Frameworks/GLUT.framework/Headers/glut.h:514:2
2: note: 'glutTimerFunc' declared here
extern void APIENTRY glutTimerFunc(unsigned int millis, void (*func)(int 
value), int value) OPENGL_DEPRECATED(10_0, 10_9);
                     ^
libwebp/examples/vwebp.c:515:3: warning: 'glutMainLoop' is deprecated: first 
deprecated in OS X 10.9 [-Wdeprecated-declarations]
  glutMainLoop();
  ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/S
DKs/MacOSX10.9.sdk/System/Library/Frameworks/GLUT.framework/Headers/glut.h:438:2
2: note: 'glutMainLoop' declared here
extern void APIENTRY glutMainLoop(void) OPENGL_DEPRECATED(10_0, 10_9);

Original issue reported on code.google.com by jz...@google.com on 1 Feb 2014 at 2:45

GoogleCodeExporter commented 8 years ago
see  
 http://stackoverflow.com/questions/19568088/xcode-5-deprecation-warning-about-glut-functions

http://stackoverflow.com/questions/24095931/glut-deprecation-in-mac-osx-10-9-ide
-qt-creator

Original comment by jabez...@gmail.com on 15 Aug 2014 at 1:52