Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mythtv 0.18 ebuilds
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
mooch
n00b
n00b


Joined: 08 Sep 2004
Posts: 20

PostPosted: Sat Apr 16, 2005 9:09 pm    Post subject: mythtv 0.18 ebuilds Reply with quote

I butchered the 0.17 ebuilds and managed to cobble together some mostly incorrect, sloppy, ugly, but working ebuilds for mythtv and mythplugins. First, mythtv... This worked for me, but I would recommend backing up your database before doing anything rash!

To use these ebuilds, you need to set PORTDIR_OVERLAY in your /etc/make.conf. I set it to /usr/local/portage.

Within /usr/local/portage you will need a media-tv and media-plugins directory. Under media-tv create a mythtv directory and under media-plugins a mythplugins directory. Then cut and paste the following ebuilds into a .ebuild file.

For example:
Code:
/usr/local/portage/media-tv/mythtv/mythtv-0.18.ebuild
/usr/local/portage/media-plugins/mythplugins/mythplugins-0.18.ebuild


Once you have the ebuilds in place, do a digest:

Code:
ebuild mythtv-0.18.ebuild digest


and then an emerge:

Code:
emerge mythtv


Good luck!! Please don't use these unless you are willing to give up myth for a bit while it is broke if something goes wrong! And don't hold me responsible should smoke begin pouring out of your computer!

Code:
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

inherit myth flag-o-matic eutils toolchain-funcs

DESCRIPTION="Homebrew PVR project"
HOMEPAGE="http://www.mythtv.org/"
SRC_URI="http://www.mythtv.org/mc/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="alsa arts dvb lcd lirc nvidia cle266 opengl xv mmx" # ieee1394"

DEPEND=">=media-libs/freetype-2.0
    >=media-sound/lame-3.93.1
    >=x11-libs/qt-3.1
    dev-db/mysql
    alsa? ( >=media-libs/alsa-lib-0.9 )
    >=sys-apps/sed-4
    arts? ( kde-base/arts )
    dvb? ( media-libs/libdvb )
    lcd? ( app-misc/lcdproc )
    lirc? ( app-misc/lirc )
    nvidia? ( media-video/nvidia-glx )
    || ( >=net-misc/wget-1.9.1 >=media-tv/xmltv-0.5.34 )"

RDEPEND="${DEPEND}
    !media-tv/mythfrontend"

pkg_setup() {

    local qt_use="$(</var/db/pkg/`best_version x11-libs/qt`/USE)"
    if ! has mysql ${qt_use} ; then
        eerror "Qt is missing MySQL support. Please add"
        eerror "'mysql' to your USE flags, and re-emerge Qt."
        die "Qt needs MySQL support"
    fi

    if use nvidia; then
        echo
        ewarn "You enabled the 'nvidia' USE flag, you must have a GeForce 4 or"
        ewarn "greater to use this. Otherwise, you'll have crashes with MythTV"
        echo
    fi

}

src_unpack() {

    # Fix bugs 40964 and 42943.
    filter-flags -fforce-addr -fPIC

    # fix bug 67832, 81610, etc
    is-flag "-march=pentium4" && replace-flags "-O3" "-O2"
    is-flag "-march=pentium4" && replace-flags "-0s" "-O2"
    is-flag "-march=athlon-xp" && replace-flags "-O3" "-O2"

    myth_src_unpack || die "unpack failed"

    cd ${S}
}

src_compile() {
    export QMAKESPEC="linux-g++"

    econf || die

    qmake -o "Makefile" "${PN}.pro"
    make qmake || die
    emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die
}

src_install() {
    myth_src_install || die "install failed"
    newbin "setup/setup" "mythsetup"

    insinto /usr/share/mythtv/database
    doins database/*

    exeinto /usr/share/mythtv
    doexe "${FILESDIR}/mythfilldatabase.cron"

    exeinto /etc/init.d
    newexe "${FILESDIR}/mythbackend.rc6" mythbackend
    insinto /etc/conf.d
    newins "${FILESDIR}/mythbackend.conf" mythbackend

    dodoc keys.txt docs/*.{txt,pdf}
    dohtml docs/*.html

    keepdir /var/{log,run}/mythtv
}


Next, the plugins.....While others may be more enterprising than I, I had no desire to write multiple ebuilds for each different plugin allowing for emerging those you want. This one is all or nothing. I also didn't force the removal of your existing plugins, so if you are going to use this ebuild, unmerge those first. This builds all the plugins with the default settings.

Code:
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

inherit myth eutils

DESCRIPTION="Plugins for MythTV."
HOMEPAGE="http://www.mythtv.org/"
SRC_URI="http://www.mythtv.org/mc/${P}.tar.bz2"
IUSE=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"

DEPEND=">=sys-apps/sed-4
    dev-perl/libwww-perl
    dev-perl/HTML-Parser
    dev-perl/URI
    dev-perl/XML-Simple
    || ( media-video/mplayer media-video/xine-ui )
    || ( ~media-tv/mythtv-${PV} ~media-tv/mythfrontend-${PV} )"

setup_pro() {
    return 0
}

src_compile() {
    econf
    myth_src_compile
}


I installed mythweb and myththemes by hand, as the ebuild I slapped together for the themes didn't want to work. These should get you going until some real ebuilds make their way into portage.[/code]
Back to top
View user's profile Send private message
nrdu
n00b
n00b


Joined: 17 Apr 2004
Posts: 66

PostPosted: Sat Apr 16, 2005 11:55 pm    Post subject: Reply with quote

You may want to post this on the bugzilla to help this speed along:

https://bugs.gentoo.org/show_bug.cgi?id=89206
Back to top
View user's profile Send private message
arkhan_jg
Apprentice
Apprentice


Joined: 18 Mar 2003
Posts: 199
Location: Dorset, UK

PostPosted: Sun Apr 17, 2005 12:36 am    Post subject: Reply with quote

*modified 03/05/05 - updated mythtv-0.18.ebuild with fix for MMX and O3.

There are mythtv-0.18 ebuilds in portage now. However, mmx is hard disabled in them, because of the below bug.
I think I've fixed this now, so a fixed ebuild with MMX use flag and -O3 allowed (with -momit-leaf-frame-pointer filtered as well) is the above attachment on bug https://bugs.gentoo.org/show_bug.cgi?id=87483

I'm using an athlon-xp 2600+ and I get the following error when compiling mythtv ebuild:
Code:

i686-pc-linux-gnu-gcc -c -pipe -march=pentiumpro -w -O2 -march=athlon-xp -pipe -fno-pie -D_REENTRANT -DPIC -fPIC  -DMMX -DUSING_IVTV -DUSING_XRANDR -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DHAVE_AV_CONFIG_H -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I.. -I../.. -I/usr/qt/3/include -o a52_bitstream.o liba52/a52_bitstream.c
libpostproc/postprocess_template.c: In function `postProcess_MMX':
libpostproc/postprocess_template.c:3198: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
libpostproc/postprocess_template.c:3283: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
libpostproc/postprocess_template.c:3198: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
libpostproc/postprocess_template.c:3283: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
make: *** [postprocess.o] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `/var/tmp/portage/mythtv-0.18/work/mythtv-0.18/libs/libavcodec'



BTW - if you don't also have the new mythtv themes manually installed, mythfrontend will fail if you have a now missing theme configured - and you can't get into the frontend to change it! I used phpmyadmin to search the mythconverg database for OSDTheme, in the settings table. Delete the row that corresponds to your missing theme for your frontend hostname, and it'll set the theme to the default when you restart mythfrontend.
_________________
make menuconfig not war


Last edited by arkhan_jg on Wed May 04, 2005 1:10 pm; edited 4 times in total
Back to top
View user's profile Send private message
arkhan_jg
Apprentice
Apprentice


Joined: 18 Mar 2003
Posts: 199
Location: Dorset, UK

PostPosted: Sun Apr 17, 2005 6:06 pm    Post subject: Reply with quote

I've added a new ebuild: mythtv-themes-0.18

Most of the themes from 0.17 have been separated out into a new tarball, which I've added to the old mythtv-themes.

To use the above ebuild, assuming your PORTDIR_OVERLAY=/usr/local/portage in make.conf, copy the mythtv-themes-0.18 ebuild into
Code:

/usr/local/portage/x11-themes/mythtv-themes/mythtv-themes-0.18.ebuild

and
Code:

ebuild mythtv-themes-0.18.ebuild digest

then emerge mythtv-themes. You'll also need to have installed a mythtv-0.18 ebuild, (from above) into
Code:

/usr/local/portage/media-tv/mythtv/mythtv-0.18.ebuild


I've added both the mythtv-0.18 and mythtv-themes-0.18 ebuilds to bugzilla
_________________
make menuconfig not war
Back to top
View user's profile Send private message
immudium
Guru
Guru


Joined: 12 Oct 2004
Posts: 332
Location: Utah

PostPosted: Mon Apr 18, 2005 4:25 pm    Post subject: Reply with quote

Quote:
I tried to compile on three different boxes (P4, celeron and athlon-xp) with different gcc's, and I keep getting the above error - the only fix I could find after much trawling was to disable MMX on all platforms. Feel free to fix it if you find another solution!

I've been manually editing the mythtv ebuilds since version 0.16 to include -momit-leaf-frame-point to the filter-flags which will squash the MMX related GENEREAL_REGS errors you mentioned.
Code:

# Fix bugs 40964 and 42943.
filter-flags -fforce-addr -fPIC -momit-leaf-frame-pointer


Doing this will also make the following "replace-flags" lines unnecessary
Code:
# fix bug 67832, 81610, etc
   #is-flag "-march=pentium4" && replace-flags "-O3" "-O2"
   is-flag "-march=pentium4" && replace-flags "-0s" "-O2"
   #is-flag "-march=athlon-xp" && replace-flags "-O3" "-O2"


Which, after commenting out or deleting, will allow the user to make use of O3 optimizations.

Anyway, thanks for the 0.18 ebuild. It worked great for me.
Back to top
View user's profile Send private message
FairWitness
n00b
n00b


Joined: 06 Mar 2004
Posts: 16

PostPosted: Tue Apr 19, 2005 2:46 am    Post subject: Reply with quote

I just sync'ed and it looks like a lot of the ebuilds are there. Not all, but mythtv, mythtv-themes, mythdvd and mythweb are there.
_________________
I'm a Gentoo newb. Help me resolve this.
Back to top
View user's profile Send private message
anxt
Apprentice
Apprentice


Joined: 25 Feb 2003
Posts: 254
Location: Frozen Tundra, Canada

PostPosted: Tue Apr 19, 2005 5:36 am    Post subject: Reply with quote

mythtv-0.18 is in portage now. i just set package.unmask and am going to try it out
Back to top
View user's profile Send private message
immudium
Guru
Guru


Joined: 12 Oct 2004
Posts: 332
Location: Utah

PostPosted: Tue Apr 19, 2005 5:25 pm    Post subject: Reply with quote

By the way, if anyone cares, it is possible to compile mythtv-0.18 in portage using the "-momit-leaf-frame-pointer" filter I posted above. From my mytv ebuild log:
Quote:
# Basic Settings
Compile type release
Compiler cache yes, using ccache symlinked gcc
DistCC no
Install prefix /usr
CPU x86 (Intel(R) Pentium(R) 4 CPU 2.80GHz)
Big Endian no
MMX enabled yes
Vector Builtins no


Although I'm no ebuild expert, it seems to work fine. What should I do to help get this enabled in the official gentoo ebuild? Should I post to the myth-0.18 ebuild bug and say "Hey, MMX works fine over here!" or some such?

Edit: I actually created a new attachment to the bugzilla bug posted above. Hopefully the gentoo jocks don't give me a big fat wedgie or a swirly for sticking my nose where it doesn't belong...
Back to top
View user's profile Send private message
najt
n00b
n00b


Joined: 12 Mar 2005
Posts: 7

PostPosted: Thu Apr 21, 2005 11:20 am    Post subject: Compile error Reply with quote

I get this error when emerging Mythtv 0.18. Anyone have any clues?

Code:
cd mythepg && qmake mythepg.pro -o Makefile
cd mythprogfind && qmake mythprogfind.pro -o Makefile
cd mythtv && qmake mythtv.pro -o Makefile
cd mythfrontend && qmake mythfrontend.pro -o Makefile
cd mythcommflag && qmake mythcommflag.pro -o Makefile
cd mythlcd && qmake mythlcd.pro -o Makefile
cd mythtvosd && qmake mythtvosd.pro -o Makefile
cd mythjobqueue && qmake mythjobqueue.pro -o Makefile
cd mythbackend && qmake mythbackend.pro -o Makefile
cd mythfilldatabase && qmake mythfilldatabase.pro -o Makefile
cd mythtranscode && qmake mythtranscode.pro -o Makefile
cd mythepg && make -f Makefile
make[2]: Entering directory `/var/tmp/portage/mythtv-0.18/work/mythtv-0.18/programs/mythepg'
i686-pc-linux-gnu-g++ -c -pipe -march=pentiumpro -Wall -W -O2 -march=i686 -fomit-frame-pointer -fno-pie -D_REENTRANT  -DUSING_IVTV -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I../../libs -I../../libs/libmyth -I/usr/include -I/usr/qt/3/include -o main.o main.cpp
cd mythprogfind && make -f Makefile
make[2]: Entering directory `/var/tmp/portage/mythtv-0.18/work/mythtv-0.18/programs/mythprogfind'
i686-pc-linux-gnu-g++ -c -pipe -march=pentiumpro -Wall -W -O2 -march=i686 -fomit-frame-pointer -fno-pie -D_REENTRANT  -DUSING_IVTV -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I../../libs -I../../libs/libmyth -I/usr/include -I/usr/qt/3/include -o main.o main.cpp
g++  -o mythprogfind main.o    -L/usr/qt/3/lib -L../../libs/libmyth -L../../libs/libmythtv -L../../libs/libavcodec -L../../libs/libavformat -lmythtv-0.18 -lmythavformat-0.18 -lmythavcodec-0.18 -lmyth-0.18 -lfreetype -lmp3lame -lasound -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm -lpthread
g++  -o mythepg main.o    -L/usr/qt/3/lib -L../../libs/libmyth -L../../libs/libmythtv -L../../libs/libavcodec -L../../libs/libavformat -lmythtv-0.18 -lmythavformat-0.18 -lmythavcodec-0.18 -lmyth-0.18 -lfreetype -lmp3lame -lasound -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm -lpthread
../../libs/libmyth/libmyth-0.18.so: undefined reference to `XineramaIsActive'
../../libs/libmyth/libmyth-0.18.so: undefined reference to `XineramaQueryScreens'
../../libs/libmyth/libmyth-0.18.so: undefined reference to `ScreenSaverX11::ScreenSaverX11[in-charge]()'
../../libs/libmyth/libmyth-0.18.so: undefined reference to `XineramaQueryExtension'
collect2: ld returned 1 exit status
make[2]: *** [mythprogfind] Error 1
make[2]: Leaving directory `/var/tmp/portage/mythtv-0.18/work/mythtv-0.18/programs/mythprogfind'
make[1]: *** [sub-mythprogfind] Error 2
make[1]: *** Waiting for unfinished jobs....
../../libs/libmyth/libmyth-0.18.so: undefined reference to `XineramaIsActive'
../../libs/libmyth/libmyth-0.18.so: undefined reference to `XineramaQueryScreens'
../../libs/libmyth/libmyth-0.18.so: undefined reference to `ScreenSaverX11::ScreenSaverX11[in-charge]()'
../../libs/libmyth/libmyth-0.18.so: undefined reference to `XineramaQueryExtension'
collect2: ld returned 1 exit status
make[2]: *** [mythepg] Error 1
make[2]: Leaving directory `/var/tmp/portage/mythtv-0.18/work/mythtv-0.18/programs/mythepg'
make[1]: *** [sub-mythepg] Error 2
make[1]: Leaving directory `/var/tmp/portage/mythtv-0.18/work/mythtv-0.18/programs'
make: *** [sub-programs] Error 2

!!! ERROR: media-tv/mythtv-0.18 failed.
!!! Function myth_src_compile, Line 76, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.
Back to top
View user's profile Send private message
najt
n00b
n00b


Joined: 12 Mar 2005
Posts: 7

PostPosted: Thu Apr 21, 2005 11:54 am    Post subject: Reply with quote

Never mind, I reemered qt with the "xinerama" use flag.
Back to top
View user's profile Send private message
nrosier
n00b
n00b


Joined: 06 Jul 2002
Posts: 43
Location: Belgium

PostPosted: Fri Apr 22, 2005 12:09 pm    Post subject: Reply with quote

Any chance on producing some CVS ebuilds. Since Isaac put all plugins in mythplugins, the old one I found in bugzilla stopped working correctly.
Back to top
View user's profile Send private message
the_g_cat
Tux's lil' helper
Tux's lil' helper


Joined: 31 Mar 2004
Posts: 117
Location: Dortmund - Germany

PostPosted: Fri Apr 22, 2005 3:16 pm    Post subject: Reply with quote

Hi,

I have 2 quick questions regarding the installation of mythfrontend:
1. How can I prevent mythfrontend form installing mysql, as I have it already running on my 'server' on the LAN?
2. Would it be usefull to enable "mysql" as a USE-flag for QT, or can I leave it away?

Thanks for the help :D
Back to top
View user's profile Send private message
kf0yn
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jan 2003
Posts: 84

PostPosted: Fri Apr 22, 2005 10:50 pm    Post subject: Reply with quote

mythfrontend needs the mysql client libraries to function. Thus, what you're asking for isn't feasible.
Back to top
View user's profile Send private message
the_g_cat
Tux's lil' helper
Tux's lil' helper


Joined: 31 Mar 2004
Posts: 117
Location: Dortmund - Germany

PostPosted: Sat Apr 23, 2005 7:17 pm    Post subject: Reply with quote

So even if I won't use the database on my desktop, I have to install the whole package ?
Back to top
View user's profile Send private message
nrdu
n00b
n00b


Joined: 17 Apr 2004
Posts: 66

PostPosted: Sun Apr 24, 2005 7:38 am    Post subject: Reply with quote

I updated to the 0.18 build and I got that timezone bug back now. The first step I did was to upgrade my qt back to the latest version, as I had backsteped to the older qt to fix the timezone but in 0.17. After I did that of course, my mythtv listings where back offset an hour while I waiting for 0.18 to compile.

But now that 0.18 is installed, my listings are still -1 hour off (3am show is listed as being on at 2am). I have gone into mysql and cleared the program data, re-name mythfilldatabase with the same results. I even tried to go into mythtv-setup and set the offset to 'auto', still same result. Is anyone having this problem again? My timezone is set fine and so is my clock.

Oh, and to the poster above me, yes you need the full mysql installed just to use the client.. sucks.
Back to top
View user's profile Send private message
btg308
n00b
n00b


Joined: 14 Aug 2002
Posts: 72
Location: Östersund, Sweden

PostPosted: Sun Apr 24, 2005 8:43 am    Post subject: mythnewsconfig.cpp Reply with quote

I'm getting
Code:
mythnews.cpp: In constructor `MythNews::MythNews(MythMainWindow*, const char*)
   ':
mythnews.cpp:43: error: 'class MythContext' has no member named 'GetConfDir'
mythnews.cpp:73: error: 'class MSqlQuery' has no member named 'InitCon'
mythnews.cpp: In member function `void MythNews::slotNewsRetrieved(NewsSite*)':
mythnews.cpp:472: error: 'class MSqlQuery' has no member named 'InitCon'
make[2]: *** [mythnews.o] Error 1
make[2]: *** Waiting for unfinished jobs....
mythnewsconfig.cpp: In constructor `
   MythNewsConfig::MythNewsConfig(MythMainWindow*, const char*)':
mythnewsconfig.cpp:117: error: 'class MSqlQuery' has no member named 'InitCon'
mythnewsconfig.cpp: In member function `bool MythNewsConfig::findInDB(const
   QString&)':
mythnewsconfig.cpp:455: error: 'class MSqlQuery' has no member named 'InitCon'
mythnewsconfig.cpp: In member function `bool
   MythNewsConfig::insertInDB(NewsSiteItem*)':
mythnewsconfig.cpp:475: error: 'class MSqlQuery' has no member named 'InitCon'
mythnewsconfig.cpp: In member function `bool
   MythNewsConfig::removeFromDB(NewsSiteItem*)':
mythnewsconfig.cpp:494: error: 'class MSqlQuery' has no member named 'InitCon'
make[2]: *** [mythnewsconfig.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/mythnews-0.18/work/mythplugins-0.18
/mythnews/mythnews'
make[1]: *** [sub-mythnews] Error 2
make[1]: Leaving directory `/var/tmp/portage/mythnews-0.18/work/mythplugins-0.18
/mythnews'
make: *** [sub-mythnews] Error 2

when trying to upgrade from 0.17 to 0.18... Any clues?
_________________
Gentoo Linux - Feel the speed.
Kawasaki GPZ 1100 - The need for speed.
Back to top
View user's profile Send private message
nrdu
n00b
n00b


Joined: 17 Apr 2004
Posts: 66

PostPosted: Sun Apr 24, 2005 9:11 am    Post subject: Reply with quote

Umm... this is going to sound like a really stupid question... but is this really the 0.18 build?!!!!

I ask because of two reasons... maybe it's to late and I need some sleep but...

1) timezone bug is still present as far as I can tell, unless I'm missing something here, once I upgraded to 0.18 and brought qt back up to 3.3.4 this should have gone away

2) black screen on return from guide bug is still there. When you go into the on screen guide (think it might only be the PVR-350), and then hit 'exit' to go back to LiveTV, you get a black screen.

These are the 2 big problems I had with 0.17, and they where fixed in the 0.18 release.. and yet.. there are still there. *dazed and confused*

Not to sound rude here, but I'm thinking I'm still using 0.17 and this is all just fake. :P

I'm downgrading back to qt-3.3.3 and if my timezone bug goes away... well... then... maybe it won't all be in my head? ;)

Also, not to nicpick... but in the ebuild, shouldn't the qt line:

Code:
>=x11-libs/qt-3.1


be a bit higher of a version? If I understand the timezone bug correctly, you will be needing to user a higher version the 3.3.3 to get the correct time (ie. the 3.3.4).

But then... I'm downgrading to 3.3.3 and need sleep, so don't mind my late-night-fustrated-rambles. :P
Back to top
View user's profile Send private message
btg308
n00b
n00b


Joined: 14 Aug 2002
Posts: 72
Location: Östersund, Sweden

PostPosted: Sun Apr 24, 2005 2:31 pm    Post subject: emerge error fixed Reply with quote

I updated my linux-headers, renamed my /usr/local/include/mythtv, /usr/lib/mythtv and /usr/include/mythtv to mythtv.old and then the emerge worked. Apparently old headers can cause all sorts of weird compile errors.

http://www.mail-archive.com/mythtv-dev@mythtv.org/msg05948.html
_________________
Gentoo Linux - Feel the speed.
Kawasaki GPZ 1100 - The need for speed.
Back to top
View user's profile Send private message
nrdu
n00b
n00b


Joined: 17 Apr 2004
Posts: 66

PostPosted: Sun Apr 24, 2005 9:44 pm    Post subject: Re: emerge error fixed Reply with quote

btg308 wrote:
I updated my linux-headers, renamed my /usr/local/include/mythtv, /usr/lib/mythtv and /usr/include/mythtv to mythtv.old and then the emerge worked. Apparently old headers can cause all sorts of weird compile errors.

http://www.mail-archive.com/mythtv-dev@mythtv.org/msg05948.html


I tried this for my problem also... worked... I think.

After downgrading to qt-3.3.3 my timezone bug went away. After I saw your post, I figured I'd try that. I shutdown the mythtvbackend/frontend and removed the directories you said. Then recompiled qt-3.3.4 and mythtv+all my plugins. Now my times are correct again.

The problem with the blank screen after leaving the EPG is still there, but a bit different (the complete fix needs an IVTV update also).

Dunno why, but I'm going to guess I had kind of a mix between 0.17 and 0.18 in there with those headers?

Either way, it's fixed now... YAY!
Back to top
View user's profile Send private message
nrdu
n00b
n00b


Joined: 17 Apr 2004
Posts: 66

PostPosted: Mon Apr 25, 2005 1:09 am    Post subject: Reply with quote

immudium wrote:
By the way, if anyone cares, it is possible to compile mythtv-0.18 in portage using the "-momit-leaf-frame-pointer" filter I posted above. From my mytv ebuild log:
Quote:
# Basic Settings
Compile type release
Compiler cache yes, using ccache symlinked gcc
DistCC no
Install prefix /usr
CPU x86 (Intel(R) Pentium(R) 4 CPU 2.80GHz)
Big Endian no
MMX enabled yes
Vector Builtins no


Although I'm no ebuild expert, it seems to work fine. What should I do to help get this enabled in the official gentoo ebuild? Should I post to the myth-0.18 ebuild bug and say "Hey, MMX works fine over here!" or some such?

Edit: I actually created a new attachment to the bugzilla bug posted above. Hopefully the gentoo jocks don't give me a big fat wedgie or a swirly for sticking my nose where it doesn't belong...


Your patch was posted on the orig bug report for the ebuild, I moved it to here:

https://bugs.gentoo.org/show_bug.cgi?id=87483

If your still following this, please make sure I got everything as I edited the current ebuild and and didn't use your own.
Back to top
View user's profile Send private message
immudium
Guru
Guru


Joined: 12 Oct 2004
Posts: 332
Location: Utah

PostPosted: Tue Apr 26, 2005 10:37 pm    Post subject: Reply with quote

nrdu wrote:
immudium wrote:
By the way, if anyone cares, it is possible to compile mythtv-0.18 in portage using the "-momit-leaf-frame-pointer" filter I posted above. From my mytv ebuild log:
Quote:
# Basic Settings
Compile type release
Compiler cache yes, using ccache symlinked gcc
DistCC no
Install prefix /usr
CPU x86 (Intel(R) Pentium(R) 4 CPU 2.80GHz)
Big Endian no
MMX enabled yes
Vector Builtins no


Although I'm no ebuild expert, it seems to work fine. What should I do to help get this enabled in the official gentoo ebuild? Should I post to the myth-0.18 ebuild bug and say "Hey, MMX works fine over here!" or some such?

Edit: I actually created a new attachment to the bugzilla bug posted above. Hopefully the gentoo jocks don't give me a big fat wedgie or a swirly for sticking my nose where it doesn't belong...


Your patch was posted on the orig bug report for the ebuild, I moved it to here:

https://bugs.gentoo.org/show_bug.cgi?id=87483

If your still following this, please make sure I got everything as I edited the current ebuild and and didn't use your own.


Cool, glad to see there are others who are interested in getting mmx enabled properly in myth. I've been trying to suggest better optimizations for a while now, particularly with mythfrontend where one would would think that it would have the greatest impact with very CPU intensive playback of some videos like HDTV.

Anyway, it looks like you took out the mmx use flag altogether. I don't know if mmx is enabled by default in the myth settings.pro file, I'd have to look, but assuming it is, your ebuild looks great to me. I'll give it a whirl tonight (after the primetime shows are done, of course). Thanks for posting that to the bug report. I hadn't seen that one yet.
Back to top
View user's profile Send private message
immudium
Guru
Guru


Joined: 12 Oct 2004
Posts: 332
Location: Utah

PostPosted: Tue Apr 26, 2005 11:55 pm    Post subject: Reply with quote

Uh oh, I did have one big issue with your ebuild, nrdu. It appears that you forgot to retain "myconf=" in the use_enable section thus rendering all use flags such as dvb, nvidia, xvmc, etc disabled. I added a new attachment to the MMX bug. Also, and this is just my opinion mind you, I believe the mmx use flag should remain in place in the ebuild since I believe it's still something the user should be able to enable or disable manually if they want.
Back to top
View user's profile Send private message
nrdu
n00b
n00b


Joined: 17 Apr 2004
Posts: 66

PostPosted: Wed Apr 27, 2005 12:30 am    Post subject: Reply with quote

immudium wrote:
Uh oh, I did have one big issue with your ebuild, nrdu. It appears that you forgot to retain "myconf=" in the use_enable section thus rendering all use flags such as dvb, nvidia, xvmc, etc disabled. I added a new attachment to the MMX bug. Also, and this is just my opinion mind you, I believe the mmx use flag should remain in place in the ebuild since I believe it's still something the user should be able to enable or disable manually if they want.


Thanks for looking into that. Still learning about how to make ebuilds so I knew mine was a hack at best. :P Not to mention I submitted the ebuild about 3 times to bugzilla, once to the wrong bug. :P

I marked mine as obsolete. :)

You should really link to the bug directly next time btw, I was taking kind of a good guess that you had posted it on the orig ebuild from what I had remembered. :P The link to the attachment is good for a quick download, but it doesn't take into account if the bug is closed, the patch has been updated, etc..

But happy to see you found this, your right about the better optimizations. With your ebuild I was getting about 10fps (if I was lucky) in commflag. With the hack I used, I am getting about 20fps. I'm going to recompile again tonight with this new one you posted, maybe I'll get a bit more. In 0.17 I was getting around 23-26fps.

A lot of people have been complaing about the speed of 0.18, I replied to another post on here, and these is a bit on the mailing list too, all in regards to the ebuild that's in portage. One of the reasons I built my box ontop of Gentoo was to get the most speed I could and the best optimizations. I"m trying to run the whole thing on a Mini-ITX 800mhz box. I'm happy to say, it's very useable (I'm using a PVR-350 for the encode/decode of MPEG-2).
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Sat Apr 30, 2005 4:08 pm    Post subject: Reply with quote

btg308
I have the same problem building plugins so I'll give your suggestion a try. Thanks.

Code:
mythnewsconfig.cpp:117: error: `InitCon' is not a member of `MSqlQuery'
mythnewsconfig.cpp: In member function `bool MythNewsConfig::findInDB(const QString&)':
mythnewsconfig.cpp:455: error: `InitCon' is not a member of `MSqlQuery'
mythnewsconfig.cpp: In member function `bool MythNewsConfig::insertInDB(NewsSiteItem*)':
mythnewsconfig.cpp:475: error: `InitCon' is not a member of `MSqlQuery'
mythnewsconfig.cpp: In member function `bool MythNewsConfig::removeFromDB(NewsSiteItem*)':
mythnewsconfig.cpp:494: error: `InitCon' is not a member of `MSqlQuery'
i686-pc-linux-gnu-g++ -c -pipe -Wall -W -g -D_REENTRANT -fPIC  -D_GNU_SOURCE -DPREFIX=\"/usr\" -DHAVE_MMX -DQT_THREAD_SUPPORT -DQT_PLUGIN -I/usr/qt/3/mkspecs/linux-g++ -I. -I/usr/include -I/usr/qt/3/include -o newsengine.o newsengine.cpp
make[2]: *** [mythnewsconfig.o] Error 1
make[2]: *** Waiting for unfinished jobs....
mythnews.cpp: In constructor `MythNews::MythNews(MythMainWindow*, const char*)':
mythnews.cpp:43: error: `GetConfDir' is not a member of `MythContext'
mythnews.cpp:73: error: `InitCon' is not a member of `MSqlQuery'
mythnews.cpp: In member function `void MythNews::slotNewsRetrieved(NewsSite*)':
mythnews.cpp:472: error: `InitCon' is not a member of `MSqlQuery'
make[2]: *** [mythnews.o] Error 1
newsengine.cpp: In constructor `NewsSite::NewsSite(const QString&, const QString&, const QDateTime&)':
newsengine.cpp:74: error: `GetConfDir' is not a member of `MythContext'
make[2]: *** [newsengine.o] Error 1
make[1]: *** [sub-mythnews] Error 2
make[1]: Leaving directory `/var/tmp/portage/mythnews-0.18/work/mythplugins-0.18/mythnews'
make: *** [sub-mythnews] Error 2

!!! ERROR: media-plugins/mythnews-0.18 failed.
!!! Function myth_src_compile, Line 80, Exitcode 2
!!! (no error message)

_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Sun May 01, 2005 4:06 am    Post subject: Reply with quote

Quote:
I updated my linux-headers, renamed my /usr/local/include/mythtv, /usr/lib/mythtv and /usr/include/mythtv to mythtv.old and then the emerge worked. Apparently old headers can cause all sorts of weird compile errors.


btg308
Thank You. That worked like a charm. Now I can have my pluggins back...
_________________
John

My gentoo overlay
Instructons for overlay


Last edited by drescherjm on Sun May 01, 2005 4:23 pm; edited 1 time in total
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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