Okay, so I have resolved this issue now.
I was getting the glXGetProcAddress error on both 8.04 and 7.10 when I rolled back.
the problem was quite clearly that the method was not found in "my libGL.so".
I did a few things to work out what was wrong ..
1. "find any .so with the glXGetProcAddress method in it".
(exercise for the reader to what it is doing)
Code:
find /usr/lib -type f | xargs -l1 -ixx sh -c "(strings xx | grep glXGetProcAddress && echo xx)"
Amongst other responses, I saw this
glXGetProcAddressARB
glXGetProcAddressARB
/usr/lib/libGL.so.1.0.7185
The symlinks for libGL.so.1 eventually pointed to libGL.so.1.0.7185 (above)
Code:
lrwxrwxrwx 1 root root 10 2008-05-26 23:44 libGL.so -> libGL.so.1
lrwxrwxrwx 1 root root 17 2008-05-26 21:11 libGL.so.1 -> libGL.so.1.0.7185
-rw-r--r-- 1 root root 489028 2007-11-02 12:22 libGL.so.1.0.7185
So a quick google search of the two method names,
Code:
glXGetProcAddress glXGetProcAddressARB
gave a top entry of the "solution" (what I was expecting, the method name is different in my libGL
http://anirudhs.chaosnet.org/blog/2005.11.05.html
Developers, have a read of the above URL as the solution there seems quite tidy.
My fix was just to patch it ONLY with the #define to see if I could get past the compile error which it did.
Code:
rbuckland@saxon:~/029-XBMC/xbmc2/XBMC$ svn diff guilib/Surface.cpp
Index: guilib/Surface.cpp
===================================================================
--- guilib/Surface.cpp (revision 13435)
+++ guilib/Surface.cpp (working copy)
@@ -24,6 +24,7 @@
\brief
*/
#include "include.h"
+#define glXGetProcAddress glXGetProcAddressARB
#include "Surface.h"
#ifdef __APPLE__
#include "CocoaUtils.h"
rb
Thanks guys ..