mythtv

 
Post new topic   Reply to topic    Lunar-Linux Forum Index -> Installing Modules
View previous topic :: View next topic  
Author Message
jaylmaz



Joined: 18 May 2007
Posts: 8

PostPosted: Wed May 30, 2007 4:06 am    Post subject: mythtv Reply with quote

can't seem to get mythtv installed, i get the following:

Quote:
/var/lib/lunar/moonbase/video/mythtv/BUILD: line 11: qmake: command not found


I tried to tell the compiler where the qt libraries and qmake were located:

Quote:
which qmake /opt/lunar/qt/3/bin/qmake
/usr/bin/which: no qmake in (/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11/bin)
/opt/lunar/qt/3/bin/qmake


but that obviously wasn't right, since it didn't work.

What am I doing wrong?

Thanks.
Back to top
View user's profile Send private message
engelsman



Joined: 21 Aug 2005
Posts: 131
Location: Netherlands

PostPosted: Wed May 30, 2007 6:54 am    Post subject: Environment variables for Qt application build? Reply with quote

I'm not a Qt user, but a quick search of the qt3 module page (which is the same as typing lvu what qt3) says that you might need to set some environment variables in order to be able to build some Qt applications.
Does this help?
Back to top
View user's profile Send private message
jaylmaz



Joined: 18 May 2007
Posts: 8

PostPosted: Thu May 31, 2007 1:36 am    Post subject: Reply with quote

I tried:
Quote:
bash-3.1# QTDIR=/opt/lunar/qt/3
bash-3.1# PATH=/opt/lunar/qt/3/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11/bin


got the same error:
Quote:
Creating config.mak and config.h
/var/lib/lunar/moonbase/video/mythtv/BUILD: line 11: qmake: command not found
Creating /var/log/lunar/compile/mythtv-0.17.bz2
! Problem detected during BUILD


Quote:
bash-3.1# echo $PATH
/opt/lunar/qt/3/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11/bin


The path looks ok to me, but I still cannot compile mythtv.
Back to top
View user's profile Send private message
ElAngelo



Joined: 10 Aug 2005
Posts: 77

PostPosted: Thu May 31, 2007 5:48 am    Post subject: Reply with quote

. /etc/profile.d/qt3.rc

put that in front of the BUILD file...
Back to top
View user's profile Send private message
jaylmaz



Joined: 18 May 2007
Posts: 8

PostPosted: Fri Jun 01, 2007 1:31 am    Post subject: Reply with quote

Thanks for the reply.
I tried your suggestion as follows:
Code:
. /etc/profile.d/qt3.rc
(
   sedit "s:PREFIX = .*:PREFIX=/usr:" settings.pro
   #if use alsa
   sedit "s:#CONFIG += using_alsa:CONFIG += using_alsa:" settings.pro
   sedit "s:#ALSA_LIBS = -lasound:ALSA_LIBS = -lasound:" settings.pro
   #fi


Now I get a different error:

Quote:
In file included from avcodec.h:15,
from utils.c:28:
common.h:61: error: array type has incomplete element type
common.h:65: error: array type has incomplete element type
make[2]: *** [utils.o] Error 1
make[2]: Leaving directory `/usr/src/mythtv-0.17/libs/libavcodec'
make[1]: *** [sub-libavcodec] Error 2
make[1]: Leaving directory `/usr/src/mythtv-0.17/libs'
make: *** [sub-libs] Error 2
Creating /var/log/lunar/compile/mythtv-0.17.bz2
! Problem detected during BUILD


Maybe I'm not applying your suggestion correctly?
Back to top
View user's profile Send private message
sofar



Joined: 11 Aug 2005
Posts: 172

PostPosted: Fri Jun 01, 2007 5:08 am    Post subject: try this: Reply with quote

lin -w 0.20.1 mythtv

let us know if it works, the mythtv package is currently out-of-date and needs an update
Back to top
View user's profile Send private message Send e-mail
jaylmaz



Joined: 18 May 2007
Posts: 8

PostPosted: Fri Jun 01, 2007 3:33 pm    Post subject: Reply with quote

First I ran:
Code:
lin -w 0.20.1 mythtv


Got an error about not finding the file, so I tried:
Code:
lin -w 0.20 mythtv


Then it downloaded and started to compile, but got another error within a minute or two:
Quote:
make[1]: Leaving directory `/usr/src/mythtv-0.20/i18n'
( [ -d config ] && cd config ; /usr/bin/make -f Makefile install; ) || true
make[1]: Entering directory `/usr/src/mythtv-0.20/config'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/usr/src/mythtv-0.20/config'
cp: cannot stat `setup/setup': No such file or directory
Creating /var/log/lunar/compile/mythtv-0.20.bz2
! Problem detected during BUILD


anything else I can try? Thamks.

I assume it would be dependency hell if I download the mythtv source and try to compile it manually. any howto's out there on how to that in Lunar?
Back to top
View user's profile Send private message
engelsman



Joined: 21 Aug 2005
Posts: 131
Location: Netherlands

PostPosted: Fri Jun 01, 2007 5:29 pm    Post subject: in $HOME or zlocal Reply with quote

Depending on the application, you might be able to build and install it under your own home directory, especially if it has a "configure" script (see configure --help for details).
Code:

mkdir -p ~/scratch/src
cd ~/scratch/src
tar zxvf project.tgz
cd project
.configure --prefix=~/scratch
make
make install

Otherwise, you could create a zlocal version of the module, and try tweaking the DETAILS, BUILD and other files to get what you want, and use lin to try to install it as usual. See the Lunar Documentation pages for details.

With mythtv you are probably better with the second. And once you've got it working, you can then Submit the module so that others can benefit Smile
Back to top
View user's profile Send private message
jaylmaz



Joined: 18 May 2007
Posts: 8

PostPosted: Fri Jun 01, 2007 11:04 pm    Post subject: Reply with quote

Well, I managed to get mythtv to compile, but cannot get mysql to set up the initial database. I may have to give it up, or at least take a break.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Lunar-Linux Forum Index -> Installing Modules All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group