Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 06-01-09, 11:18 AM   #1
garyl
Registered User
 
Join Date: May 2009
Posts: 24
Default NVIDIA driver breaks DeSmuME compilation

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.
Attached Files
File Type: gz nvidia-bug-report.log.gz (32.7 KB, 75 views)
garyl is offline   Reply With Quote
Old 06-01-09, 12:00 PM   #2
guilc
Registered User
 
guilc's Avatar
 
Join Date: Jul 2005
Posts: 2
Default 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
guilc is offline   Reply With Quote
Old 06-01-09, 12:50 PM   #3
garyl
Registered User
 
Join Date: May 2009
Posts: 24
Default 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.
garyl is offline   Reply With Quote
Old 06-02-09, 09:08 AM   #4
ppr:kut
Registered User
 
Join Date: Oct 2006
Location: Austria
Posts: 17
Default Re: NVIDIA driver breaks DeSmuME compilation

I can confirm that behaviour, and that -DGL_GLEXT_PROTOTYPES doesn't fix it
ppr:kut is offline   Reply With Quote
Old 06-02-09, 04:37 PM   #5
AaronP
NVIDIA Corporation
 
AaronP's Avatar
 
Join Date: Mar 2005
Posts: 2,487
Default 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.
AaronP 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
nvidia driver quality decrease? legluondunet NVIDIA Linux 17 06-26-12 11:03 AM
Nvidia driver compilation for kernel.org source kernel GJAOUEN NVIDIA Linux 0 06-03-12 02:59 PM
Need Help Installing NVIDIA Tesla M2070Q in Linux RHEL5 Ferianto85 NVIDIA Linux 0 05-18-12 09:35 PM
Getting the proprietary nvidia driver to run with Debian 3.0 r0 (woody) Katchina404 NVIDIA Linux 9 01-12-03 09:49 AM
nvidia + 2.4.19 gentoo = messed up ulukay NVIDIA Linux 18 11-02-02 12:58 AM

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


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