   simple Mac cocoa example
  Does anyone have a really simple OpenGL program that just displays a triangle for cocoa. As the example (NEHE) I have uses xcode and when I wrote a make file for the files I get the following error when executing the binary "No Info.plist file in application bundle or no NSPrincipalClass in the Info.plist file, exiting".I am new to writing code for OS-X and just need a super simple example that builds via a makefile and runs.CheersDavid   
  Why don't you try using one of the OpenGL/Cocoa templates that comes with XCode?;  I don't want to use xcode as I will be linking and running the code with a more complex program that uses a combination of C++ and Java. So wanted to just build the binary with a make file.   ;  Well then, you're asking for more than just a simple example.Xcode just invokes GCC, so if you start from the Xcode template you can examine the project properties and see what you need to write in your makefile, probably. There may even be an automated tool to convert, if you look hard enough.It sounds like your original attempt omitted the part where you tell the relevant aspect of the toolchain where your Info.plist is.   ;  Are you trying to build a full application bundle (.app) or just a unix executable?   ;  I am just trying to build a simple ogl executable (single triangle would be sufficient) without using glut to create the window. As I haven't done and windows creation on a Mac cocoa. The rest of the code is straightforward C coding, which I've tested and the ogl code has been tested on Windows. I am just struggling to create a simple ogl window that I can use as a template.;  That doesn't answer my question though. To build unix executables, all you should have to do in your makefile is add:-framework <frameworks here>For making a .app executable, I honestly don't know how to do that without Xcode. Xcode does allow for running other scripts (like the makefiles for your Java code), so that may be an option worth looking into.I also found these makefiles that may be of use to learn from:http://onesadcookie.com/svn/Mechanical/Makefilehttp://onesadcookie.com/svn/QuarterStick/Makefile   