Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
GLUT & OpenGL problems
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="dcholth" data-source="post: 20021"><p>I am new to XCode and programming on a mac, so this may be a very simple problem... </p><p>I'm trying to program some very basic OpenGL programs for my graphics class. I'm using the book 'Interactive Computer Graphics' by Edward Angel if anyone is familiar with it. </p><p>I copied a program from the tutorials section that makes a simple cube that can be rotated w/ the mouse. Making a few minor changes (fixes really), I got it to compile. I made these same changes on the linux machine in the lab and it worked perfectly. </p><p>On my mac however I am getting missing variables. Everytime I try to run it says: </p><p>ZeroLink: unkown symbol '_glutInit' </p><p>Proj1 has exited due to signal 6 (SIGABRT) </p><p></p><p>I originally thought this was a memory problem, but upon closer inspection I see it has to do with the glut initialization. The error happens during the first few lines of the main function: </p><p></p><p>int </p><p>main(int argc, char *argv[]){ </p><p> glutInit(&argc, argv); //Highlighted line in debugger </p><p></p><p>I've compared my init and intro to main method with that of some of the example GLUT files in Xcode (bluepony.c) and it is the same. Can anyone help me? </p><p></p><p>Interestingly enough all the example OpenGL GLUT programs installed with XCode work. My professor beleives they have something in their compilation that is different than what I am doing... I cant for the life of me figure out how to look at those perameters though.</p><p></p><p>Thanks </p><p>Dan </p><p></p><p>ps> if you need mor einformation, reply, and i'll post code snippets and stuff.</p></blockquote><p></p>
[QUOTE="dcholth, post: 20021"] I am new to XCode and programming on a mac, so this may be a very simple problem... I'm trying to program some very basic OpenGL programs for my graphics class. I'm using the book 'Interactive Computer Graphics' by Edward Angel if anyone is familiar with it. I copied a program from the tutorials section that makes a simple cube that can be rotated w/ the mouse. Making a few minor changes (fixes really), I got it to compile. I made these same changes on the linux machine in the lab and it worked perfectly. On my mac however I am getting missing variables. Everytime I try to run it says: ZeroLink: unkown symbol '_glutInit' Proj1 has exited due to signal 6 (SIGABRT) I originally thought this was a memory problem, but upon closer inspection I see it has to do with the glut initialization. The error happens during the first few lines of the main function: int main(int argc, char *argv[]){ glutInit(&argc, argv); //Highlighted line in debugger I've compared my init and intro to main method with that of some of the example GLUT files in Xcode (bluepony.c) and it is the same. Can anyone help me? Interestingly enough all the example OpenGL GLUT programs installed with XCode work. My professor beleives they have something in their compilation that is different than what I am doing... I cant for the life of me figure out how to look at those perameters though. Thanks Dan ps> if you need mor einformation, reply, and i'll post code snippets and stuff. [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
GLUT & OpenGL problems
Top