LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 05-24-2004, 05:16 PM   #1
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
help me solve glut-devel dependency's


hey guys.

im running fedora core 2 (which uses Xorg, not XFree86)
with a nvidia GeForce 4.

the graphics card is installed and working fine.

ive had no ttrouble compiling glut opengl programs with Redhat9 or fedora core 1.
butt the difference in X display managers seems to have thrown me.

anyways....
i have the X developemnt tools installed

from there i need to install Glut and Glut-devel.

installation of Glut fails due to missing dependency OpenGL.
however i know from past experiance this is just a bug, my OpenGL
was installed my nvidia installer, not by rpm, and so its safe to force with ---nodeps.

at this stage, pre-compiled GLUT binary's run just fine.

now i need glut-devel in order to compile glut.
it fails with dependency missing "openGL-devel"

in the past, i used XFree86-OpenGL-devel to solve this dependency, however
in FC2 it does not seem to work. and i cannot find a Xorg-OpenGL-devel package anywhere.

ive also tried to solve the dependency with Glut-devel. but that does not work either,
any ideas anyone ?
 
Old 05-24-2004, 05:36 PM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
and the answer is......

Fedora Core 2 uses freeGlut. Not GLUT you idiot !!!
rpm -Uvh `find /mnt | grep glut`
installed freeglut and freeglut-devel just fine.
 
Old 05-24-2004, 05:40 PM   #3
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
damn.... although freegllut and freeglut-devel are installed....
i still get compile errors like

[chris@cpc1-mapp1-6-0-cust35 gluttest]$ g++ teapot.cpp
./ccvue0Dz.o(.text+0x1b): In function `main':
: undefined reference to `glutInit'
./ccvue0Dz.o(.text+0x28): In function `main':
: undefined reference to `glutInitDisplayMode'
./ccvue0Dz.o(.text+0x3d): In function `main':
: undefined reference to `glutInitWindowSize'
./ccvue0Dz.o(.text+0x4c): In function `main':
: undefined reference to `glutInitWindowPosition'
./ccvue0Dz.o(.text+0x5c): In function `main':
: undefined reference to `glutCreateWindow'
./ccvue0Dz.o(.text+0x71): In function `main':
: undefined reference to `glutDisplayFunc'
./ccvue0Dz.o(.text+0x81): In function `main':
: undefined reference to `glutKeyboardFunc'
./ccvue0Dz.o(.text+0xa1): In function `main':
: undefined reference to `glClearColor'
./ccvue0Dz.o(.text+0xa9): In function `main':
: undefined reference to `glutMainLoop'
./ccvue0Dz.o(.text+0xc3): In function `disp()':
: undefined reference to `glClear'
./ccvue0Dz.o(.text+0xda): In function `disp()':
: undefined reference to `glutWireTeapot'
./ccvue0Dz.o(.text+0x1b2): In function `keyb(unsigned char, int, int)':
: undefined reference to `glutDestroyWindow'
collect2: ld returned 1 exit status

has any1 else managed to compile a glut program with fedora core 2 ?
 
Old 05-24-2004, 06:02 PM   #4
The_Nerd
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 540

Rep: Reputation: 32
GLUT SUCKS!!!!!!!!!!!!!!!!!!!!!!!!!!
I don't know how many times I will have to tell people this, but GLUT SUCKS!!!

Yes I do have a passion on this subject, a passionate hatered for glut!!! It sucks almost as bad as Windows!!! (Now thats passion! )

Start fixing ALL your problems by visiting the following link.

www.libsdl.org

If you don't like this option, then don't expect any help from me, as we all know that glut is just a waste of our time.

SDL ROCKS!!!!!!!!

Bye.
 
Old 05-24-2004, 06:28 PM   #5
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
Im using glut cos i need a simple interface to test my physics engine.
im not after performance.

and the Teapot function is priceless

anways.....
for any1 else with the same problem...
you can either use sdl (and make the_nerd horny)

or just add these parameters to gcc "-Wall -lglut -O"

g++ -Wall -lglut -O CppSourceCode.cpp
 
  


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
GLUT yogotie Programming 4 05-05-2005 08:17 AM
Package fam-devel needs libselinux-devel belkins Linux - Newbie 2 10-18-2004 03:02 PM
Glut???? FXRS Linux - Software 5 07-23-2003 07:18 AM
mplayer and gtk-devel and libpng-devel ... purpleburple Linux - Software 1 03-16-2003 03:57 AM
Possible bug in glibc-devel-2.2.93-5 and glibc-devel-2.2.5 mark_umr Linux - Software 1 10-22-2002 01:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:28 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