[mythtv] Best way to completely rebuild SVN? (errors in cdrip.cpp)

Michael Rice mikerice1969 at gmail.com
Tue Nov 20 19:20:33 UTC 2007


What is the best way to completely rebuild without checking out a new
source tree?  Do I need
to do make "clean", make "distclean" or both in a certain order?  The
script I use is below but
after updating a few minutes ago I see build errors:

g++ -c -pipe -march=pentiumpro -pthread -I/usr/include/kde/artsc
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -Wall
-Wno-switch -Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor
-D__STDC_CONSTANT_MACROS -Wall -W -g -I/usr/include/SDL
-D_GNU_SOURCE=1 -D_REENTRANT -D_REENTRANT -DPIC -fPIC  -D_GNU_SOURCE
-DPREFIX=\"/usr/local\" -DMMX -Di386 -D_FILE_OFFSET_BITS=64
-DQT_THREAD_SUPPORT -DQT_PLUGIN -DQT_SHARED -DQT_NO_DEBUG
-I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/local/include
-I/usr/local/include -I/usr/include -I/usr/include/taglib
-I/usr/include/cdda -I/usr/lib/qt-3.3/include -o cdrip.o cdrip.cpp
cdrip.cpp: In member function 'void Ripper::startScanCD()':
cdrip.cpp:741: error: invalid conversion from 'int' to 'MythDialog::DialogCode'
cdrip.cpp:745: error: 'kDialogCodeButton0' was not declared in this scope
cdrip.cpp:750: error: 'kDialogCodeButton1' was not declared in this scope
cdrip.cpp:756: error: 'kDialogCodeButton2' was not declared in this scope
cdrip.cpp:761: error: 'kDialogCodeButton3' was not declared in this scope
cdrip.cpp: In member function 'void Ripper::startRipper()':
cdrip.cpp:1184: error: invalid conversion from 'int' to 'MythDialog::DialogCode'
cdrip.cpp:1185: error: 'kDialogCodeAccepted' was not declared in this scope
cdrip.cpp: In member function 'bool Ripper::showList(QString, QString&)':
cdrip.cpp:1404: error: invalid conversion from 'int' to 'MythDialog::DialogCode'
cdrip.cpp:1405: error: 'kDialogCodeRejected' was not declared in this scope
cdrip.cpp: In member function 'void Ripper::showEditMetadataDialog()':
cdrip.cpp:1425: error: 'kDialogCodeRejected' was not declared in this scope
/usr/include/cdda/cdda_interface.h: At global scope:
/usr/include/cdda/cdda_interface.h:195: warning: 'strerror_tr' defined
but not used
make: *** [cdrip.o] Error 1


#!/bin/sh
cd mythtv
A="`svn info README | grep '^Revision: '`"
cd ..
echo "Build of $A started `date`" >> build_all.log

cd mythtv
make clean
make distclean
cd ..

cd mythplugins
make clean
make distclean
cd ..

cd myththemes
make clean
make distclean
cd ..

cd mythtv
./configure --prefix=/usr/local --compile-type=debug
tail -2 config.log >> ../build_all.log
nice make -j4
cd ..

cd mythplugins
./configure --prefix=/usr/local --compile-type=debug
--disable-mythgame --disable-mythphone --disable-mythnews
--disable-mythzoneminder --disable-mythbrowser --disable-mythflix
tail -2 config.log >> ../build_all.log
nice make -j4
cd ..

cd myththemes
./configure --prefix=/usr/local --compile-type=debug
nice make -j4
cd ..

echo "Build of $A done    `date`" >> build_all.log


More information about the mythtv-dev mailing list