What's new

Can't compile glN64-0.4.1-rc3

GaMMa

New member
I get this error when I try to compile glN64-0.4.1-rc3.
I'm using Gentoo, an NVidia card and the 2.6.4 kernel. I know someone had this problem before, but I couldn't find the post and when I checked last there wasn't a solution for it.

Help! I'm still using glN64-0.4.1-pre1 :(
Code:
gamma@gamma glN64-0.4.1-rc3 $ make
g++ -I. -D__LINUX__ -DX86_ASM `sdl-config --cflags` `gtk-config --cflags gtk gthread` `glib-config --cflags` -fPIC -finline-functions -funroll-loops -ffast-math -mcpu=`uname -m` -O2   -c -o 2xSAI.o 2xSAI.cpp
g++ -I. -D__LINUX__ -DX86_ASM `sdl-config --cflags` `gtk-config --cflags gtk gthread` `glib-config --cflags` -fPIC -finline-functions -funroll-loops -ffast-math -mcpu=`uname -m` -O2   -c -o CRC.o CRC.cpp
g++ -I. -D__LINUX__ -DX86_ASM `sdl-config --cflags` `gtk-config --cflags gtk gthread` `glib-config --cflags` -fPIC -finline-functions -funroll-loops -ffast-math -mcpu=`uname -m` -O2   -c -o Combiner.o Combiner.cpp
In file included from OpenGL.h:12,
                 from Combiner.cpp:6:
/usr/X11R6/include/GL/gl.h:1731: error: declaration of C function `void
   glMultiDrawArrays(unsigned int, const GLint*, const GLsizei*, int)'
   conflicts with
/usr/X11R6/include/GL/glext.h:2618: error: previous declaration `void
   glMultiDrawArrays(unsigned int, GLint*, GLsizei*, int)' here
make: *** [Combiner.o] Error 1
 

blight

New member
hmm... can you make sure that your OpenGL.h looks like this at the beginning:
Code:
#ifndef OPENGL_H
#define OPENGL_H

#ifndef __LINUX__
# include <windows.h>
# include "wglext.h"
# include <GL/gl.h>
# include "glext.h"
#else
# include "winlnxdefs.h"
# define GL_GLEXT_PROTOTYPES 1
/*# include <GL/gl.h>
# include <GL/glext.h>*/
# include "SDL.h"
# include "SDL_opengl.h"
#endif // __LINUX__

it include SDL.h and SDL_opengl.h instead of GL/gl.h and GL/glext.h and should be more portable this way (and i do not remember wether this is rc3 or later)
 
OP
G

GaMMa

New member
This wasn't in RC3, but it did compile. Thanks :D.

The build in portage (-pre1) seems to render Zelda the prettiest. RC3 distorts the trees and Liunks drawing on his house.
 
Last edited:

Top