Problem compiling Octave on Mac OS X

Bernard Desgraupes bdesgraupes at orange.fr
Tue Jun 2 01:16:27 CDT 2009


I also stumbled recently into this recently. The problem is that the  
CoreGraphics framework is in the ApplicationServices framework and the  
latter is not passed to the linker.

You must modifiy the declaration of OCTINTERP_LINK_DEPS in the file  
src/Makefile.in (or directly in the Makefile if you do not want to  
regenerate everything).
Replace
OCTINTERP_LINK_DEPS = \
   -L../liboctave $(LIBOCTAVE) -L../libcruft $(LIBCRUFT) $(LIBS) $ 
(FLIBS) \
   $(OPENGL_LIBS)

by
OCTINTERP_LINK_DEPS = \
   -L../liboctave $(LIBOCTAVE) -L../libcruft $(LIBCRUFT) $(LIBS) $ 
(FLIBS) \
   $(OPENGL_LIBS) $(CARBON_LIBS)


Including (CARBON_LIBS) does the trick since it will automatically  
call the ApplicationServices headers and hence the CoreGraphics headers.

If you make this change in src/Makefile.in, you must re-run the  
configuration.

cheers,

Bernard


Le 2 juin 09 à 03:21, Ben Abbott a écrit :

>
>
> On Jun 1, 2009, at 2:49 PM, Rob Mahurin wrote:
>
>> On May 31, 2009, at 4:59 PM, ws wrote:
>>> I just ALMOST compiled octave on my mac, linking to the Mac Port
>>> libraries.
>>
>>
>> Well now I have a similar question.  My missing symbols are
>>
>> Undefined symbols:
>>  "_CGDisplayPixelsHigh", referenced from:
>>      display_info::init()      in display.o
>>  "_CGDisplayPixelsWide", referenced from:
>>      display_info::init()      in display.o
>>  "_CGDisplayBitsPerPixel", referenced from:
>>      display_info::init()      in display.o
>>  "_CGMainDisplayID", referenced from:
>>      display_info::init()      in display.o
>>  "_CGDisplayScreenSize", referenced from:
>>      display_info::init()      in display.o
>> ld: symbol(s) not found
>>
>> and come when linking liboctinterp.dylib.  Any hint what I'm missing?
>>
>> This is on an Intel Mac running 10.5, where I haven't compiled Octave
>> before.  I don't seem to have the problem on my 10.4 powerbook.  Same
>> problem in 3.2.0-rc4 and in the current tip.
>>
>> Thanks,
>> Rob
>
> I took a quick glance at the sources. It looks like these are part of
> Apple's  Carbon framework.  Make sure your Xcode is up to date.
>
> Are you really running 10.5.0. I'm running 10.5.7.
>
> Ben
> _______________________________________________
> Help-octave mailing list
> Help-octave at octave.org
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>




More information about the Help-octave mailing list