Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where is the Mac OS X glut lib dir?



Thank you Mr. Stahl & Mr. Wing.
Following your suggestions, I now compile successfully with
gcc testprog.c -framework GLUT -framework OpenGL -lobjc
The program starts, reads the small 0.4 MB image to be displayed, and then attempts to display the image, but instead of opening a window to display the image, the program produces a Segmentation fault. Below is everything in the Crash Report that contains "GL".
<x-tad-smaller>
OS Version: 10.3.7 (Build 7S215)
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0x432fff94

0x505000 - 0x51efff GLDriver /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLDriver.bundle/GLDriver
0x53e000 - 0x558fff GLRendererFloat /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLRendererFloat.bundle/GLRendererFloat
0x1008000 - 0x1097fff GLRasterARGB8888D32 /System/Library/Frameworks/OpenGL.framework/Resources/GLRasterARGB8888D32.bundle/GLRasterARGB8888D32
0x1304000 - 0x13f8fff GLEngine /System/Library/Frameworks/OpenGL.framework/Resources/GLEngine.bundle/GLEngine
0x153c000 - 0x165bfff com.apple.GeForceFXGLDriver 1.3.36 (3.3.6) /System/Library/Extensions/GeForceFXGLDriver.bundle/Contents/MacOS/GeForceFXGLDriver
0x80cf0000 - 0x80de1fff libGLProgrammability.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
0x84517000 - 0x84557fff com.apple.glut 3.2.7 (GLUT-3.2.7) /System/Library/Frameworks/GLUT.framework/Versions/A/GLUT
0x8c270000 - 0x8c271fff libGLSystem.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLSystem.dylib
0x90c30000 - 0x90c4afff libGL.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x90c60000 - 0x90cc2fff libGLU.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x90d60000 - 0x90d6bfff com.apple.opengl 1.3.7 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x977e0000 - 0x9782bfff libGLImage.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib</x-tad-smaller>



On Apr 28, 2005, at 9:37 PM, E. Wing wrote:

You also need to link to OpenGL (and GLU). Apple rolls both GL and GLU
into one framework, but GLUT is its own framework.
Try:
gcc testprog.c -framework GLUT -framework OpenGL
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden

References: 
 >Re: Where is the Mac OS X glut include dir, and the glut lib dir? (From: "E. Wing" <email@hidden>)
 >Where is the Mac OS X glut lib dir? (From: Greg Coats <email@hidden>)
 >Re: Where is the Mac OS X glut lib dir? (From: "E. Wing" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.