LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-11-2006, 10:19 PM   #1
JonBrant
Member
 
Registered: Jul 2004
Distribution: Suse 10.2
Posts: 43

Rep: Reputation: 15
I have a make file and source file. I want to use Kdevelop


Hiya. I downloaded the Linux code from Nehe's Gamedev site on OpenGL http://nehe.gamedev.net/data/lessons...esson02.tar.gz
That file

It compiles and runs in make just fine, but I want to use Kdevelop

How do I create a project using those files? I tried just make a new project and copying/pasting the code from the source file, but it won't build... so I'm at a loss. Anyone?

In particular, this is the output when I try to build it...

Code:
cd '/home/Jon/testing/debug' && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" gmake -k 
gmake all-recursive
Making all in src
/bin/sh ../libtool --tag=CXX --mode=link g++ -O0 -g3 -o testing testing.o 
g++ -O0 -g3 -o testing testing.o 
testing.o: In function `keyPressed(unsigned char, int, int)':
/home/Jon/testing/src/testing.cpp:95: undefined reference to `glutDestroyWindow'
testing.o: In function `DrawGLScene()':
/home/Jon/testing/src/testing.cpp:58: undefined reference to `glClear'
/home/Jon/testing/src/testing.cpp:59: undefined reference to `glLoadIdentity'
/home/Jon/testing/src/testing.cpp:61: undefined reference to `glTranslatef'
/home/Jon/testing/src/testing.cpp:62: undefined reference to `glRotatef'
/home/Jon/testing/src/testing.cpp:64: undefined reference to `glBegin'
/home/Jon/testing/src/testing.cpp:65: undefined reference to `glVertex3f'
/home/Jon/testing/src/testing.cpp:66: undefined reference to `glVertex3f'
/home/Jon/testing/src/testing.cpp:67: undefined reference to `glVertex3f'
/home/Jon/testing/src/testing.cpp:68: undefined reference to `glEnd'
/home/Jon/testing/src/testing.cpp:70: undefined reference to `glTranslatef'
/home/Jon/testing/src/testing.cpp:71: undefined reference to `glColor3f'
/home/Jon/testing/src/testing.cpp:73: undefined reference to `glBegin'
/home/Jon/testing/src/testing.cpp:74: undefined reference to `glVertex3f'
/home/Jon/testing/src/testing.cpp:75: undefined reference to `glVertex3f'
/home/Jon/testing/src/testing.cpp:76: undefined reference to `glVertex3f'
/home/Jon/testing/src/testing.cpp:77: undefined reference to `glVertex3f'
/home/Jon/testing/src/testing.cpp:78: undefined reference to `glEnd'
/home/Jon/testing/src/testing.cpp:81: undefined reference to `glutSwapBuffers'
testing.o: In function `ReSizeGLScene(int, int)':
/home/Jon/testing/src/testing.cpp:46: undefined reference to `glViewport'
/home/Jon/testing/src/testing.cpp:48: undefined reference to `glMatrixMode'
/home/Jon/testing/src/testing.cpp:49: undefined reference to `glLoadIdentity'
/home/Jon/testing/src/testing.cpp:51: undefined reference to `gluPerspective'
/home/Jon/testing/src/testing.cpp:52: undefined reference to `glMatrixMode'
testing.o: In function `InitGL(int, int)':
/home/Jon/testing/src/testing.cpp:26: undefined reference to `glClearColor'
/home/Jon/testing/src/testing.cpp:27: undefined reference to `glClearDepth'
/home/Jon/testing/src/testing.cpp:28: undefined reference to `glDepthFunc'
/home/Jon/testing/src/testing.cpp:29: undefined reference to `glEnable'
/home/Jon/testing/src/testing.cpp:30: undefined reference to `glShadeModel'
/home/Jon/testing/src/testing.cpp:32: undefined reference to `glMatrixMode'
/home/Jon/testing/src/testing.cpp:33: undefined reference to `glLoadIdentity'
/home/Jon/testing/src/testing.cpp:35: undefined reference to `gluPerspective'
/home/Jon/testing/src/testing.cpp:37: undefined reference to `glMatrixMode'
testing.o: In function `main':
/home/Jon/testing/src/testing.cpp:106: undefined reference to `glutInit'
/home/Jon/testing/src/testing.cpp:113: undefined reference to `glutInitDisplayMode'
/home/Jon/testing/src/testing.cpp:116: undefined reference to `glutInitWindowSize'
/home/Jon/testing/src/testing.cpp:119: undefined reference to `glutInitWindowPosition'
/home/Jon/testing/src/testing.cpp:122: undefined reference to `glutCreateWindow'
/home/Jon/testing/src/testing.cpp:125: undefined reference to `glutDisplayFunc'
/home/Jon/testing/src/testing.cpp:131: undefined reference to `glutIdleFunc'
/home/Jon/testing/src/testing.cpp:134: undefined reference to `glutReshapeFunc'
/home/Jon/testing/src/testing.cpp:137: undefined reference to `glutKeyboardFunc'
/home/Jon/testing/src/testing.cpp:143: undefined reference to `glutMainLoop'
collect2: ld returned 1 exit status
gmake[2]: *** [testing] Error 1
gmake[2]: Target `all' not remade because of errors.
gmake[2]: Nothing to be done for `all-am'.
gmake[1]: *** [all-recursive] Error 1
gmake: *** [all] Error 2
*** Exited with status: 2 ***

Last edited by JonBrant; 10-11-2006 at 10:33 PM.
 
Old 10-12-2006, 12:37 AM   #2
JonBrant
Member
 
Registered: Jul 2004
Distribution: Suse 10.2
Posts: 43

Original Poster
Rep: Reputation: 15
Figured it out. Import project did the trick
 
Old 10-12-2006, 11:09 AM   #3
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
nice work.. glad you got everything squared away. fyi, those errors you listed above are linking errors and in kdevelop you can goto the project options and to either the configure or make tab and you can add in additional libraries.

good luck
 
Old 10-15-2006, 04:49 AM   #4
JonBrant
Member
 
Registered: Jul 2004
Distribution: Suse 10.2
Posts: 43

Original Poster
Rep: Reputation: 15
^ Hrm. Maybe I'm using a different version of Kdevelop? In order to get it working I had to play around in the makefile itself... no idea what I was doing but I've gotten it working. If I could link to them as you described, that would save me... a lot... of headache. I go to project options, but I have no tabs... I have icons on the left "General, Plugins, Version Control, File Templates, Project Documentation, File List, C++ Specific, Run Options, Build Options, Bookmarks, File Groups, Debugger, Ctags, Doxygen, File Tree" but no configure or make tabs. I've been looking for a way to add the libraries from Kdevelop as you said... but I just can't find any. Maybe you could help me clear this up? Would be much appreciated
 
Old 10-15-2006, 10:07 AM   #5
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
Quote:
Originally Posted by JonBrant
^ Hrm. Maybe I'm using a different version of Kdevelop? In order to get it working I had to play around in the makefile itself... no idea what I was doing but I've gotten it working. If I could link to them as you described, that would save me... a lot... of headache. I go to project options, but I have no tabs... I have icons on the left "General, Plugins, Version Control, File Templates, Project Documentation, File List, C++ Specific, Run Options, Build Options, Bookmarks, File Groups, Debugger, Ctags, Doxygen, File Tree" but no configure or make tabs. I've been looking for a way to add the libraries from Kdevelop as you said... but I just can't find any. Maybe you could help me clear this up? Would be much appreciated
sorry i was going from memory.. look into the 'Build Options', there should be an area in there to add in extra libs. normally you should not have to edit the makefile manually when using kdevelop..
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
making a playlist file from a html source file linuxhippy Slackware 2 06-30-2006 07:14 AM
Help!! Make file:62: *** Linux source not found. Stop. harlemno1 Linux - Newbie 6 03-04-2005 04:22 AM
when creating a *.iso file, how to make the file size smaller? minm Linux - Newbie 8 12-26-2004 09:58 PM
No Rule to make file - Kdevelop ashwinipahuja Programming 2 05-20-2004 03:37 AM
Parse error returned when compiling a source file with Kdevelop spilios Programming 1 09-09-2003 06:00 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:48 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration