• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: This is (still) driving me crazy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: This is (still) driving me crazy


  • Subject: Re: This is (still) driving me crazy
  • From: William Julien <email@hidden>
  • Date: Sat, 22 Feb 2003 18:05:14 -0800

On Thursday, February 20, 2003, at 10:41 AM, John Harper wrote:

On Thursday, Feb 20, 2003, at 08:27 US/Pacific, Nicolas Holzschuch wrote:
Le jeudi, 20 fiv 2003, ` 16:21 Europe/Paris, Nicolas Holzschuch a icrit :
I tracked it to a set of lines :
	gluTessCallback(tobj, (GLenum)GLU_BEGIN, (void (*)())glBegin);
	gluTessCallback(tobj, (GLenum)GLU_END, (void (*)())glEnd);
	gluTessCallback(tobj, (GLenum)GLU_VERTEX, (void (*)())glVertex2fv);

(the only place where the three function calls appear together)

So it is probably not an X11-related problem. I'm still unable to run any inventor-related application, so any help is welcome.

After removing these three lines, I've had problems with other lines that read :
colorFunc = (SoVPCacheFunc *)glIndexiv;
(and similar versions).


Basically, any line that casts an OpenGL function results in this OpenGL function not being found at link-time.
So may be it is an X11-related problem after all.

I can't reproduce this here, try putting this in test.c:

#include <GL/gl.h>
int main (int argc, char **argv)
{
    void *fun = (void *) glBegin;
    printf ("glBegin is %p\n", fun);
    return 0;
}

I tried your test and got the following warnings on compile. Are these expected?


-->gcc gl.c -I/usr/X11R6/include -L/usr/X11R6/lib -lGL
ld: warning suggest use of -bind_at_load, as lazy binding may result in errors or different symbols being used
symbol _glGetColorTableEXT used from dynamic library /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/ libGL.dylib(gll_api.o) not from earlier dynamic library /usr/X11R6/lib/libGL.1.dylib(dri_dispatch.o)
symbol _glGetColorTableParameterfvEXT used from dynamic library /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/ libGL.dylib(gll_api.o) not from earlier dynamic library /usr/X11R6/lib/libGL.1.dylib(dri_dispatch.o)
symbol _glGetColorTableParameterivEXT used from dynamic library /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/ libGL.dylib(gll_api.o) not from earlier dynamic library /usr/X11R6/lib/libGL.1.dylib(dri_dispatch.o)
-->ls
Applications/ Movies/ Sites/ man/
Desktop/ Music/ a.out* src/
Documents/ Pictures/ bin/ tmp/
Library/ Public/ gl.c work/
-->a.out
glBegin is 0x909813a4


ps - I avoid using 'test' due to shell conflicts.

William

then compiling it as "gcc test.c -I/usr/X11R6/include -L/usr/X11R6/lib -lGL". When I run the resulting a.out binary it links and runs correctly,


John
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: This is (still) driving me crazy
      • From: John Harper <email@hidden>
References: 
 >Re: This is (still) driving me crazy (From: John Harper <email@hidden>)

  • Prev by Date: Running xmodmap in .xinitrc
  • Next by Date: Re: libGL errors attempting to run OPenOffice
  • Previous by thread: Re: This is (still) driving me crazy
  • Next by thread: Re: This is (still) driving me crazy
  • Index(es):
    • Date
    • Thread