[mythtv] Mac OS X build error "ld: -L <blank>"

Craig Treleaven ctreleaven at cogeco.ca
Sat Apr 7 14:04:43 UTC 2012


At 8:53 AM +1100 3/30/12, Nigel Pearson wrote:
>On 28/03/2012, at 12:33 AM, Craig Treleaven wrote:
>  >> 
>-L/opt/local/var/macports/build/_Users_craigtreleaven_MacPortsTemp_Myth.25/mythtv/work/mythtv-0.25-rc 
>-lfreetype -lz -lbz2 -F/Developer/FireWireSDK26/Examples/Framework 
>-framework AVCVideoServices -L -lQtSql_debug -lQtXml_debug 
>-lQtGui_debug -lQtNetwork_debug -lQtCore_debug ld: -L must be 
>immediately followed by a directory path (no space)
>  >> collect2: ld returned 1 exit status
>  >> make[2]: *** [libmythbase-0.25.0.25.0.dylib] Error 1

Still wandering around in the weeds here.  I've noted that the OSX 
Buildbot and successful runs of osx-packager.pl create a different 
mythtv/libs/Makefile.  The top of the file looks like this:

# Makefile for building: libs
# Generated by qmake (2.01a) (Qt 4.6.3) on: Wed Mar 21 21:12:43 2012
# Project:  libs.pro
# Template: subdirs
# Command: /Users/mythbuild/myth25/.osx-packager/build/bin/qmake 
-macx QMAKE=qmake -o Makefile libs.pro

I get:

# Makefile for building: libs
# Generated by qmake (2.01a) (Qt 4.7.4) on: Thu Apr 5 08:50:33 2012
# Project:  libs.pro
# Template: subdirs
# Command: /opt/local/bin/qmake QMAKE=qmake -o Makefile libs.pro

Aside from the Qt version difference, note that in my case qmake is 
missing the -macx flag.  In turn, the same flag is then missing on 
all the calls to qmake in each of the subdirectories under libs where 
my link failure, above, happens.

I really don't follow how the -macx flag gets there in the working 
cases and why it is not there in my case.  Suggestions, pointers?

Thanks,

Craig


More information about the mythtv-dev mailing list