nel-all
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nel] Building NeL from CVS


From: David Castro
Subject: Re: [Nel] Building NeL from CVS
Date: Mon, 20 Sep 2004 02:52:46 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040322

Aha. I was able to patch the driver_opengl.h file. It appears that somehow the declaration of the H_AUTO_OGL define was only located in the ifdef for NL_OS_WINDOWS, so I duplicated it for the else block (NL_OS_UNIX) also. Compiled and installed just fine. I have attached a patch for this file.

Cheers,
David

on 09/19/04 13:23 David Castro wrote:

I had a couple issues when trying checkout and build NeL from CVS.
First, it appears that there is a permissions problem with the CVS tree, so I get an error when I try to checkout a particular release:

   $ cvs checkout -r last_stable code
cvs [server aborted]: cannot write /home/cvsroot/CVSROOT/val-tags: Permission denied

Second, I downloaded a tar/gz by changing the tag to last_stable with cvsweb and clicking on "Download tarball". When I try to build, I get build errors. The errors seem to appear in driver_opengl.h (rev 1.178) and driver_opengl.cpp (rev 1.224). Here is a portion of the build error:

driver_opengl.h:818: error: `CDriverGL_forceActivateTexEnvColor' undeclared
  (first use this function)
driver_opengl.h:818: error: (Each undeclared identifier is reported only once
  for each function it appears in.)
driver_opengl.h:818: error: `H_AUTO_OGL' undeclared (first use this function)
driver_opengl.h:819: error: parse error before `;' token
driver_opengl.cpp: In constructor `NL3D::CDriverGL::CDriverGL()':
driver_opengl.cpp:222: error: `CDriverGL_CDriverGL' undeclared (first use this
  function)
driver_opengl.cpp:222: error: `H_AUTO_OGL' undeclared (first use this function)
driver_opengl.cpp:223: error: parse error before `=' token
driver_opengl.cpp: In destructor `virtual NL3D::CDriverGL::~CDriverGL()':
driver_opengl.cpp:360: error: `CDriverGL_CDriverGLDtor' undeclared (first use
  this function)
driver_opengl.cpp:360: error: `H_AUTO_OGL' undeclared (first use this function)
driver_opengl.cpp:361: error: parse error before `(' token
driver_opengl.cpp: In member function `virtual bool
  NL3D::CDriverGL::init(unsigned int)':
driver_opengl.cpp:367: error: `CDriverGL_init' undeclared (first use this
  function)
driver_opengl.cpp:367: error: `H_AUTO_OGL' undeclared (first use this function)
driver_opengl.cpp:409: error: parse error before `return'
driver_opengl.cpp: In member function `virtual void
  NL3D::CDriverGL::disableHardwareVertexProgram()':
driver_opengl.cpp:416: error: `CDriverGL_disableHardwareVertexProgram'
  undeclared (first use this function)
driver_opengl.cpp:416: error: `H_AUTO_OGL' undeclared (first use this function)
driver_opengl.cpp:417: error: parse error before `.' token
driver_opengl.cpp: In member function `virtual void
  NL3D::CDriverGL::disableHardwareVertexArrayAGP()':
driver_opengl.cpp:422: error: `CDriverGL_disableHardwareVertexArrayAGP'
  undeclared (first use this function)
driver_opengl.cpp:422: error: `H_AUTO_OGL' undeclared (first use this function)
driver_opengl.cpp:423: error: parse error before `.' token
driver_opengl.cpp: In member function `virtual void
  NL3D::CDriverGL::disableHardwareTextureShader()':
driver_opengl.cpp:428: error: `CDriverGL_disableHardwareTextureShader'
  undeclared (first use this function)
driver_opengl.cpp:428: error: `H_AUTO_OGL' undeclared (first use this function)
driver_opengl.cpp:429: error: parse error before `.' token
driver_opengl.cpp: In member function `virtual bool
  NL3D::CDriverGL::setDisplay(void*, const NL3D::GfxMode&, bool)':
driver_opengl.cpp:436: error: `CDriverGL_setDisplay' undeclared (first use this
  function)
driver_opengl.cpp:436: error: `H_AUTO_OGL' undeclared (first use this function)
driver_opengl.cpp:438: error: parse error before `width'
driver_opengl.cpp:990: error: `width' undeclared (first use this function)
driver_opengl.cpp: In member function `virtual bool
  NL3D::CDriverGL::setMode(const NL3D::GfxMode&)':
driver_opengl.cpp:1416: error: `CDriverGL_setMode' undeclared (first use this
  function)
driver_opengl.cpp:1416: error: `H_AUTO_OGL' undeclared (first use this
  function)
driver_opengl.cpp:1490: error: parse error before `return'
driver_opengl.cpp: In member function `virtual bool
  NL3D::CDriverGL::getModes(_STL::vector<NL3D::GfxMode,
  _STL::allocator<NL3D::GfxMode> >&)':
driver_opengl.cpp:1496: error: `CDriverGL_getModes' undeclared (first use this
  function)
driver_opengl.cpp:1496: error: `H_AUTO_OGL' undeclared (first use this
  function)
driver_opengl.cpp:1518: error: parse error before `::' token
driver_opengl.cpp: In member function `virtual bool
  NL3D::CDriverGL::getCurrentScreenMode(NL3D::GfxMode&)':
driver_opengl.cpp:1526: error: `CDriverGL_getCurrentScreenMode' undeclared
  (first use this function)
driver_opengl.cpp:1526: error: `H_AUTO_OGL' undeclared (first use this
  function)
driver_opengl.cpp:1540: error: parse error before `::' token
driver_opengl.cpp: In member function `void
  NL3D::CDriverGL::resetTextureShaders()':
driver_opengl.cpp:1548: error: `CDriverGL_resetTextureShaders' undeclared
  (first use this function)
driver_opengl.cpp:1548: error: `H_AUTO_OGL' undeclared (first use this
  function)
driver_opengl.cpp:1549: error: parse error before `if'
driver_opengl.cpp: At global scope:
driver_opengl.cpp:1577: error: parse error before `::' token
driver_opengl.cpp:1589: error: syntax error before `::' token
driver_opengl.cpp:1614: error: syntax error before `::' token
driver_opengl.cpp:1621: error: `tex' was not declared in this scope
driver_opengl.cpp:1621: error: ISO C++ forbids declaration of `
  getTextureShareName' with no type
driver_opengl.cpp:1621: error: initializer list being treated as compound
  expression
driver_opengl.cpp:1623: error: parse error before `{' token
driver_opengl.cpp:1625: error: syntax error before `&' token
driver_opengl.cpp:1626: error: ISO C++ forbids declaration of `result' with no
  type
driver_opengl.cpp:1626: error: `rTexDrvInfos' was not declared in this scope driver_opengl.cpp:1626: error: `rTexDrvInfos' was not declared in this scope
driver_opengl.cpp:1627: error: parse error before `}' token
driver_opengl.cpp:1633: error: syntax error before `::' token
driver_opengl.cpp:1639: error: ISO C++ forbids declaration of `glClear' with no
  type
driver_opengl.cpp:1639: error: `int glClear' redeclared as different kind of
  symbol
/usr/X11R6/include/GL/gl.h:977: error: previous declaration of `void
  glClear(unsigned int)'
driver_opengl.cpp:1643: error: parse error before `return'
driver_opengl.cpp:1648: error: syntax error before `::' token
driver_opengl.cpp:1654: error: syntax error before `.' token
driver_opengl.cpp:1655: error: ISO C++ forbids declaration of `glClear' with no
  type
driver_opengl.cpp:1655: error: redefinition of `int glClear'
driver_opengl.cpp:1639: error: `int glClear' previously defined here
driver_opengl.cpp:1659: error: parse error before `return'
driver_opengl.cpp:1664: error: syntax error before `::' token
driver_opengl.cpp:1673: error: syntax error before `::' token
driver_opengl.cpp:1679: error: ISO C++ forbids declaration of `
  activeVertexProgram' with no type
driver_opengl.cpp:1679: warning: initialization to non-pointer type `int' from
  NULL
driver_opengl.cpp:1679: warning: argument to non-pointer type `int' from NULL
driver_opengl.cpp:1684: error: parse error before `if'
driver_opengl.cpp:1688: error: parse error before `if'
driver_opengl.cpp:1692: error: syntax error before `.' token
driver_opengl.cpp:1698: error: syntax error before `.' token
driver_opengl.cpp:1703: error: `dummyVB' was not declared in this scope
driver_opengl.cpp:1703: error: ISO C++ forbids declaration of `
  activeVertexBuffer' with no type
driver_opengl.cpp:1704: error: parse error before `{' token
driver_opengl.cpp:1704: error: ISO C++ forbids declaration of `createDebug'
  with no type
driver_opengl.cpp:1704: error: `int NLMISC::createDebug()' should have been
  declared inside `NLMISC'
driver_opengl.cpp:1704: error: parse error before `if'
driver_opengl.cpp:1704: error: syntax error before `->' token
driver_opengl.cpp:1704: error: syntax error before `->' token
driver_opengl.cpp:1704: error: ISO C++ forbids declaration of `GlobalAssertCall
  ' with no type
driver_opengl.cpp:1704: error: conflicting types for `int
  NLMISC::GlobalAssertCall'
../../../../include/nel/misc/debug.h:561: error: previous declaration as `bool
  NLMISC::GlobalAssertCall'
driver_opengl.cpp:1704: error: parse error before `}' token
driver_opengl.cpp:1740: error: syntax error before `++' token
driver_opengl.cpp:1763: error: `dpy' was not declared in this scope
driver_opengl.cpp:1763: error: `win' was not declared in this scope
driver_opengl.cpp:1763: error: ISO C++ forbids declaration of `glXSwapBuffers'
  with no type
driver_opengl.cpp:1763: error: `int glXSwapBuffers' redeclared as different
  kind of symbol
/usr/X11R6/include/GL/glx.h:83: error: previous declaration of `void
  glXSwapBuffers(Display*, long unsigned int)'
driver_opengl.cpp:1763: error: initializer list being treated as compound
  expression
driver_opengl.cpp:1774: error: parse error before `for'
driver_opengl.cpp:1774: error: `inlGetNumTextStages' was not declared in this
  scope
driver_opengl.cpp:1774: error: parse error before `;' token
driver_opengl.cpp:1774: error: syntax error before `++' token
driver_opengl.cpp:1778: error: `stage' was not declared in this scope
driver_opengl.cpp:1778: error: ISO C++ forbids declaration of `
  _CurrentTextureInfoGL' with no type
driver_opengl.cpp:1778: error: assignment (not initialization) in declaration
driver_opengl.cpp:1782: error: syntax error before `::' token
driver_opengl.cpp:1783: error: syntax error before `.' token
driver_opengl.cpp:1784: error: `stage' was not declared in this scope
driver_opengl.cpp:1784: error: `env' was not declared in this scope
driver_opengl.cpp:1784: error: ISO C++ forbids declaration of `
  forceActivateTexEnvMode' with no type
driver_opengl.cpp:1784: error: initializer list being treated as compound
  expression
driver_opengl.cpp:1785: error: `stage' was not declared in this scope
driver_opengl.cpp:1785: error: `env' was not declared in this scope
driver_opengl.cpp:1785: error: ISO C++ forbids declaration of `
  forceActivateTexEnvColor' with no type
driver_opengl.cpp:1785: error: initializer list being treated as compound
  expression
driver_opengl.cpp:1786: error: parse error before `}' token
driver_opengl.cpp:1792: error: syntax error before `.' token
driver_opengl.cpp:1798: error: ISO C++ forbids declaration of `
  _NVTextureShaderEnabled' with no type
driver_opengl.cpp:1799: error: parse error before `}' token
driver_opengl.cpp:1800: error: ISO C++ forbids declaration of `_CurrentMaterial
  ' with no type
driver_opengl.cpp:1800: warning: initialization to non-pointer type `int' from
  NULL
driver_opengl.cpp:1800: warning: argument to non-pointer type `int' from NULL
driver_opengl.cpp:1803: error: syntax error before `.' token
driver_opengl.cpp:1804: error: syntax error before `.' token
driver_opengl.cpp:1805: error: ISO C++ forbids declaration of `
  _NbSetupMaterialCall' with no type
driver_opengl.cpp:1806: error: ISO C++ forbids declaration of `
  _NbSetupModelMatrixCall' with no type
driver_opengl.cpp:1809: error: syntax error before `.' token
driver_opengl.cpp:1815: error: syntax error before `++' token
driver_opengl.cpp:1825: error: syntax error before `::' token
driver_opengl.cpp:1832: error: syntax error before `::' token
driver_opengl.cpp:1834: error: ISO C++ forbids declaration of `
  _SwapBufferCounter' with no type
driver_opengl.cpp:1837: error: parse error before `while'
driver_opengl.cpp:1842: error: ISO C++ forbids declaration of `
  deleteFragmentShaders' with no type
driver_opengl.cpp:1848: error: ISO C++ forbids declaration of `
  resetVertexArrayRange' with no type
driver_opengl.cpp:1853: error: parse error before `delete'
driver_opengl.cpp:1855: error: ISO C++ forbids declaration of `
  _AGPVertexArrayRange' with no type
driver_opengl.cpp:1855: warning: initialization to non-pointer type `int' from
  NULL
driver_opengl.cpp:1855: warning: argument to non-pointer type `int' from NULL
driver_opengl.cpp:1856: error: ISO C++ forbids declaration of `
  _VRAMVertexArrayRange' with no type
driver_opengl.cpp:1856: warning: initialization to non-pointer type `int' from
  NULL
driver_opengl.cpp:1856: warning: argument to non-pointer type `int' from NULL
driver_opengl.cpp:1919: error: parse error before `if'
driver_opengl.cpp:1922: error: ISO C++ forbids declaration of `createDebug'
  with no type
driver_opengl.cpp:1922: error: `int NLMISC::createDebug()' should have been
  declared inside `NLMISC'
driver_opengl.cpp:1922: error: ISO C++ forbids declaration of `InfoLog' with no
  type
driver_opengl.cpp:1922: error: conflicting types for `int NLMISC::InfoLog'
../../../../include/nel/misc/debug.h:47: error: previous declaration as `
  NLMISC::CLog*NLMISC::InfoLog'
driver_opengl.cpp:1922: error: parse error before `->' token
driver_opengl.cpp:1926: error: `info' was not declared in this scope
driver_opengl.cpp:1926: error: `info' was not declared in this scope
driver_opengl.cpp:1926: error: `_OldScreenMode' was not declared in this scope driver_opengl.cpp:1926: error: ISO C++ forbids declaration of `memcpy' with no
  type
driver_opengl.cpp:1926: error: `int memcpy' redeclared as different kind of
  symbol
/usr/include/string.h:39: error: previous declaration of `void* memcpy(void*,
  const void*, unsigned int)'
driver_opengl.cpp:1926: error: initializer list being treated as compound
  expression
driver_opengl.cpp:1927: error: syntax error before `.' token
driver_opengl.cpp:1929: error: ISO C++ forbids declaration of `createDebug'
  with no type
driver_opengl.cpp:1929: error: `int NLMISC::createDebug()' should have been
  declared inside `NLMISC'
driver_opengl.cpp:1929: error: ISO C++ forbids declaration of `InfoLog' with no
  type
driver_opengl.cpp:1929: error: redefinition of `int NLMISC::InfoLog'
driver_opengl.cpp:1922: error: `int NLMISC::InfoLog' previously declared here
driver_opengl.cpp:1929: error: parse error before `->' token
driver_opengl.cpp:1930: error: `dpy' was not declared in this scope
driver_opengl.cpp:1930: error: `dpy' was not declared in this scope
driver_opengl.cpp:1930: error: `info' was not declared in this scope
driver_opengl.cpp:1930: error: ISO C++ forbids declaration of `
  XF86VidModeSwitchToMode' with no type
driver_opengl.cpp:1930: error: `int XF86VidModeSwitchToMode' redeclared as
  different kind of symbol
/usr/X11R6/include/X11/extensions/xf86vmode.h:239: error: previous declaration
  of `int XF86VidModeSwitchToMode(Display*, int, XF86VidModeModeInfo*)'
driver_opengl.cpp:1930: error: initializer list being treated as compound
  expression
driver_opengl.cpp:1931: error: ISO C++ forbids declaration of `createDebug'
  with no type
driver_opengl.cpp:1931: error: `int NLMISC::createDebug()' should have been
  declared inside `NLMISC'
driver_opengl.cpp:1931: error: ISO C++ forbids declaration of `InfoLog' with no
  type
driver_opengl.cpp:1931: error: redefinition of `int NLMISC::InfoLog'
driver_opengl.cpp:1922: error: `int NLMISC::InfoLog' previously declared here
driver_opengl.cpp:1931: error: parse error before `->' token
driver_opengl.cpp:1932: error: `dpy' was not declared in this scope
driver_opengl.cpp:1932: error: `dpy' was not declared in this scope
driver_opengl.cpp:1932: error: `_OldX' was not declared in this scope
driver_opengl.cpp:1932: error: `_OldY' was not declared in this scope
driver_opengl.cpp:1932: error: ISO C++ forbids declaration of `
  XF86VidModeSetViewPort' with no type
driver_opengl.cpp:1932: error: `int XF86VidModeSetViewPort' redeclared as
  different kind of symbol
/usr/X11R6/include/X11/extensions/xf86vmode.h:265: error: previous declaration
  of `int XF86VidModeSetViewPort(Display*, int, int, int)'
driver_opengl.cpp:1932: error: initializer list being treated as compound
  expression
driver_opengl.cpp:1934: error: `dpy' was not declared in this scope
driver_opengl.cpp:1934: error: ISO C++ forbids declaration of `XUngrabKeyboard'
  with no type
driver_opengl.cpp:1934: error: `int XUngrabKeyboard' redeclared as different
  kind of symbol
/usr/X11R6/include/X11/Xlib.h:4154: error: previous declaration of `int
  XUngrabKeyboard(Display*, long unsigned int)'
driver_opengl.cpp:1934: error: initializer list being treated as compound
  expression
driver_opengl.cpp:1935: error: parse error before `}' token
driver_opengl.cpp:1942: error: ISO C++ forbids declaration of `_Initialized'
  with no type
driver_opengl.cpp:1944: error: parse error before `return'
driver_opengl.cpp:1949: error: syntax error before `::' token
driver_opengl.cpp:1993: error: syntax error before `::' token
driver_opengl.cpp:2010: error: `win_attributes' was not declared in this scope driver_opengl.cpp:2011: error: `win_attributes' was not declared in this scope driver_opengl.cpp:2016: error: ISO C++ forbids declaration of `_CurrViewport'
  with no type
driver_opengl.cpp:2016: error: `viewport' was not declared in this scope
driver_opengl.cpp:2023: error: syntax error before `.' token
driver_opengl.cpp:2030: error: parse error before `if'
driver_opengl.cpp:2034: error: syntax error before `*=' token
driver_opengl.cpp:2035: error: syntax error before `*=' token
driver_opengl.cpp:2036: error: syntax error before `*=' token
driver_opengl.cpp:2037: error: syntax error before `*=' token
driver_opengl.cpp:2042: error: ISO C++ forbids declaration of `clamp' with no
  type
driver_opengl.cpp:2042: error: initializer list being treated as compound
  expression
driver_opengl.cpp:2044: error: ISO C++ forbids declaration of `clamp' with no
  type
driver_opengl.cpp:2044: error: redefinition of `int clamp'
driver_opengl.cpp:2042: error: `int clamp' previously declared here
driver_opengl.cpp:2044: error: initializer list being treated as compound
  expression
driver_opengl.cpp:2046: error: ISO C++ forbids declaration of `clamp' with no
  type
driver_opengl.cpp:2046: error: redefinition of `int clamp'
driver_opengl.cpp:2044: error: `int clamp' previously declared here
driver_opengl.cpp:2046: error: initializer list being treated as compound
  expression
driver_opengl.cpp:2048: error: ISO C++ forbids declaration of `clamp' with no
  type
driver_opengl.cpp:2048: error: redefinition of `int clamp'
driver_opengl.cpp:2046: error: `int clamp' previously declared here
driver_opengl.cpp:2048: error: initializer list being treated as compound
  expression
driver_opengl.cpp:2049: error: ISO C++ forbids declaration of `glViewport' with
  no type
driver_opengl.cpp:2049: error: `int glViewport' redeclared as different kind of
  symbol
/usr/X11R6/include/GL/gl.h:1104: error: previous declaration of `void
  glViewport(int, int, int, int)'
driver_opengl.cpp:2049: error: initializer list being treated as compound
  expression
driver_opengl.cpp:2053: error: parse error before `}' token
driver_opengl.cpp:2056: error: syntax error before `::' token
driver_opengl.cpp:2065: error: syntax error before `::' token
driver_opengl.cpp:2082: error: redefinition of `int clientWidth'
driver_opengl.cpp:2010: error: `int clientWidth' previously defined here
.
.
.

Any ideas? Help would be greatly appreciated. Is there some other stable release that I should be attempting to build from? If so, I never ran into a place where it stated that.

Cheers,



--
David Castro
Software Architect
Azusa Pacific University

"My little children, let us not love in word or in tongue,
but in deed and in truth." -- 1 Jn 3:18 (NKJ)
--- code/nel/src/3d/driver/opengl/driver_opengl.h.orig  2004-08-13 
08:31:54.000000000 -0700
+++ code/nel/src/3d/driver/opengl/driver_opengl.h       2004-09-20 
02:46:41.887662632 -0700
@@ -52,6 +52,12 @@
 
 #define GLX_GLXEXT_PROTOTYPES
 
+#ifdef NL_PROFILE_DRIVER_OGL
+#define H_AUTO_OGL(label) H_AUTO(label)
+#else
+#define H_AUTO_OGL(label)
+#endif
+
 #include <GL/glx.h>
 
 #ifdef XF86VIDMODE

reply via email to

[Prev in Thread] Current Thread [Next in Thread]