<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.0.10">
</HEAD>
<BODY>
I have mandrake 10 distro and I have succesfully compiled some programs on it..<BR>
Recently i bought a digital video card (dvb) and discovered, that MythTV rpms dont by default offer dvb support, so I needed a recompile. I first removed any myth rpm and got the 0.15 tar.bz2 version of mythtv..<BR>
<BR>
I tried to compile the thing, with following output:<BR>
<BR>
<BR>
> cd mythtv-0.15.1 <BR>
> /configure<BR>
<BR>
Please note that these settings only deal with libavcodec, not MythTV.<BR>
CPU x86<BR>
Big Endian no<BR>
MMX enabled yes<BR>
Vector Builtins yes<BR>
Creating config.mak and config.h<BR>
<BR>
> qmake mythtv.pro<BR>
> make<BR>
<BR>
cd libs && qmake libs.pro -o Makefile<BR>
/bin/sh: line 1: cd: libs: No such file or directory<BR>
<BR>
make: *** [libs/Makefile] Error 1<BR>
<BR>
---- So what seems to be obvious, that the makefile that qmake does tries to cd to libs directory , which IS under mythtv-0.15.1. Go and figure.<BR>
<BR>
<BR>
So I tried to make mythtv from SRPM (PLF). same version, same kind of symptoms;<BR>
<BR>
rpm -ba mythtv.spec<BR>
Executing(%prep): /bin/sh -e /home/samppa/rpm/tmp/rpm-tmp.31902<BR>
+umask 022<BR>
+cd /home/samppa/rpm/BUILD<BR>
+cd /home/samppa/rpm/BUILD<BR>
+rm -rf mythtv-0.15.1<BR>
+/usr/bin/bzip2 -dc /home/samppa/rpm/SOURCES/mythtv-0.15.1.tar.bz2<BR>
+tar -xf -<BR>
+STATUS=0<BR>
+'[' 0 -ne 0 ']'<BR>
+cd mythtv-0.15.1<BR>
/home/samppa/rpm/tmp/rpm-tmp.31902: line 29: cd: mythtv-0.15.1: No such file or directory<BR>
virhe: Bad exit status from /home/samppa/rpm/tmp/rpm-tmp.31902 (%prep)<BR>
<BR>
<BR>
RPM build errors:<BR>
Bad exit status from /home/samppa/rpm/tmp/rpm-tmp.31902 (%prep)<BR>
<BR>
<BR>
Again, the mythtv-0.15.1 folder IS under rpm/BUILD and rpm/SOURCES. This error repeats itself when root also.<BR>
Im lost.... PLS HELP<BR>
<BR>
<BR>
below the Makefile that qmake mythtv.pro made;<BR>
<BR>
#############################################################################<BR>
# Makefile for building: mythtv<BR>
# Generated by qmake (1.06c) (Qt 3.2.3) on: Mon Aug 16 18:50:37 2004<BR>
# Project: mythtv.pro<BR>
# Template: subdirs<BR>
# Command: $(QMAKE) -o Makefile mythtv.pro<BR>
#############################################################################<BR>
<BR>
MAKEFILE =        Makefile<BR>
QMAKE =        qmake<BR>
DEL_FILE = rm -f<BR>
CHK_DIR_EXISTS= test -d<BR>
MKDIR = mkdir -p<BR>
SUBTARGETS =         \<BR>
                sub-libs \<BR>
                sub-filters \<BR>
                sub-programs \<BR>
                sub-themes \<BR>
                sub-setup \<BR>
                sub-i18n<BR>
<BR>
first: all<BR>
<BR>
all: Makefile $(SUBTARGETS)<BR>
<BR>
libs/$(MAKEFILE): <BR>
        @$(CHK_DIR_EXISTS) "libs" || $(MKDIR) "libs"<BR>
        cd libs && $(QMAKE) libs.pro -o $(MAKEFILE)<BR>
sub-libs: libs/$(MAKEFILE) FORCE<BR>
        cd libs && $(MAKE) -f $(MAKEFILE)<BR>
<BR>
filters/$(MAKEFILE): <BR>
        @$(CHK_DIR_EXISTS) "filters" || $(MKDIR) "filters"<BR>
        cd filters && $(QMAKE) filters.pro -o $(MAKEFILE)<BR>
sub-filters: filters/$(MAKEFILE) FORCE<BR>
        cd filters && $(MAKE) -f $(MAKEFILE)<BR>
<BR>
programs/$(MAKEFILE): <BR>
        @$(CHK_DIR_EXISTS) "programs" || $(MKDIR) "programs"<BR>
        cd programs && $(QMAKE) programs.pro -o $(MAKEFILE)<BR>
sub-programs: programs/$(MAKEFILE) FORCE<BR>
        cd programs && $(MAKE) -f $(MAKEFILE)<BR>
<BR>
themes/$(MAKEFILE): <BR>
        @$(CHK_DIR_EXISTS) "themes" || $(MKDIR) "themes"<BR>
        cd themes && $(QMAKE) themes.pro -o $(MAKEFILE)<BR>
sub-themes: themes/$(MAKEFILE) FORCE<BR>
        cd themes && $(MAKE) -f $(MAKEFILE)<BR>
<BR>
setup/$(MAKEFILE): <BR>
        @$(CHK_DIR_EXISTS) "setup" || $(MKDIR) "setup"<BR>
        cd setup && $(QMAKE) setup.pro -o $(MAKEFILE)<BR>
sub-setup: setup/$(MAKEFILE) FORCE<BR>
        cd setup && $(MAKE) -f $(MAKEFILE)<BR>
<BR>
i18n/$(MAKEFILE): <BR>
        @$(CHK_DIR_EXISTS) "i18n" || $(MKDIR) "i18n"<BR>
        cd i18n && $(QMAKE) i18n.pro -o $(MAKEFILE)<BR>
sub-i18n: i18n/$(MAKEFILE) FORCE<BR>
        cd i18n && $(MAKE) -f $(MAKEFILE)<BR>
<BR>
Makefile: mythtv.pro /usr/lib/qt3/mkspecs/default/qmake.conf <BR>
        $(QMAKE) -o Makefile mythtv.pro<BR>
qmake: qmake_all<BR>
        @$(QMAKE) -o Makefile mythtv.pro<BR>
<BR>
all: $(SUBTARGETS)<BR>
qmake_all: libs/$(MAKEFILE) filters/$(MAKEFILE) programs/$(MAKEFILE) themes/$(MAKEFILE) setup/$(MAKEFILE) i18n/$(MAKEFILE)<BR>
         ( [ -d libs ] && cd libs ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true<BR>
         ( [ -d filters ] && cd filters ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true<BR>
         ( [ -d programs ] && cd programs ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true<BR>
         ( [ -d themes ] && cd themes ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true<BR>
         ( [ -d setup ] && cd setup ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true<BR>
         ( [ -d i18n ] && cd i18n ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true<BR>
clean uicables mocables uiclean mocclean lexclean yaccclean : qmake_all FORCE<BR>
         ( [ -d libs ] && cd libs ; $(MAKE) -f $(MAKEFILE) $@; ) || true<BR>
         ( [ -d filters ] && cd filters ; $(MAKE) -f $(MAKEFILE) $@; ) || true<BR>
         ( [ -d programs ] && cd programs ; $(MAKE) -f $(MAKEFILE) $@; ) || true<BR>
         ( [ -d themes ] && cd themes ; $(MAKE) -f $(MAKEFILE) $@; ) || true<BR>
         ( [ -d setup ] && cd setup ; $(MAKE) -f $(MAKEFILE) $@; ) || true<BR>
         ( [ -d i18n ] && cd i18n ; $(MAKE) -f $(MAKEFILE) $@; ) || true<BR>
uninstall_subdirs: qmake_all FORCE<BR>
         ( [ -d libs ] && cd libs ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true<BR>
         ( [ -d filters ] && cd filters ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true<BR>
         ( [ -d programs ] && cd programs ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true<BR>
         ( [ -d themes ] && cd themes ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true<BR>
         ( [ -d setup ] && cd setup ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true<BR>
         ( [ -d i18n ] && cd i18n ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true<BR>
install_subdirs: qmake_all FORCE<BR>
         ( [ -d libs ] && cd libs ; $(MAKE) -f $(MAKEFILE) install; ) || true<BR>
         ( [ -d filters ] && cd filters ; $(MAKE) -f $(MAKEFILE) install; ) || true<BR>
         ( [ -d programs ] && cd programs ; $(MAKE) -f $(MAKEFILE) install; ) || true<BR>
         ( [ -d themes ] && cd themes ; $(MAKE) -f $(MAKEFILE) install; ) || true<BR>
         ( [ -d setup ] && cd setup ; $(MAKE) -f $(MAKEFILE) install; ) || true<BR>
         ( [ -d i18n ] && cd i18n ; $(MAKE) -f $(MAKEFILE) install; ) || true<BR>
distclean: qmake_all FORCE<BR>
         ( [ -d libs ] && cd libs ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true<BR>
         ( [ -d filters ] && cd filters ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true<BR>
         ( [ -d programs ] && cd programs ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true<BR>
         ( [ -d themes ] && cd themes ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true<BR>
         ( [ -d setup ] && cd setup ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true<BR>
         ( [ -d i18n ] && cd i18n ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true<BR>
<BR>
install: all install_subdirs<BR>
<BR>
uninstall: uninstall_subdirs<BR>
<BR>
FORCE:<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<UL>
<LI><FONT COLOR="#008080"></FONT>
</UL>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>