On Sun, 2005-02-06 at 17:28 -0500, Isaac Richards wrote:
> If it's just libmythtv, you should be able to just delete the Makefile in
> libs/libmythtv, and re-run make. Should regenerate everything you need.
Actually, it was in libs/libmyth. A little googling turned up the
'message' command. Pretty handy. Anyhoo - LOCAL_LIBDIR_X11 was being
set correctly. I just couldn't find it (or EXTRA_LIBS) being referenced
by mythtv/libs/libmyth.pro, so I added $$LOCAL_LIBDIR_X11 onto the end
of line 141. I'm not sure if it's the cleanest way to fix it, but it
works for me!
Also, building in debug mode fails again on x86_64. Fixed by editing
the top portion of mythtv/libs/libavcodec/libavcodec.pro. Patch
attached (based on Kyle Rose's patch from October 5 in
http://www.gossamer-threads.com/lists/mythtv/dev/87356?
search_string=debug%20fpic;#87356).
-I ;)
Index: mythtv/libs/libavcodec/libavcodec.pro
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libavcodec/libavcodec.pro,v
retrieving revision 1.66
diff -u -r1.66 libavcodec.pro
--- mythtv/libs/libavcodec/libavcodec.pro 31 Jan 2005 17:15:15 -0000 1.66
+++ mythtv/libs/libavcodec/libavcodec.pro 7 Feb 2005 07:26:20 -0000
@@ -12,11 +12,14 @@
INCLUDEPATH = ../../
# Debug mode on x86 must compile without -fPIC and with -O, otherwise gcc runs
-# out of registers
+# out of registers. But on x86_64 we need the -fPIC...
QMAKE_CFLAGS_SHLIB =
+contains(TARGET_ARCH_X86_64, yes) {
+ QMAKE_CFLAGS_SHLIB = -fPIC
+}
-QMAKE_CFLAGS_RELEASE += $$OPTFLAGS -DPIC -fPIC -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
-QMAKE_CFLAGS_DEBUG += -g -O -DHAVE_AV_CONFIG_H -I.. -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
+QMAKE_CFLAGS_RELEASE += $$OPTFLAGS -DPIC -fPIC -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
+QMAKE_CFLAGS_DEBUG += -g -O -DHAVE_AV_CONFIG_H -I.. -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE $$QMAKE_CFLAGS_SHLIB
# Input
SOURCES += utils.c mem.c allcodecs.c mpegvideo.c h263.c jrevdct.c
_______________________________________________
mythtv-dev mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev