LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 11-25-2004, 10:34 PM   #1
hossamsuse
LQ Newbie
 
Registered: Jul 2004
Location: egypt
Distribution: debian
Posts: 5

Rep: Reputation: 0
problem when executing a project in kdevelop


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;

}
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
kdevelop project packaging sayantam Programming 0 11-16-2004 04:22 AM
Kdevelop project trouble. Help! gunslinger77 Linux - Newbie 0 09-06-2004 02:36 AM
KDevelop and no QT project possible? Misel Slackware 2 11-03-2003 02:18 PM
Cannot see Open GL project in KDevelop project wizard SparceMatrix Programming 2 08-07-2002 11:14 PM
Problem creating KDE project with KDevelop 2.0.1 stodge Programming 4 01-24-2002 06:22 AM


All times are GMT -5. The time now is 07:14 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration