Latest from hg on OSX

Thomas Treichl Thomas.Treichl at gmx.net
Wed Jun 11 15:50:53 CDT 2008


Thomas Treichl schrieb:
> John W. Eaton schrieb:
>> On 10-Jun-2008, Thomas Treichl wrote:
>>
>> | Finally, I also added "-I/usr/X11R6/include" to my C-,CPP-,CXXFLAGS 
>> before | configuring the Octave sources and "-Wl,-framework 
>> -Wl,OpenGL" to the LDFLAGS.
>>
>> There is no need for the duplication.  You should only need to add -I
>> options to CPPFLAGS (the preprocessor is the only thing that should
>> need -I, and CPPFLAGS are included in the rules for building object
>> files that are defined in Octave's Makeconf file).
> 
> I just found out that (I must once again correct my last email for the 
> third time now, sorry) we do need "-Wl,-framework -Wl,OpenGL" with 
> LDFLAGS when configuring the Octave sources because when linking 
> gl-render.cc and others together into liboctinterp.dylib it fails if not 
> available. This framework is currently not found automatically on a Mac 
> platform, so I expect we could need a test for that? If no volunteers 
> then I'll try what I can do...

I have included a changeset which checks for Apple's OpenGL framework. But this 
is not the only change that is needed, I also needed to add $(OPENGL_LIBS) into 
src/Makefile.in line 277 OCTINTERP_LINK_DEPS. I am not sure if this is the right 
place, but liboctinterp.dylib can be created now. If yes, then I can send 
another changeset for this?

   Thomas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: opengl.changeset
Url: https://www.cae.wisc.edu/pipermail/octave-maintainers/attachments/20080611/199d1966/attachment.ksh 


More information about the Octave-maintainers mailing list