View Full Version : OpenGL Superbible on MAC compiled without errors but do not run

08-12-2014, 01:48 PM
Hello i have stared to learn opengl via the opengl superbible 6th ed. I am programming on Mac 10.9.4 (Maverick)
which can run opengl till vers. 4.3. (mentioned via OpenGL viewer for mac). The development environment i am
using is xcode vers. 5.1.1. I have matched to build all the projects like it was explained in the HOWTOBUILD.txt file (with CMake)
without any errors only one warning that swap16 in the sb6ktx,cpp is unused. The project i am trying to run is the sb6
project (1st). When i run the project it only says successfull build but it don't runs the program (the window with red background).

The code i have separatley written in a file called my.cpp is schown below:

#include "sb6.h"

class my_application : public sb6::application
void render(double currentTime)
static const GLfloat red[] = {1.0f, 0.0f, 0.0f, 1.0f};
glClearBufferfv(GL_COLOR, 0, red);

The tree structure of my project sb6 is:

Can someone help?

THX in advance

Maybe i have to set the my.cpp file as my first executing file? If YES how can i do this?

08-16-2014, 10:06 AM
nobody any suggestions? :(

08-16-2014, 04:32 PM
Did you try going to the "Product" menu and hit "Run"?

Make sure you created the Xcode project using CMake and not manually.