LinuxQuestions.org
Visit Jeremy's Blog.
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 09-30-2003, 02:58 AM   #1
sodamnmad
LQ Newbie
 
Registered: Sep 2003
Distribution: slackware
Posts: 19

Rep: Reputation: 2
nvidia opengl


I'm taking a graphics class and we are going to learn opengl (on windows) but I want to be able to do my work (at least some of it) on my linux box. I'm running Slackware 9 and I have installed the NVidia drivers for my gefore4mx card and it seems to have gone well. I can't seem to find the GL/glut.h header (I even looked in /usr/share/doc/NVIDIA_GLX-1.0/include/GL) I read in another post that glut.h comes with mesa but in another website (I can't find it again) it says that mesa and nvidia drivers are incompatible.

I don't know if it shows yet, but I don't know too much about what I'm doing. If it makes a difference, this is a simple file that I tried to compile and the error messages that I got:


mdeanda@lin2k:~/opengl$ cat test.c
#include<GL/glut.h>

int main(int argc, char **argv)
{
glutInit(&argc,argv);
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
glutInitWindowSize(500,500);
glutInitWindowPosition(0,0);
glutCreateWindow("simple opengl example");
glutDisplayFunc(display);
//myinit();
glutMainLoop();
return 0;
}
mdeanda@lin2k:~/opengl$ gcc test.c
test.c:1:20: GL/glut.h: No such file or directory
test.c: In function `main':
test.c:6: `GLUT_SINGLE' undeclared (first use in this function)
test.c:6: (Each undeclared identifier is reported only once
test.c:6: for each function it appears in.)
test.c:6: `GLUT_RGB' undeclared (first use in this function)
test.c:10: `display' undeclared (first use in this function)
 
Old 09-30-2003, 03:27 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
GLUT comes with Mesa. From my experience I can tell you that GLUT code is very easy portable (you just recompile). Ithink you should be able to write the whole project using Linux (and then check fps in both system ).
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
nvidia openGL issue gtanghookup Linux - Software 7 04-24-2004 02:23 AM
NVIDIA OpenGL problem kingka Linux - Hardware 11 02-28-2004 07:37 AM
nVidia, wine, openGL, RH 9 walterw Linux - Software 0 08-04-2003 11:29 AM
openGL, Nvidia, and Slackware contrasutra Linux - Software 3 04-04-2003 10:14 PM
OpenGL Problems (nvidia) vortech Linux - General 5 12-11-2001 05:13 PM

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

All times are GMT -5. The time now is 09:39 PM.

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