View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 109 posts ] 
Go to page Previous  1 ... 4, 5, 6, 7, 8  Next

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject:
PostPosted: Tue Sep 11, 2007 2:33 am 
Offline
Joined: Thu Dec 01, 2005 12:46 am
Posts: 135
gman3719 wrote:
Got this working with a slight tweak: From dwaine post on page 6 I had to modify the script slight to work for my machine on a clean install of R5F1. Removed:
grep 'Athlon(tm) 64' /proc/cpuinfo >/dev/null && EXTRA_OPTS="--arch=athlon"
and all other instances of $EXTRA_OPTS


Leaving in the grep for the amd check should be ok on an Intel box. The script works fine on my P4 3.0ghz box.

Uuuuummm.....

Here is my grep of cpuinfo

processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Pentium(R) D CPU 2.80GHz
stepping : 7
cpu MHz : 2800.315
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc pebs bts sync_rdtsc pni monitor ds_cpl cid cx16 xtpr lahf_lm
bogomips : 5605.03
clflush size : 64

processor : 1
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Pentium(R) D CPU 2.80GHz
stepping : 7
cpu MHz : 2800.315
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc pebs bts sync_rdtsc pni monitor ds_cpl cid cx16 xtpr lahf_lm
bogomips : 5596.99
clflush size : 64


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 29, 2007 10:08 pm 
Offline
Joined: Thu Dec 01, 2005 12:46 am
Posts: 135
I can confirm that the script is working fine with R5F27. Been using for a week.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 01, 2007 8:40 pm 
Offline
Joined: Tue Aug 09, 2005 2:09 pm
Posts: 107
I have attempted to use this script as well as use the instructions in the wiki to install mythtv from svn and it appears to not compile mythtv with ivtv support and I really don't know why? when I run configure with --enable-ivtv it still comes up as disabled. Does anyone know what I need to have installed to enable ivtv support?

_________________
P4 1.6 GHz
1.2 GB RAM
Nvidia GeForce4 MX 4000
Hauppage PVR 500 MCE
Soundblaster Live
ATI Remote Wonder II


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 06, 2007 7:38 pm 
Offline
Joined: Thu Dec 01, 2005 12:46 am
Posts: 135
Script updated for ffmpeg patches to svn. It removed the libdts for configure. There was another parameter for configure that I'm looking into. It the multi-thread for x264 decoding.

Dwaine


#!/bin/bash
echo "Welcome to Watto's compile/install MythTV script for Knoppmyth."

# Fatal Error function.
fatal_error () {
echo 1>&2 "Fatal error - $*, exiting."
exit 1
}

# Nice make function.
make_nice () {
/usr/bin/nice -n17 /usr/bin/make "$@"
}

# Athlon64 Compile Fix.
grep 'Athlon(tm) 64' /proc/cpuinfo >/dev/null && EXTRA_OPTS="--arch=athlon"

# User input.
TARGET=trunk # Default to trunk
WAIT_FOR_USER=false
while [ -n "$1" ] ; do
case "$1" in
head)
TARGET=trunk
;;
fixes)
TARGET=branches/release-0-20-fixes
;;
pause)
WAIT_FOR_USER=true
;;
*)
echo
echo "Unknown command line parameter. Usage: mythsvn.sh [head|fixes] [pause]"
echo " Selecting head will compile from the SVN head,"
echo " Selecting fixes will compile the fixes branch,"
echo " Selecting pause will pause before installation."
exit 1
;;
esac
shift
done

# Download SVN.
/usr/bin/svn co http://svn.mythtv.org/svn/$TARGET/mythtv
/usr/bin/svn co http://svn.mythtv.org/svn/$TARGET/mythplugins
/usr/bin/svn co http://svn.mythtv.org/svn/$TARGET/myththemes

# Backup custom menu.
/bin/cp -f /usr/share/mythtv/mainmenu.xml ./
/bin/cp -f /usr/share/mythtv/optical_menu.xml ./

# Configure/make MythTV.
cd mythtv
./configure --disable-distcc --prefix=/usr --enable-proc-opt --enable-dvb --enable-xvmc --enable-xvmc-opengl --enable-opengl-vsync --enable-opengl-video $EXTRA_OPTS
export QTDIR=/usr/share/qt3
/usr/bin/qmake mythtv.pro
make_nice || fatal_error "The build failed!"

# Backup Knoppmyth and MythTV.
grep /usr/share/mythtv /myth/backup/backup.list >/dev/null ||
echo ./usr/share/mythtv >> /myth/backup/backup.list
sed -si~ -e 's:^/:./:' /myth/backup/backup.list
/usr/local/bin/mythbackup

# Pause before installation (optional)
[ "$WAIT_FOR_USER" = "true" ] && read -p "Please hit 'Any Key' to continue..."

# Stop all effected programs.
/etc/init.d/lirc stop
/etc/init.d/mythtv-backend stop
/etc/init.d/mysql stop

# Install MythTV and restore custom menus.
make_nice install || fatal_error "failed to install MythTV"
/bin/cp -f ../mainmenu.xml /usr/share/mythtv/
/bin/cp -f ../optical_menu.xml /usr/share/mythtv/

# Configure and Install MythThemes.
cd ../myththemes/
./configure --prefix=/usr $EXTRA_OPTS
/usr/bin/qmake myththemes.pro
make_nice || fatal_error "failed to make MythThemes"
make_nice install || fatal_error "failed to install MythThemes"

# Restart everything.
/etc/init.d/mysql restart
/etc/init.d/mythtv-backend restart
/etc/init.d/lirc restart
(sleep 5 ; /usr/bin/irexec -d /home/mythtv/.lircrc) &

# Configure, make, and install MythPlugins.
cd ../mythplugins/
./configure --prefix=/usr --enable-all $EXTRA_OPTS
/usr/bin/qmake mythplugins.pro
make_nice || fatal_error "failed to build MythPlugins"
make_nice install || fatal_error "failed to install MythPlugins"

# Restart frontend to load plugins and update MythWeb.
/bin/cp -R -f mythweb/* /var/www/mythweb
/usr/share/mythtv/mythweb/modules/_shared/lang/build_translation.pl

# All done!
shutdown -r now
exit 0


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 21, 2007 9:57 pm 
Offline
Joined: Sun Sep 04, 2005 7:48 pm
Posts: 264
Location: Perth, Australia
Hi there,

I also used this script, and encountered a problem i couldnt resolve. I subsequently, grabbed the R5F27 CD, and re-upgraded and all is well.

My problem getting this to work was that the DVB includes (or something like that) link was not in the kernel headers (excuse my poor/incorrect description, but i think you get the picture). I followed these instructions
http://mysettopbox.tv/phpBB2/viewtopic.php?t=16434
and managed to get myth to compile using the above script. However, even though it SAID it was happy with DVB support compiled in, when the backend came back up, it will showed log errors saying that DVB was not enabled.

I gave up at this point, and went back to the R5F27 CD.

If i get the urge again to delve into svn mythtv,has anyone got any hints as to where i went wrong?

Cheers,

Nathan

_________________
LinHES: R6 | MB: Asus M3N-H/HDMI | CPU: AMD ??Mhz
Capture: 2xHDHR DVB-T
Graphics: Onboard 8300|PSU: Corsair vx450w
Cooling: Zalman cu?,
Display: Benq xx projector


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 24, 2007 6:36 pm 
Offline
Joined: Sun Feb 26, 2006 11:34 pm
Posts: 83
Location: Toronto, ON, Canada
dwaine wrote:
I can confirm that the script is working fine with R5F27. Been using for a week.


dwaine,

Could you post your configuration? I can't seem to get the plugins to compile:

Code:
make
cd mytharchive && make -f Makefile
make[1]: Entering directory `/home/mythtv/mythplugins/mytharchive'
cd mytharchive && make -f Makefile
make[2]: Entering directory `/home/mythtv/mythplugins/mytharchive/mytharchive'
g++ -c -pipe -march=pentium4 -I/usr/include/kde/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/directfb -D_REENTRANT -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor -D__STDC_CONSTANT_MACROS -Wall -W -fomit-frame-pointer -fomit-frame-pointer -D_REENTRANT -DPIC -fPIC  -D_GNU_SOURCE -DPREFIX="/usr" -DMMX -Di386 -D_FILE_OFFSET_BITS=64 -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I/usr/include -I/usr/include -I/usr/include/mythtv -I/usr/include/mythtv/ffmpeg -I/usr/include/mythtv/libmythtv -I/usr/include/qt3 -o main.o main.cpp
main.cpp: In function 'void runCreateDVD()':
main.cpp:133: error: 'DialogCode' was not declared in this scope
main.cpp:133: error: expected `;' before 'res'
main.cpp:138: error: 'kDialogCodeRejected' was not declared in this scope
main.cpp:138: error: 'res' was not declared in this scope
main.cpp: In function 'void runCreateArchive()':
main.cpp:180: error: 'DialogCode' was not declared in this scope
main.cpp:180: error: expected `;' before 'res'
main.cpp:185: error: 'kDialogCodeRejected' was not declared in this scope
main.cpp:185: error: 'res' was not declared in this scope
main.cpp: In function 'void runImportVideo()':
main.cpp:230: error: 'DialogCode' was not declared in this scope
main.cpp:230: error: expected `;' before 'res'
main.cpp:233: error: 'kDialogCodeRejected' was not declared in this scope
main.cpp:233: error: 'res' was not declared in this scope
main.cpp: In function 'void runBurnDVD()':
main.cpp:319: error: 'DialogCode' was not declared in this scope
main.cpp:319: error: expected `;' before 'res'
main.cpp:323: error: 'kDialogCodeButton3' was not declared in this scope
main.cpp:323: error: 'res' was not declared in this scope
main.cpp:323: error: 'kDialogCodeRejected' was not declared in this scope
main.cpp:326: error: 'CalcItemIndex' is not a member of 'MythDialog'
main.cpp:326: error: 'res' was not declared in this scope
main.cpp:348: error: 'kDialogCodeButton2' was not declared in this scope
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/home/mythtv/mythplugins/mytharchive/mytharchive'
make[1]: *** [sub-mytharchive] Error 2
make[1]: Leaving directory `/home/mythtv/mythplugins/mytharchive'
make: *** [sub-mytharchive] Error 2


I have tried it as root and mythtv and it is driving me nuts!

Victor


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 18, 2007 1:18 am 
Offline
Joined: Mon Mar 21, 2005 1:43 pm
Posts: 388
Location: Nanaimo BC
rf527

failes to build plugins

any suggestions

thanks
Craig


main.cpp:22:28: error: linux/videodev.h: No such file or directory
webcam.h:186: error: field 'vCaps' has incomplete type
webcam.h:187: error: field 'vWin' has incomplete type
webcam.h:188: error: field 'vPic' has incomplete type
webcam.h:189: error: field 'vClips' has incomplete type
webcam.h: In member function 'int Webcam::GetBrightness()':
webcam.h:120: error: 'vPic' was not declared in this scope
webcam.h: In member function 'int Webcam::GetColour()':
webcam.h:121: error: 'vPic' was not declared in this scope
webcam.h: In member function 'int Webcam::GetContrast()':
webcam.h:122: error: 'vPic' was not declared in this scope
webcam.h: In member function 'int Webcam::GetHue()':
webcam.h:123: error: 'vPic' was not declared in this scope
webcam.h: In member function 'QString Webcam::GetName()':
webcam.h:124: error: 'vCaps' was not declared in this scope
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/usr/sbin/mythplugins/mythphone/mythphone'
make[1]: *** [sub-mythphone] Error 2
make[1]: Leaving directory `/usr/sbin/mythplugins/mythphone'
make: *** [sub-mythphone] Error 2
Fatal error - failed to build MythPlugins, exiting.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 08, 2008 5:29 am 
Offline
Joined: Thu Feb 22, 2007 6:56 pm
Posts: 79
Any update to this? This no longer seems to work as it did before.

The athlon compile option is rejected.

Several plugins fail to build.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 09, 2008 4:09 am 
Offline
Joined: Thu Dec 01, 2005 12:46 am
Posts: 135
I just did a sync with svn with the script. Been using it all week.
This is what I'm using.

#!/bin/bash
echo "Welcome to Watto's compile/install MythTV script for Knoppmyth."

# Fatal Error function.
fatal_error () {
echo 1>&2 "Fatal error - $*, exiting."
exit 1
}

# Nice make function.
make_nice () {
/usr/bin/nice -n17 /usr/bin/make "$@"
}

# Athlon64 Compile Fix.
grep 'Athlon(tm) 64' /proc/cpuinfo >/dev/null && EXTRA_OPTS="--arch=athlon"

# User input.
TARGET=trunk # Default to trunk
WAIT_FOR_USER=false
while [ -n "$1" ] ; do
case "$1" in
head)
TARGET=trunk
;;
fixes)
TARGET=branches/release-0-20-fixes
;;
pause)
WAIT_FOR_USER=true
;;
*)
echo
echo "Unknown command line parameter. Usage: mythsvn.sh [head|fixes] [pause]"
echo " Selecting head will compile from the SVN head,"
echo " Selecting fixes will compile the fixes branch,"
echo " Selecting pause will pause before installation."
exit 1
;;
esac
shift
done

# Download SVN.
/usr/bin/svn co http://svn.mythtv.org/svn/$TARGET/mythtv
/usr/bin/svn co http://svn.mythtv.org/svn/$TARGET/mythplugins
/usr/bin/svn co http://svn.mythtv.org/svn/$TARGET/myththemes

# Backup custom menu.
/bin/cp -f /usr/share/mythtv/mainmenu.xml ./
/bin/cp -f /usr/share/mythtv/optical_menu.xml ./

# Configure/make MythTV.
cd mythtv
./configure --disable-distcc --prefix=/usr --enable-proc-opt --enable-dvb --enable-xvmc --enable-xvmc-opengl --enable-opengl-vsync --enable-opengl-video $EXTRA_OPTS
export QTDIR=/usr/share/qt3
/usr/bin/qmake mythtv.pro
make_nice || fatal_error "The build failed!"

# Backup Knoppmyth and MythTV.
grep /usr/share/mythtv /myth/backup/backup.list >/dev/null ||
echo ./usr/share/mythtv >> /myth/backup/backup.list
sed -si~ -e 's:^/:./:' /myth/backup/backup.list
/usr/local/bin/mythbackup

# Pause before installation (optional)
[ "$WAIT_FOR_USER" = "true" ] && read -p "Please hit 'Any Key' to continue..."

# Stop all effected programs.
/etc/init.d/lirc stop
/etc/init.d/mythtv-backend stop
/etc/init.d/mysql stop

# Install MythTV and restore custom menus.
make_nice install || fatal_error "failed to install MythTV"
/bin/cp -f ../mainmenu.xml /usr/share/mythtv/
/bin/cp -f ../optical_menu.xml /usr/share/mythtv/

# Configure and Install MythThemes.
cd ../myththemes/
./configure --prefix=/usr $EXTRA_OPTS
/usr/bin/qmake myththemes.pro
make_nice || fatal_error "failed to make MythThemes"
make_nice install || fatal_error "failed to install MythThemes"

# Restart everything.
/etc/init.d/mysql restart
/etc/init.d/mythtv-backend restart
/etc/init.d/lirc restart
(sleep 5 ; /usr/bin/irexec -d /home/mythtv/.lircrc) &

# Configure, make, and install MythPlugins.
cd ../mythplugins/
./configure --prefix=/usr --enable-all $EXTRA_OPTS
/usr/bin/qmake mythplugins.pro
make_nice || fatal_error "failed to build MythPlugins"
make_nice install || fatal_error "failed to install MythPlugins"

# Restart frontend to load plugins and update MythWeb.
/bin/cp -R -f mythweb/* /var/www/mythweb
/usr/share/mythtv/mythweb/modules/_shared/lang/build_translation.pl

# All done!
shutdown -r now
exit 0


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 14, 2008 11:26 am 
Offline
Joined: Thu Feb 22, 2007 6:56 pm
Posts: 79
except for a couple of config opts, I have the same script. It seems to work if I do a make clean first. I would guess it depends on how long its been since you've compiled last.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 12, 2008 3:25 pm 
Offline
Joined: Tue Feb 12, 2008 3:15 pm
Posts: 1
NefariousAryq wrote:
NefariousAryq wrote:
Well, it worked for me. Sorta. I'm running R5F1, and I used this to upgrade to the latest trunk release. Except, I'm having the following issues:



Okay, ignore the last post. I wiped the SVN directory, and tried again, and now the segfault issue disappeared. Must have been an issue with that version of SVN I had, for that day.

I still had the MythWeb issues, so I wiped the /var/www directory, copied all the files over from the svn plugins directory, edited the config file and copied it into /etc/apache2/conf.d/ and viola, all is now perfect with my MythTV box again!

THANKS!
--Eric


Hi, I have same problem with Mythweb. Can you post more details about repairing it?
What means "wiped"? (my english is not good...... :-( )
What config file ?

Thanks, siD


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 12, 2008 7:23 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
siD wrote:
What means "wiped"? (my english is not good...... :-( )

Wipe ==> rub, polish, clean, wash, brush, ... The implication is something along the lines of cleaning with a rag, paper (tissue or towel) or sponge without being as rough as scrubbing or scouring.

As in "I wiped the crumbs off the table" or "I wiped my nose" or "he wiped the chalkboard".

Dutch - veeg af
German - Abwischen
French - essuyé
Spanish - limpiado

Here it just means deleted or removed.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 17, 2008 5:08 pm 
Offline
Joined: Thu Dec 01, 2005 12:46 am
Posts: 135
Yeah... Notice that the mythweb does not delete the older version in /var/www/mythweb directory and copy the new svn version of mythweb. I just do it manually when there are updates to mythweb.

I also noticed their is a problem with Nividia XVMC and the open-gl settings for configure. If you get a blank screen when watch recordings and or livetv, then remove the open-gl from the configure settings in the script.

Dwaine


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 06, 2008 10:36 pm 
Offline
Joined: Thu Dec 01, 2005 12:46 am
Posts: 135
Does anyone know how to setup the make compile properly for Quad Core cpus? I have the Intel Quad Core 2.40ghz and the -march when compiling is stuck at "K8"..

Hopefully with the next release of Knoppmyth it will have gcc v4.3.

Dwaine


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 07, 2008 10:06 am 
Offline
Joined: Thu Feb 12, 2004 2:54 pm
Posts: 392
Location: Beaumont, CA
Just a quick note that while it is fun and sometimes beneficial to upgrade mythtv via svn, the svn trunk is not always stable. Every few months I'll grab the latest svn, and a few times I've had problems with the svn being unstable or not compiling.
It's easy to solve. Just wait a few hours and then download and try again. Make sure the new download is a different svn version. That has always worked for me.

_________________
ASUS A7N266 Micro-ATX Motherboard
Athlon 2200 processor
512K Kingston PC2100 Memory
MicroAtx Case
2 PVR250's w/remote
eVGA e-GeForce mx4000 (64 Ram with Tv/Out (Svideo))
Lite-on DVD cd-rw combo
120 GB Western Digital


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 109 posts ] 
Go to page Previous  1 ... 4, 5, 6, 7, 8  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu