[mythtv] compile issues - latest macOS SDK (11.3) / Xcode (12.5)

John Hoyt john.hoyt at gmail.com
Sat Jun 5 11:27:17 UTC 2021


On Thu, Jun 3, 2021 at 10:55 AM David Hampton via mythtv-dev <
mythtv-dev at mythtv.org> wrote:

> On Sun, 2021-05-30 at 09:02 -0400, John Hoyt wrote:
> > First - apologies, this is occurring on Xcode 12.5 (latest release)-
> > error in my original email.  I have corrected the subject line and
> > confirmed this to be a non-issue with Xcode 12.4 and earlier.
> >
> > > It seems to me that renaming VERSION to something new may be the
> > > simplest solution.
> > >
> >
> >
> > I've put together a fork on github for master and fixes/31 that
> > renames VERSION to SRC_VERSION and updates version.sh accordingly
> > here: https://github.com/jhoyt4/mythtv
> >
> > I have confirmed that these updates compile successfully on macOS.
> >
> > If this is an acceptable solution by the community, I'll issue a PR
> > for both master and fixes/31 and link them to my issue report.  Also
> > happy to have another set of eyes look at the update in case I missed
> > something.
>
> Looks good to me.
>
> > If this is not an acceptable solution, no big deal - I will happily
> > delete the fork.  Honestly, I'm just looking for some help / feedback
> > on alternative solutions if the simple rename is not palatable.
> > After investigating my compile script, the -l"../.." is NOT passed in
> > by the script but somewhere else by default in the codebase.   This
> > could be addressed via that route, but I'll need some pointers on
> > where to look.
>
> Its coming from external/libmythsoundtouch/libmythsoundtouch.pro:
>
>   INCLUDEPATH += . ../../
>
> It seems like you should be able to rewrite this as
>
>   INCLUDEPATH += $$(PWD) $$(PWD)/../../
>
> to get absolute paths, but its not that simple. (I tried.) QMake is
> apparently doing path manipulation (and deduplication?) behind the
> scenes, and still insists on including something that starts with ../..
> instead of using fully rooted paths. (Weirdly, the ../.. from before
> ends up as ../../../mythtv.) Besides, this doesn't solve the problem of
> finding "version" in the system include path before finding "VERSION"
> in the user include path.
>
> If no-one else has any objection, I can commit your changes.
>

David - thank you for looking in on this.  Apple has stopped responding to
my issue ticket, but I'm going to keep at it to hopefully get this
corrected path ordering correct.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-dev/attachments/20210605/29a43bd7/attachment.htm>


More information about the mythtv-dev mailing list