OpenGL and GLUT in Eclipse on OS X

后端 未结 4 677
天命终不由人
天命终不由人 2020-12-11 03:30

I have been trying to setup the OpenGL and GLUT libraries in Eclipse, with CDT, on OS X with not very much success. I cannot seem to get eclipse to actually realize where GL

4条回答
  •  悲哀的现实
    2020-12-11 04:27

    The default install directory for MacPorts is /opt/local. Could be /opt/local isn't added to your compiler include path in Eclipse. Either that, or reinstalling Xcode to give you GLUT/glut.h on the default include path for Xcode libs (which you may then need to add to eclipse? I don't run OS X so I can't say what the Xcode installdir is, but it looks like it could be in /Developer, or /Library/Developer/Shared).

提交回复
热议问题