nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Header files in 260.x releases (http://www.nvnews.net/vbulletin/showthread.php?t=154864)

Deanjo 09-07-10 05:06 PM

Header files in 260.x releases
 
Please reconsider the packaging of the header files back into the installer for the 260.x series. Having to go to separate sources for those are a royal pain in the a**.

Deanjo 09-07-10 06:38 PM

Re: Header files in 260.x releases
 
Where for example are we supposed to get gl.h as the nvidia supplied ones varied dramatically from the distro's gl.h and is not readily downloadable from http://www.opengl.org/registry/ ?

zbiggy 09-07-10 07:48 PM

Re: Header files in 260.x releases
 
I agree. In case of vdpau everyone knows that both most recent headers (vdpau.h and vdpau_x11.h) sits inside libvdpau-0.4.tar.bz2 downloadable from here:
http://cgit.freedesktop.org/~aplattner/libvdpau/

I (and I'm sure other packagers/developers) would like to gain similar detailed information from Nvidia about the rest of missing header files:

OpenGL header files (gl.h, glext.h glx.h, glxext.h):
gl.h ???? No link on page ???
http://www.opengl.org/registry/api/glext.h
glx.h ???? No link on page ???
http://www.opengl.org/registry/api/glxext.h

* CUDA and OpenCL header files (cuda.h, cudaGL.h, cudaVDPAU.h, cl.h, cl_gl.h, cl_platform.h)
??? Have no idea where to look for header files. Any hint? Package name? Link?

There is nothing wrong in moving headers to separate packages, especially when they are compiled from sources. libvdpau is perfect example of well done integration of library sources and headers in one package. We can be sure that both match each other because they are in the same package.

However having library in Nvidia binary driver package and header in any other package somewhere is bad idea - we will never be sure if header matches perfect current driver release - this renders such header useless.

Stephen Warren 09-08-10 11:07 AM

Re: Header files in 260.x releases
 
The CUDA headers should be available in the CUDA toolkit. See:

http://developer.nvidia.com/object/gpucomputing.html

(click the link "CUDA Toolkit 3.1 now available")

gonzo_s 09-08-10 01:47 PM

Re: Header files in 260.x releases
 
Oh my god... Why are doing this to us? :(

Does this mean that if I want to use OpenGL applications I will have to search for these headers in order to get it working or not?

For e.g. I play OpenArena (Quake III Arena remake) - do I have to download these godd...n headers or not? And where should we put them before installing the driver?

Stephen Warren 09-08-10 01:57 PM

Re: Header files in 260.x releases
 
The header files are only required to compile/develop/write applications. If you simply want to use/run existing applications, then the files are not required.

Deanjo 09-09-10 11:56 AM

Re: Header files in 260.x releases
 
Quote:

Originally Posted by Stephen Warren (Post 2314934)
The header files are only required to compile/develop/write applications.

Ya which makes it a royal pain in the ass now to use anything but prepackaged apps. If you want people to develop for your solutions you shouldn't send them on a "treasure hunt" to get the needed headers.

Nerzek 09-09-10 12:35 PM

Re: Header files in 260.x releases
 
I believe the header files for the OpenGL portion can be obtained from Mesa3D ( at least for Linux, anyways )

I had to use them, anyways, to compile the xorg-server because the ones that were in Nvidia's driver package were incomplete or different from the "standard"; The headers from the binary package were at least missing quite a few definitions.

dk75 09-10-10 12:00 PM

Re: Header files in 260.x releases
 
I have this
Code:

root@kitsunes-zotac:~# echo -e "GL/gl.h\nGL/glext.h\nGL/glx.h\nGL/glxext.h" | xargs dpkg-query -S
mesa-common-dev: /usr/include/GL/gl.h
mesa-common-dev: /usr/include/GL/glext.h
mesa-common-dev: /usr/include/GL/glx.h
mesa-common-dev: /usr/include/GL/glxext.h
root@kitsunes-zotac:~# dpkg-query -l mesa-common-dev |awk '$1=="ii" {print}'
ii  mesa-common-dev                                        7.6.0-1ubuntu4                                              Developer documentation for Mesa
root@kitsunes-zotac:~#

on my Ubuntu
Code:

root@kitsunes-zotac:~# lsb_release -a
No LSB modules are available.
Distributor ID:        Ubuntu
Description:        Ubuntu 9.10
Release:        9.10
Codename:        karmic
root@kitsunes-zotac:~# uname -a
Linux kitsunes-zotac 2.6.32-22-generic #36-Ubuntu SMP Fri Jun 4 18:20:46 UTC 2010 x86_64 GNU/Linux
root@kitsunes-zotac:~#

from standard Ubuntu repository

sl1pkn07 09-10-10 05:33 PM

Re: Header files in 260.x releases
 
in archlinux is "mesa" package

zbiggy 09-16-10 06:10 AM

Re: Header files in 260.x releases
 
Splitting headers and libraries makes no sense. We will never be sure if library from current driver package will perfectly match header from cudatoolkit or OpenGL reference headers from OpenGL web page. Even Nvidia does not know if they will match because my questions from post #3 about compatibility was ignored. Recommended driver for cuda is 256.40 so headers in cuda toolkit are matched by this release probably not the current beta. The best what Nvidia can do is to go VDPAU way and create OpenGL package (libs+includes) and openCL (libs+includes) or come back to what was present in 256 family (exceptr VDPAU which is correctly excluded to other package (libs+includes).

zbiggy 09-16-10 06:22 AM

Re: Header files in 260.x releases
 
Quote:

Originally Posted by Stephen Warren (Post 2314815)
The CUDA headers should be available in the CUDA toolkit. See:

http://developer.nvidia.com/object/gpucomputing.html

(click the link "CUDA Toolkit 3.1 now available")

I downloaded 70MB file just to extract 152kb of header files. And have no idea which driver releases will they match. The recommended driver is still 256.40 for cuda. I understand moving all vdpau to external package - this is good. But OpenGL and OpenCL libs are still part of driver and header files should be kept together with them.


All times are GMT -5. The time now is 03:14 AM.

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