LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 02-20-2007, 10:16 AM   #1
Hnefi
LQ Newbie
 
Registered: Feb 2007
Posts: 6

Rep: Reputation: 0
How to find OpenGL library?


Hello.

I recently installed Slackware 11 on a backup computer to compile and test portable versions of my programs on. Unfortunately, I can't get gcc (3.4.6) to recognize my OpenGL commands - probably because I'm having severe problems finding the effing OpenGL library file.

I've grepped the entire FS for countless permutations of opengl and have found nothing that looks like a library file. So I'm wondering, what are the equivalents to OpenGL32.lib and glu32.lib on this platform?
 
Old 02-20-2007, 11:16 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,676
Blog Entries: 1

Rep: Reputation: 204Reputation: 204Reputation: 204
Using Mesa-6.5 to provide OpenGL libraries (there are other sources of OpenGL libraries), the following are installed libGL.so, libGLU.so, libGLw.so, libglut.so. They are most likely going to be in /usr or /usr/X11R6. I don't recall off the top of my head whether they are installed straight into $PREFIX/lib or into $PREFIX/lib/GL.
 
Old 02-20-2007, 01:40 PM   #3
Hnefi
LQ Newbie
 
Registered: Feb 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Okie, thanks.

Does it matter where I get my GL libs from? In Windows, the required GL libs are always part of the compiler, so I haven't had cause to care about it before.
 
Old 02-20-2007, 03:04 PM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,676
Blog Entries: 1

Rep: Reputation: 204Reputation: 204Reputation: 204
OpenGL is a specification, so any library that satisfies compliance requirements with the specification (and pays a fee to SGI) is an OpenGL library. Mesa3d is probably the most common open source implementation of the OpenGL specification. However, Mesa doesn't pay the fee (AFAIK) so they can't officially call their implementation OpenGL. Both nVidia and ATI provide free, but closed-source, OpenGL libraries that are optimized for their specific GPU.
 
Old 02-22-2007, 07:21 AM   #5
Hnefi
LQ Newbie
 
Registered: Feb 2007
Posts: 6

Original Poster
Rep: Reputation: 0
It seems I've got libGL.so, but not libGLU.so.

As far as I understand, Mesa3D is an implementation of OpenGL that runs everything in software. Is that right? Because if so, I need to find another source since I want hardware acceleration.

I've tried Nvidias homepage since I'm using Nvidia-based hardware. No luck. I've tried googling for the files, but mostly get broken links or references to Mesa. Finding a simple lib file turns out to be more difficult than I ever imagined it could be.

So can anyone point me to a nice download of a complete, hardware accelerated implementation of OpenGL that I can use with gcc/g++? Please?
 
Old 02-22-2007, 07:46 AM   #6
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,676
Blog Entries: 1

Rep: Reputation: 204Reputation: 204Reputation: 204
nVidia -> http://www.nvidia.com/object/unix.html
 
  


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
cant find a library alaios Linux - Software 2 01-31-2006 04:05 PM
Americas army and 'Could not load OpenGL library' STARHARVEST Linux - Games 2 12-23-2005 12:35 PM
display problem while running C program using openGL library narendramandiwalmca Linux - Software 3 06-15-2005 03:49 PM
How To Find Out What A Library Does? nysb Linux - Software 1 05-27-2004 10:46 AM
UT2003 & OpenGL library crispian Linux - Games 3 05-03-2004 09:56 PM


All times are GMT -5. The time now is 08:17 PM.

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