[mythtv-users] OSX compile failure - ld: file not found: libmythservicecontracts-0.24.0.dylib for architecture i386

brad dreisbach bradd at ameri.ca
Wed May 25 13:09:18 UTC 2011


On May 18, 2011, at 12:35 PM, Rob Smith wrote:

> On Wed, May 18, 2011 at 5:47 AM, brad dreisbach <bradd at ameri.ca> wrote:
>> and I ran the script using -verbose and -m32.  The only change I made to
>> osx-packager.pl was update the mysql 5.0 version to 5.0.92.
>> 
>> Any ideas what may be happening here?
> 
> Somethings are likely building as 64 bit and the rest are 32 bit, thus
> the linker error. I've been running 100% 64 bit for awhile on OS X
> just fine (Fixed the need to have a epic pile of 32 bit programs
> scattered about). Perhaps you shouldn't specify the -m32.

I finally did get the 32 bit version to build, though I did have to make a 
few modifications to the source.   I am not a programmer so this still
may be something wrong with my environment, but this is what worked
for me.

-b

diff --git a/mythtv/filters/filter-avcodec.pro b/mythtv/filters/filter-avcodec.pro
index 802d900..677b76d 100644
--- a/mythtv/filters/filter-avcodec.pro
+++ b/mythtv/filters/filter-avcodec.pro
@@ -3,7 +3,9 @@ include(../settings.pro)
 
 LIBS += -L../../external/FFmpeg/libavcodec -lmythavcodec
 LIBS += -L../../external/FFmpeg/libavutil  -lmythavutil
+LIBS += -L../../external/FFmpeg/libavformat  -lmythavformat
 
 # Rebuild (link) this filter if the lib changes
 POST_TARGETDEPS += ../../external/FFmpeg/libavutil/$$avLibName(avutil)
 POST_TARGETDEPS += ../../external/FFmpeg/libavcodec/$$avLibName(avcodec)
+POST_TARGETDEPS += ../../external/FFmpeg/libavformat/$$avLibName(avformat)
diff --git a/mythtv/filters/kerneldeint/kerneldeint.pro b/mythtv/filters/kerneldeint/kerneldeint.pro
index 4c784a6..0f19295 100644
--- a/mythtv/filters/kerneldeint/kerneldeint.pro
+++ b/mythtv/filters/kerneldeint/kerneldeint.pro
@@ -5,6 +5,7 @@ LIBS += -lmyth-$${LIBVERSION} -L../../libs/libmyth
 LIBS += -lmythbase-$${LIBVERSION} -L../../libs/libmythbase
 macx:LIBS += -lmythui-$${LIBVERSION} -L../../libs/libmythui
 macx:LIBS += -lmythupnp-$${LIBVERSION} -L../../libs/libmythupnp
+macx:LIBS += -lmythservicecontracts-$${LIBVERSION} -L../../libs/libmythservicecontracts
 mingw:LIBS += $$EXTRA_LIBS
 
 # Input
diff --git a/mythtv/libs/libmyth/libmyth.pro b/mythtv/libs/libmyth/libmyth.pro
index c588a7a..798596f 100644
--- a/mythtv/libs/libmyth/libmyth.pro
+++ b/mythtv/libs/libmyth/libmyth.pro
@@ -86,6 +86,7 @@ LIBS += -L../libmythbase           -lmythbase-$${LIBVERSION}
 LIBS += -L../libmythui           -lmythui-$${LIBVERSION}
 LIBS += -L../libmythupnp         -lmythupnp-$${LIBVERSION}
 LIBS += -L../libmythfreesurround -lmythfreesurround-$${LIBVERSION}
+LIBS += -L../libmythservicecontracts -lmythservicecontracts-$${LIBVERSION}
 LIBS += -L../../external/FFmpeg/libavcodec -lmythavcodec
 LIBS += -L../../external/FFmpeg/libavutil  -lmythavutil
 LIBS += -L../../external/FFmpeg/libavformat  -lmythavformat
diff --git a/mythtv/libs/libmythtv/libmythtv.pro b/mythtv/libs/libmythtv/libmythtv.pro
index 7f03f79..e19d1d8 100644
--- a/mythtv/libs/libmythtv/libmythtv.pro
+++ b/mythtv/libs/libmythtv/libmythtv.pro
@@ -63,6 +63,7 @@ using_live: LIBS += -L../libmythlivemedia -lmythlivemedia-$$LIBVERSION
 using_hdhomerun: LIBS += -L../libmythhdhomerun -lmythhdhomerun-$$LIBVERSION
 using_backend: LIBS += -lmp3lame
 LIBS += $$EXTRA_LIBS $$QMAKE_LIBS_DYNLOAD
+LIBS += -L../libmythservicecontracts -lmythservicecontracts-$$LIBVERSION
 
 POST_TARGETDEPS += ../libmyth/libmyth-$${MYTH_SHLIB_EXT}
 POST_TARGETDEPS += ../../external/FFmpeg/libavutil/$$avLibName(avutil)




More information about the mythtv-users mailing list