The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 573 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 752 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 752 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 34 - File: global.php(959) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(959) : eval()'d code 34 errorHandler->error
/global.php 959 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 1024 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 1024 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5308 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5308 errorHandler->error
/global.php 1024 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1429 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Forums
r2926 won't build - Printable Version

+- Forums (https://www.vdrift.net/Forum)
+-- Forum: Community (https://www.vdrift.net/Forum/forumdisplay.php?fid=3)
+--- Forum: Bugs (https://www.vdrift.net/Forum/forumdisplay.php?fid=7)
+--- Thread: r2926 won't build (/showthread.php?tid=1370)



r2926 won't build - a_m0d - 11-22-2010

I just downloaded r2926 and tried to build it on my Fedora box, but I got a couple of errors re: undefined constants. I managed to fix them (only 3 places) by replacing
Code:
GL_TEXTURE_RECTANGLE
with
Code:
GL_TEXTURE_RECTANGLE_EXT
and
Code:
GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS
with
Code:
GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT
.

Here is a patch if you want it (not sure if this is the correct way of doing things - let me know if there is a better way):
Code:
diff --git a/include/fbtexture.h b/include/fbtexture.h
index 15a21fe..4bb0fbd 100644
--- a/include/fbtexture.h
+++ b/include/fbtexture.h
@@ -23,7 +23,7 @@ class FBTEXTURE : public TEXTURE_INTERFACE
                enum TARGET
                {
                        NORMAL = GL_TEXTURE_2D,
-                       RECTANGLE = GL_TEXTURE_RECTANGLE,
+                       RECTANGLE = GL_TEXTURE_RECTANGLE_EXT,
                        CUBEMAP = GL_TEXTURE_CUBE_MAP
                };
                
diff --git a/src/fbobject.cpp b/src/fbobject.cpp
index ad3cbd6..5302c9b 100644
--- a/src/fbobject.cpp
+++ b/src/fbobject.cpp
@@ -326,7 +326,7 @@ std::string GetStatusString(GLenum status)
                case GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE:
                return "incomplete multisample";
                
-               case GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS:
+               case GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT:
                return "incomplete layer targets";
        }
        
diff --git a/src/fbtexture.cpp b/src/fbtexture.cpp
index e536de3..905377a 100644
--- a/src/fbtexture.cpp
+++ b/src/fbtexture.cpp
@@ -38,7 +38,7 @@ void FBTEXTURE::Init(GLSTATEMANAGER & glstate, int sizex, int sizey, TARGET targ
                multisample = 0;
        
        //set texture info
-       if (texture_target == GL_TEXTURE_RECTANGLE)
+       if (texture_target == GL_TEXTURE_RECTANGLE_EXT)
        {
                assert(GLEW_ARB_texture_rectangle);
        }
[/code]



- NaN - 11-22-2010

GLEW >= 1.5.3 ?


- a_m0d - 11-22-2010

Sorry, no. my GLEW is stuck on 1.5.1, and no update has been offered yet. I will have to wait till I get Fedora 14 on my box before I receive this update then, which will hopefully fix this problem.