[mythtv-users] Compiling mythtv for linuxppc

papenfuss at juneau.me.vt.edu papenfuss at juneau.me.vt.edu
Thu Mar 11 19:24:51 EST 2004


	Hello all... I've asked this question before, but the "solution" never 
did quite work out.  I'm trying to set up a linuxppc box as a frontend only, 
but it doesn't want to compile.  I've partially applied the 0.13 patch (really 
just for the settings.pro part to get the arch right, etc).  Is there an easy 
way to tell qmake or configure to *just* build the frontend?  I'm having issues 
compiling some filters, as I suspect it's wanting some i386 i/o functions that 
don't exist:

g++  -o setup main.o backendsettings.o   -L/usr/lib/qt-3.1/lib -L/usr/X11R6/lib 
-L../libs/libmyth -L../libs/libmythtv -L../libs/libavcodec 
-L../libs/libavformat -lmythtv-0.14 -lmythavformat-0.14 -lmythavcodec-0.14 
-lmyth-0.14 -lfreetype -lmp3lame -L/usr/X11R6/lib -lXinerama -lXv -lX11 -lXext 
-lXxf86vm -lqt-mt -lXext -lX11 -lm -lpthread 
../libs/libmythtv/libmythtv-0.14.so: undefined reference to `inb' 
../libs/libmythtv/libmythtv-0.14.so: undefined reference to `ioperm'


	I was hoping it would eventually Just Work... so far, not quite.  I can 
see that doing the low-level stuff for the backend would be a bugger, but for 
just the frontend I wouldn't think it would be that bad.  Am I incorrect?  :)

Thanks,
-Cory

Here's the settings.pro modification I'm using:

Index: settings.pro
===================================================================
RCS file: settings.pro
retrieving revision 1.1.1.9
diff -u -r1.1.1.9 settings.pro
--- settings.pro        3 Dec 2003 01:14:14 -0000       1.1.1.9
+++ settings.pro        8 Jan 2004 21:53:01 -0000
@@ -13,9 +13,18 @@
 DEFINES += PREFIX=\"$${PREFIX}\"
 
 release {
+    QMAKE_CXXFLAGS_RELEASE = -O3 -fomit-frame-pointer
+
+    contains( TARGET_ARCH_X86, yes ) {
         DEFINES += MMX
-        QMAKE_CXXFLAGS_RELEASE = -O3 -march=pentiumpro -fomit-frame-pointer
-        QMAKE_CFLAGS_RELEASE = $${QMAKE_CXXFLAGS_RELEASE}
+        QMAKE_CXXFLAGS_RELEASE += -march=pentiumpro
+    }
+
+    contains( TARGET_ARCH_POWERPC, yes ) {
+#        QMAKE_CXXFLAGS_RELEASE += -mcpu=7400
+    }
+
+    QMAKE_CFLAGS_RELEASE = $${QMAKE_CXXFLAGS_RELEASE}
 }
 
 EXTRA_LIBS = -L/usr/X11R6/lib -lXinerama -lXv -lX11 -lXext -lXxf86vm -lfreetype



-- 
*************************************************************************
* The prime directive of Linux:  					*
* 	- learn what you don't know, 					*
* 	- teach what you do.						*
* 						(Just my 20 USm$)	*
*************************************************************************




More information about the mythtv-users mailing list