|
|
#1 | |
|
Registered User
Join Date: May 2009
Posts: 24
|
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 # 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. |
|
|
|
|
|
|
#2 | |
|
Registered User
Join Date: Jul 2005
Posts: 2
|
Hi,
Seems to be the same bug as openoffice. Use "-DGL_GLEXT_PROTOTYPES" in your CFLAGS, and it should be OK |
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: May 2009
Posts: 24
|
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. |
|
|
|
|
|
#4 | |
|
Registered User
Join Date: Oct 2006
Location: Austria
Posts: 17
|
I can confirm that behaviour, and that -DGL_GLEXT_PROTOTYPES doesn't fix it
|
|
|
|
|
|
|
#5 |
|
NVIDIA Corporation
Join Date: Mar 2005
Posts: 2,487
|
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.
|
|
|
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| nvidia driver quality decrease? | legluondunet | NVIDIA Linux | 17 | 06-26-12 10:03 AM |
| Nvidia driver compilation for kernel.org source kernel | GJAOUEN | NVIDIA Linux | 0 | 06-03-12 01:59 PM |
| Need Help Installing NVIDIA Tesla M2070Q in Linux RHEL5 | Ferianto85 | NVIDIA Linux | 0 | 05-18-12 08:35 PM |
| Getting the proprietary nvidia driver to run with Debian 3.0 r0 (woody) | Katchina404 | NVIDIA Linux | 9 | 01-12-03 08:49 AM |
| nvidia + 2.4.19 gentoo = messed up | ulukay | NVIDIA Linux | 18 | 11-01-02 11:58 PM |