View previous topic :: View next topic |
Author |
Message |
jaylmaz
Joined: 18 May 2007 Posts: 8
|
Posted: Wed May 30, 2007 4:06 am Post subject: mythtv |
|
|
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 |
|
 |
engelsman
Joined: 21 Aug 2005 Posts: 131 Location: Netherlands
|
Posted: Wed May 30, 2007 6:54 am Post subject: Environment variables for Qt application build? |
|
|
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 |
|
 |
jaylmaz
Joined: 18 May 2007 Posts: 8
|
Posted: Thu May 31, 2007 1:36 am Post subject: |
|
|
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 |
|
 |
ElAngelo
Joined: 10 Aug 2005 Posts: 77
|
Posted: Thu May 31, 2007 5:48 am Post subject: |
|
|
. /etc/profile.d/qt3.rc
put that in front of the BUILD file... |
|
Back to top |
|
 |
jaylmaz
Joined: 18 May 2007 Posts: 8
|
Posted: Fri Jun 01, 2007 1:31 am Post subject: |
|
|
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 |
|
 |
sofar

Joined: 11 Aug 2005 Posts: 172
|
Posted: Fri Jun 01, 2007 5:08 am Post subject: try this: |
|
|
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 |
|
 |
jaylmaz
Joined: 18 May 2007 Posts: 8
|
Posted: Fri Jun 01, 2007 3:33 pm Post subject: |
|
|
First I ran:
Code: | lin -w 0.20.1 mythtv |
Got an error about not finding the file, so I tried:
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 |
|
 |
engelsman
Joined: 21 Aug 2005 Posts: 131 Location: Netherlands
|
Posted: Fri Jun 01, 2007 5:29 pm Post subject: in $HOME or zlocal |
|
|
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  |
|
Back to top |
|
 |
jaylmaz
Joined: 18 May 2007 Posts: 8
|
Posted: Fri Jun 01, 2007 11:04 pm Post subject: |
|
|
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 |
|
 |
|