well i am trying to make an opengl application on the kdevelope after i compiled the code then build after i make it i get that message
/bin/sh: ./cs-config: No such file or directory
make: Nothing to be done for `/home/hossam/now/Makefile'.
*** success *
now is the name of the project then after i try to execute the project i get the following
bash: ./now: No such file or directory
Press Enter to continue!
hope anyone could help coz i spent one hour to get the opengl library one hour to get it to work and one hour to write the code so anymore i may throw the pc out of the window
thats my whole code
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <iostream.h>
#include <stdlib.h>
#include <GL/glut.h>
int Width=500;
int Height=500;
void init(void)
{
glClearColor (0.0, 0.0, 0.0, 0.0);
glShadeModel (GL_FLAT);
}
void display(void)
{
glClear (GL_COLOR_BUFFER_BIT);
//glTranslatef(0,0,0);
glColor3f (1.0, 1.0, 1.0);
glRotatef(4,1,1,1);
glutWireTeapot(1);
//glRotatef() ; //angle,x,y,z the angel is with the one argument
glPushMatrix();
glTranslatef (4,0,0);
glColor3f (0,1.0,1.0);
glutWireTeapot(1);
glTranslatef (-8,0,0);
glColor3f (1.0,0,1.0);
glutWireTeapot(1);
glTranslatef (4,4,0);
glColor3f (1.0,1.0,0);
glutWireTeapot(1);
glTranslatef (0,-8,0);
glColor3f (1.0,0,0);
glutWireTeapot(1);
glPopMatrix();
glutSwapBuffers();
}
void reshape (int w, int h)
{
Width=w;
Height=h;
glViewport (0, 0, w, h);
glMatrixMode (GL_PROJECTION);
glLoadIdentity ();
//gluPerspective(100.0, (GLfloat) w/(GLfloat) h, 1.0, 20.0);
glOrtho(-5,5,-5,5,1,20);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
gluLookAt (0.0, 0.0, 5.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0);
}
void Idle()
{
display();
}
void keyboard (unsigned char key, int x, int y)
{
if (key == 27)
exit(1);
}
int main(int argc, char *argv[])
{
glutInit(&argc, argv);
glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGB);
glutInitWindowSize (Width, Height);
glutInitWindowPosition (100, 100);
glutCreateWindow (argv[0]);
init ();
glutDisplayFunc(display);
glutReshapeFunc(reshape);
glutKeyboardFunc(keyboard);
glutIdleFunc(Idle);
glutMainLoop();
return 0;
}