nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   NVIDIA driver breaks DeSmuME compilation (http://www.nvnews.net/vbulletin/showthread.php?t=133845)

garyl 06-01-09 10:18 AM

NVIDIA driver breaks DeSmuME compilation
 
1 Attachment(s)
I heard NVIDIA driver broke DeSmuME compilation, and it's true.
http://forums.desmume.org/viewtopic.php?id=1205

1. Get desmume-0.9.2-1.
http://sourceforge.net/project/downl....gz&a=52243207

2. Extract desmume and build it.
$ tar zxf desmume-0.9.2-1.tar.gz
$ cd desmume-0.9.2-1
$ ./configure --prefix=/usr/ --libdir=/usr/lib64/
$ make -j3

[with NVIDIA-Linux-x86_64-185.18.14]
Code:

OGLRender.cpp: In function ‘char OGLInit()’:
OGLRender.cpp:470: error: ‘glActiveTexture’ was not declared in this scope
OGLRender.cpp: In function ‘void setTexture(unsigned int, unsigned int)’:
OGLRender.cpp:535: error: ‘glActiveTexture’ was not declared in this scope
OGLRender.cpp: In function ‘void OGLRender()’:
OGLRender.cpp:698: error: ‘glActiveTexture’ was not declared in this scope
make[2]: *** [OGLRender.o] Error 1

[without NVIDIA driver]
# sh NVIDIA-Linux-x86_64-185.18.14-pkg2.run --uninstall
# exit
$ ./configure --prefix=/usr/ --libdir=/usr/lib64/
$ make -j3
=> I can build it without errors.

I know DeSmuME isn't important for most users, but the same thing might
happen to other softwares.

guilc 06-01-09 11:00 AM

Re: NVIDIA driver breaks DeSmuME compilation
 
Hi,

Seems to be the same bug as openoffice.

Use "-DGL_GLEXT_PROTOTYPES" in your CFLAGS, and it should be OK

garyl 06-01-09 11:50 AM

Re: NVIDIA driver breaks DeSmuME compilation
 
guilc, thanks for your quick reply.

http://forums.desmume.org/viewtopic.php?id=1205
jrittenh wrote:
> Seems to be a similar issue with OO.org.
> Add this to src_compile() in the ebuild:
> append-flags -DGL_GLEXT_PROTOTYPES

operron replied:
> Seems to be worth...

and it doesn't work for me either.

I added "-DGL_GLEXT_PROTOTYPES" to desmume-0.9.2-1/Makefile and
desmume-0.9.2-1/src/Makefile.

ppr:kut 06-02-09 08:08 AM

Re: NVIDIA driver breaks DeSmuME compilation
 
I can confirm that behaviour, and that -DGL_GLEXT_PROTOTYPES doesn't fix it

AaronP 06-02-09 03:37 PM

Re: NVIDIA driver breaks DeSmuME compilation
 
It looks like the configure script for this program incorrectly ignores the CFLAGS configure parameter. It also appears to have support for getting the glActiveTexture function via the extension mechanism, but incorrectly disables that code when GL_VERSION_1_3 is defined. It should either define GL_GLEXT_PROTOTYPES or make the OGLEXT/INITOGLEXT code unconditional.


All times are GMT -5. The time now is 07:06 PM.

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