PATCH: OSX will not compile due to LaunchService header file not found

Amit Chaudhuri amit.k.chaudhuri at gmail.com
Thu Feb 28 06:16:12 PST 2013


How odd.  Or maybe not.  I tried it on my machine (10.8) both with and
without the -framework CoreServices line and without worked so I trimmed.
So to my (untutored) eye there are changes in cpompiling (find header in
framework) & linking (need for explicit reference to CoreServices)
behaviour between these versions of OS X?

As a matter of interest, where on your 10.7 system is LSOpen.h?

A

On Thu, Feb 28, 2013 at 1:59 PM, Dirk Hohndel <dirk at hohndel.org> wrote:

> Amit Chaudhuri <amit.k.chaudhuri at gmail.com> writes:
>
> > Fix compilation problem with LaunchServices on OSX
> >
> >     You cannot include the LSOpen.h directly on OSX - it is too far down
> in
> >     the System hierarchy to locate. Instead we include the umbrella
> header
> >     CoreServices.h which finds it for us.
>
> And just as before - 10.7 (or at least my version of 10.7) appears to
> also need -framework CoreServices on the linker line. So I just added
> another commit that fixes that.
>
> Hopefully OSX is now building out of the box again.
>
> /D
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130228/d2aa4dfd/attachment.html>


More information about the subsurface mailing list