[mythtv-users] Compiling errors.. make doesnt find correct path
Sami Röppänen
sami.roppanen at helsinki.fi
Mon Aug 16 18:17:10 EDT 2004
I have mandrake 10 distro and I have succesfully compiled some programs
on it..
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..
I tried to compile the thing, with following output:
> cd mythtv-0.15.1
> /configure
Please note that these settings only deal with libavcodec, not MythTV.
CPU x86
Big Endian no
MMX enabled yes
Vector Builtins yes
Creating config.mak and config.h
> qmake mythtv.pro
> make
cd libs && qmake libs.pro -o Makefile
/bin/sh: line 1: cd: libs: No such file or directory
make: *** [libs/Makefile] Error 1
---- 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.
So I tried to make mythtv from SRPM (PLF). same version, same kind of
symptoms;
rpm -ba mythtv.spec
Executing(%prep): /bin/sh -e /home/samppa/rpm/tmp/rpm-tmp.31902
+umask 022
+cd /home/samppa/rpm/BUILD
+cd /home/samppa/rpm/BUILD
+rm -rf mythtv-0.15.1
+/usr/bin/bzip2 -dc /home/samppa/rpm/SOURCES/mythtv-0.15.1.tar.bz2
+tar -xf -
+STATUS=0
+'[' 0 -ne 0 ']'
+cd mythtv-0.15.1
/home/samppa/rpm/tmp/rpm-tmp.31902: line 29: cd: mythtv-0.15.1: No such
file or directory
virhe: Bad exit status from /home/samppa/rpm/tmp/rpm-tmp.31902 (%prep)
RPM build errors:
Bad exit status from /home/samppa/rpm/tmp/rpm-tmp.31902 (%prep)
Again, the mythtv-0.15.1 folder IS under rpm/BUILD and rpm/SOURCES. This
error repeats itself when root also.
Im lost.... PLS HELP
below the Makefile that qmake mythtv.pro made;
#############################################################################
# Makefile for building: mythtv
# Generated by qmake (1.06c) (Qt 3.2.3) on: Mon Aug 16 18:50:37 2004
# Project: mythtv.pro
# Template: subdirs
# Command: $(QMAKE) -o Makefile mythtv.pro
#############################################################################
MAKEFILE = Makefile
QMAKE = qmake
DEL_FILE = rm -f
CHK_DIR_EXISTS= test -d
MKDIR = mkdir -p
SUBTARGETS = \
sub-libs \
sub-filters \
sub-programs \
sub-themes \
sub-setup \
sub-i18n
first: all
all: Makefile $(SUBTARGETS)
libs/$(MAKEFILE):
@$(CHK_DIR_EXISTS) "libs" || $(MKDIR) "libs"
cd libs && $(QMAKE) libs.pro -o $(MAKEFILE)
sub-libs: libs/$(MAKEFILE) FORCE
cd libs && $(MAKE) -f $(MAKEFILE)
filters/$(MAKEFILE):
@$(CHK_DIR_EXISTS) "filters" || $(MKDIR) "filters"
cd filters && $(QMAKE) filters.pro -o $(MAKEFILE)
sub-filters: filters/$(MAKEFILE) FORCE
cd filters && $(MAKE) -f $(MAKEFILE)
programs/$(MAKEFILE):
@$(CHK_DIR_EXISTS) "programs" || $(MKDIR) "programs"
cd programs && $(QMAKE) programs.pro -o $(MAKEFILE)
sub-programs: programs/$(MAKEFILE) FORCE
cd programs && $(MAKE) -f $(MAKEFILE)
themes/$(MAKEFILE):
@$(CHK_DIR_EXISTS) "themes" || $(MKDIR) "themes"
cd themes && $(QMAKE) themes.pro -o $(MAKEFILE)
sub-themes: themes/$(MAKEFILE) FORCE
cd themes && $(MAKE) -f $(MAKEFILE)
setup/$(MAKEFILE):
@$(CHK_DIR_EXISTS) "setup" || $(MKDIR) "setup"
cd setup && $(QMAKE) setup.pro -o $(MAKEFILE)
sub-setup: setup/$(MAKEFILE) FORCE
cd setup && $(MAKE) -f $(MAKEFILE)
i18n/$(MAKEFILE):
@$(CHK_DIR_EXISTS) "i18n" || $(MKDIR) "i18n"
cd i18n && $(QMAKE) i18n.pro -o $(MAKEFILE)
sub-i18n: i18n/$(MAKEFILE) FORCE
cd i18n && $(MAKE) -f $(MAKEFILE)
Makefile: mythtv.pro /usr/lib/qt3/mkspecs/default/qmake.conf
$(QMAKE) -o Makefile mythtv.pro
qmake: qmake_all
@$(QMAKE) -o Makefile mythtv.pro
all: $(SUBTARGETS)
qmake_all: libs/$(MAKEFILE) filters/$(MAKEFILE) programs/$(MAKEFILE)
themes/$(MAKEFILE) setup/$(MAKEFILE) i18n/$(MAKEFILE)
( [ -d libs ] && cd libs ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE)
-f $(MAKEFILE) qmake_all; ) || true
( [ -d filters ] && cd filters ; grep "^qmake_all:" $(MAKEFILE) &&
$(MAKE) -f $(MAKEFILE) qmake_all; ) || true
( [ -d programs ] && cd programs ; grep "^qmake_all:" $(MAKEFILE) &&
$(MAKE) -f $(MAKEFILE) qmake_all; ) || true
( [ -d themes ] && cd themes ; grep "^qmake_all:" $(MAKEFILE) &&
$(MAKE) -f $(MAKEFILE) qmake_all; ) || true
( [ -d setup ] && cd setup ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE)
-f $(MAKEFILE) qmake_all; ) || true
( [ -d i18n ] && cd i18n ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE)
-f $(MAKEFILE) qmake_all; ) || true
clean uicables mocables uiclean mocclean lexclean yaccclean : qmake_all
FORCE
( [ -d libs ] && cd libs ; $(MAKE) -f $(MAKEFILE) $@; ) || true
( [ -d filters ] && cd filters ; $(MAKE) -f $(MAKEFILE) $@; ) || true
( [ -d programs ] && cd programs ; $(MAKE) -f $(MAKEFILE) $@; ) ||
true
( [ -d themes ] && cd themes ; $(MAKE) -f $(MAKEFILE) $@; ) || true
( [ -d setup ] && cd setup ; $(MAKE) -f $(MAKEFILE) $@; ) || true
( [ -d i18n ] && cd i18n ; $(MAKE) -f $(MAKEFILE) $@; ) || true
uninstall_subdirs: qmake_all FORCE
( [ -d libs ] && cd libs ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
( [ -d filters ] && cd filters ; $(MAKE) -f $(MAKEFILE) uninstall; )
|| true
( [ -d programs ] && cd programs ; $(MAKE) -f $(MAKEFILE) uninstall; )
|| true
( [ -d themes ] && cd themes ; $(MAKE) -f $(MAKEFILE) uninstall; ) ||
true
( [ -d setup ] && cd setup ; $(MAKE) -f $(MAKEFILE) uninstall; ) ||
true
( [ -d i18n ] && cd i18n ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
install_subdirs: qmake_all FORCE
( [ -d libs ] && cd libs ; $(MAKE) -f $(MAKEFILE) install; ) || true
( [ -d filters ] && cd filters ; $(MAKE) -f $(MAKEFILE) install; ) ||
true
( [ -d programs ] && cd programs ; $(MAKE) -f $(MAKEFILE) install; )
|| true
( [ -d themes ] && cd themes ; $(MAKE) -f $(MAKEFILE) install; ) ||
true
( [ -d setup ] && cd setup ; $(MAKE) -f $(MAKEFILE) install; ) || true
( [ -d i18n ] && cd i18n ; $(MAKE) -f $(MAKEFILE) install; ) || true
distclean: qmake_all FORCE
( [ -d libs ] && cd libs ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE)
$(MAKEFILE); ) || true
( [ -d filters ] && cd filters ; $(MAKE) -f $(MAKEFILE) $@;
$(DEL_FILE) $(MAKEFILE); ) || true
( [ -d programs ] && cd programs ; $(MAKE) -f $(MAKEFILE) $@;
$(DEL_FILE) $(MAKEFILE); ) || true
( [ -d themes ] && cd themes ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE)
$(MAKEFILE); ) || true
( [ -d setup ] && cd setup ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE)
$(MAKEFILE); ) || true
( [ -d i18n ] && cd i18n ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE)
$(MAKEFILE); ) || true
install: all install_subdirs
uninstall: uninstall_subdirs
FORCE:
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20040816/06224606/attachment.htm
More information about the mythtv-users
mailing list