Go Back   nV News Forums > Software Forums > Software Development

Newegg Daily Deals

Reply
 
Thread Tools
Old 10-20-10, 08:08 AM   #1
pootle
Registered User
 
Join Date: May 2009
Posts: 13
Unhappy Shader program fails to compile on Linux with drivers 195.36.24

I'm starting to write an opengl program on Linux (Ubuntu 10.06).

I've used lots of the OpenGL 2.x calls without problems, but I've just bought edition 5 of the superbible to learn about OpenGL 3 capabilities, and when I try and run the Cubemap program from chapter 7, it fails with
Code:
The shader at Reflection.vp failed to compile with the following error:
0(5) : error C0201: unsupported version 330
0(8) : warning C7532: global type vec4 requires "#version 100" or later
0(9) : warning C7532: global type vec3 requires "#version 100" or later
0(11) : warning C7532: global type mat4 requires "#version 100" or later
0(13) : warning C7532: global type mat3 requires "#version 100" or later
0(17) : warning C7022: unrecognized profile specifier "smooth"
0(17) : error C0502: syntax error at token "smooth"
0(17) : error C5060: out can't be used with non-varying vVaryingTexCoord
0(26) : warning C7532: global function normalize requires "#version 100" or later
0(30) : warning C7532: global function reflect requires "#version 100" or later
0(35) : warning C7532: global variable gl_Position requires "#version 100" or later
Anyone know how to fix this?

(the earlier demos (that don't use shaders) work fine.

The software comes from the zip archive at http://www.starstonesoftware.com/OpenGL/
pootle is offline   Reply With Quote
Old 10-20-10, 12:25 PM   #2
frenchy2k1
Registered User
 
Join Date: Aug 2002
Location: San Jose, CA
Posts: 449
Default Re: Shader program fails to compile on Linux with drivers 195.36.24

which hardware do you use?
Which version of the driver?

To run an OpenGL 3.3 shader, you need hardware supporting it and an openGL 3.3 driver.
__________________
As the universe is curved, there cannot be a straight answer...
frenchy2k1 is offline   Reply With Quote
Old 10-20-10, 01:09 PM   #3
pootle
Registered User
 
Join Date: May 2009
Posts: 13
Default Re: Shader program fails to compile on Linux with drivers 195.36.24

Quote:
Originally Posted by frenchy2k1 View Post
which hardware do you use?
Which version of the driver?

To run an OpenGL 3.3 shader, you need hardware supporting it and an openGL 3.3 driver.
Driver is nvidia 195.36.24

hardware is Gforce 9300M GS on my laptop
pootle is offline   Reply With Quote
Old 10-20-10, 08:02 PM   #4
frenchy2k1
Registered User
 
Join Date: Aug 2002
Location: San Jose, CA
Posts: 449
Default Re: Shader program fails to compile on Linux with drivers 195.36.24

from the driver release:
Quote:
# Stopped installing OpenGL, VDPAU, CUDA, and OpenCL header files with the driver. Those interested in these files can get them from their Linux distributions' packages, where available, or upstream from:

OpenGL header files (gl.h, glext.h glx.h, glxext.h):
http://www.opengl.org/registry/

Note that http://www.opengl.org/registry/ does not presently provide gl.h or glx.h. Until that is resolved, NVIDIA's OpenGL " header files can still be chosen, through the “--opengl-headers” installer option.
that may help...
__________________
As the universe is curved, there cannot be a straight answer...
frenchy2k1 is offline   Reply With Quote
Old 10-21-10, 03:43 AM   #5
pootle
Registered User
 
Join Date: May 2009
Posts: 13
Smile Re: Shader program fails to compile on Linux with drivers 195.36.24

Thanks Frenchy2k1, although the program compiles OK, so it wasn't a simple header problem. I updated the drivers to 260.19.12, and the program now runs without fails, although it's losing some textures, but that looks like a fault in the program.
pootle is offline   Reply With Quote
Reply


Thread Tools

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 On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 06:01 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.