[mythtv] error building with qt5 on mac os x
Mark Spieth
mark at digivation.com.au
Thu Mar 12 21:33:43 UTC 2015
On 13/03/2015 4:45 AM, brad dreisbach wrote:
> packager/build/lib -lfreetype -Wl,-framework,OpenGL -lmp3lame -lm
> -lbz2 -lz -pthread
> -L/Users/bradd/mythtv-build-qt5/.osx-packager/src/myth-git/mythtv/external/qjson/lib
> -lmythqjson -F/Users/bradd/mythtv-build-qt5/.osx-packager/build/lib
> -framework AVCVideoServices -framework QtGui -framework QtCore
> -framework DiskArbitration -framework IOKit -framework QtScript
> -framework OpenGL -framework AGL Undefined symbols for architecture
> x86_64: "RecStatus::staticMetaObject", referenced from:
> qt_meta_extradata_DTC__RecordingInfo in moc_recording.o ld: symbol(s)
> not found for architecture x86_64 clang: error: linker command failed
> with exit code 1 (use -v to see invocation) make[2]: ***
> [libmythservicecontracts-0.28.0.28.0.dylib] Error 1 make[1]: ***
> [sub-libmythservicecontracts-make_first] Error 2 make: *** [libs]
> Error 2 [osx-pkg] Failed system call: " /usr/bin/make " with error
> code 2 i fiddled with it a bit. putting this in
> libmythservicecontracts.pro: +HEADERS += ../libmyth/programtypes.h
> enabled that library to compile, but it doesn’t seem like the right
> way to fix it. if you’d rather me start a new thread or open a
> ticket(or if this isn’t helpful), just let me know. -b
same problem I had. Dont know why its ok with teh standard linux build
as it shouldnt be.
It may be the debug build requires this and the release/optimized build
optimizes it out.
in libmythservicecontracts.pro
adjust line (may not be needed)
DEPENDPATH += ../libmyth ../libmythbase
at the bottom add
darwin {
HEADERS += ../libmyth/programtypes.h
SOURCES += ../libmyth/programtypes.cpp
LIBS += -L../libmythbase -lmythbase-$${LIBVERSION}
}
HTH
mark
More information about the mythtv-dev
mailing list