[gut-users] dlopen() + GL = core
Status: Alpha
Brought to you by:
jason379
|
From: J. P. <ja...@37...> - 2000-08-31 02:20:00
|
Hey all,
As per the conversation we had a couple of weeks ago
on this very list, I've been trying to make the GUT
Linux/X client dynamically load the OpenGL library.
Well, I'm here to tell you that it isn't working. I
have the code in place, and it works okay on the s/w
version of Mesa, but it chokes all over the Glide
driver. To see what I mean, try this with Mesa-Glide:
#include <stdio.h>
#include <unistd.h>
#include <dlfcn.h>
int main()
{
void* lib = dlopen("libGL.so", RTLD_GLOBAL | RTLD_NOW);
dlclose(lib);
return 0;
}
It'll core dump somewhere in the CRT library while
trying to exit.
Anyway, that's where I'm at. At this point, I'm inclined
to bail on this and put the statically linked version
back in place. I'll give it till the end of the week to
come up with a solution. If anyone can help me out with
an answer here I sure would appreciate it.
Jason
379
|