[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Yet Another Plotting System for Octave
From: |
Alexander Barth |
Subject: |
Re: Yet Another Plotting System for Octave |
Date: |
Fri, 19 Jan 2007 09:39:59 -0500 |
User-agent: |
Thunderbird 1.5.0.9 (X11/20070102) |
Marius,
In order to use libGL in OpenGL.framework, you have to set LDFLAGS before
starting octave:
export
LDFLAGS="-L/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries"
But maybe you need both libraries (in /usr/X11R6/lib/ and OpenGL.framework):
export LDFLAGS="-L/usr/X11R6/lib -lGL \
-L/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries"
Does this work?
Alex
Marius Schamschula wrote:
> Alex,
>
> I looked around a bit more (otool -L = ldd on Linux):
>
> Saturn:~ marius$ otool -L /usr/X11R6/lib/libGL.dylib
> /usr/X11R6/lib/libGL.dylib:
> /usr/X11R6/lib/libGL.1.dylib (compatibility version 1.2.0,
> current version 1.2.0)
> /usr/lib/libXplugin.1.dylib (compatibility version 1.0.0,
> current version 1.0.0)
>
> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
> (compatibility version 1.0.0, current version 1.0.0)
>
> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
> (compatibility version 1.0.0, current version 22.0.0)
>
> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
> (compatibility version 150.0.0, current version 368.27.0)
> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
> (compatibility version 1.0.0, current version 1.0.0)
> /usr/X11R6/lib/libXext.6.dylib (compatibility version 6.4.0,
> current version 6.4.0)
> /usr/X11R6/lib/libX11.6.dylib (compatibility version 6.2.0,
> current version 6.2.0)
> /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
> version 1.0.0)
> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
> version 88.3.4)
>
> Saturn:~ marius$ nm
> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
> | grep glBegin
> 92e83a4c T _glBegin
> 92e92b38 T _glBeginQuery
> 92e9b2f8 T _glBeginQueryARB
>
> so glBegin is in the OpenGL.Framework...
>
> On Jan 18, 2007, at 11:57 AM, Alexander Barth wrote:
>
>> Marius Schamschula wrote:
>>> Oops,
>>>
>>> I was a bit quick to say that yapso installed correctly:
>>>
>>> The install died with
>>>
>>> checking for glBegin in -lGL... no
>>>
>>> but
>>>
>>> Saturn:~ marius$ nm /usr/X11R6/lib/libGL.dylib | grep glBegin
>>> 00002d7c T ___indirect_glBegin
>>> U _glBegin
>>> U ___indirect_glBegin
>>> U ___indirect_glBegin
>>>
>>> Any ideas?
>>>
>>> Marius
>>> --Marius Schamschula Webmaster
>>>
>>> The Huntsville Macintosh Users Group
>>> www.hmug.org
>>>
>>> webmaster at hmug dot org marius at schamschula dot com
>>>
>>>
>>>
>>
>> From the man page of nm, "U _glBegin" means that _glBegin is used but
>> not defined in this library
>> since we don't see a "T _glBegin".
>> On my linux system (Fedora 5), I get:
>> nm libGL.a | grep glBegin
>> U glBegin
>> U glBeginFragmentShaderATI
>> U glBeginQueryARB
>> 00000000000000b0 T glBegin
>> 0000000000006c90 T glBeginFragmentShaderATI
>> 0000000000004dc0 T glBeginQuery
>> 0000000000004dc0 T glBeginQueryARB
>>
>> I guess, that glBegin is defined in another (lower level) library. Can
>> you run the following command?
>>
>> nm --print-file-name *.dylib | grep glBegin
>>
>> Cheers,
>> Alex
>>
>
>
>
> Marius
> --
> Marius Schamschula Webmaster
>
> The Huntsville Macintosh Users Group
> www.hmug.org
>
> webmaster at hmug dot org marius at schamschula dot com
>
>
>
--
_______________________________________________________________
Alexander Barth
Ocean Circulation Group
University of South Florida
College of Marine Science
140 Seventh Avenue South
St. Petersburg, Florida 33701
USA
Phone: +1-727-553-3508 FAX: +1-727-553-1189
_______________________________________________________________
- Re: Yet Another Plotting System for Octave, (continued)
- Re: Yet Another Plotting System for Octave, Daniel Oberhoff, 2007/01/19
- Re: Yet Another Plotting System for Octave, Alexander Barth, 2007/01/19
- Re: Yet Another Plotting System for Octave, Daniel Oberhoff, 2007/01/20
- Message not available
- Re: Yet Another Plotting System for Octave, Alexander Barth, 2007/01/22
- Re: Yet Another Plotting System for Octave, Alexander Barth, 2007/01/18
- Re: Yet Another Plotting System for Octave, Marius Schamschula, 2007/01/18
- Re: Yet Another Plotting System for Octave,
Alexander Barth <=
- Re: Yet Another Plotting System for Octave, Carlo de Falco, 2007/01/19
- Re: Yet Another Plotting System for Octave, Marius Schamschula, 2007/01/19
Re: Yet Another Plotting System for Octave, Claudio Belotti, 2007/01/18
Re: Yet Another Plotting System for Octave, Søren Hauberg, 2007/01/18
Re: Yet Another Plotting System for Octave, Jordi Gutierrez Hermoso, 2007/01/23
Re: Yet Another Plotting System for Octave, Daniel Oberhoff, 2007/01/18