espenaf n00b
Joined: 09 Jan 2006 Posts: 20
|
Posted: Tue Apr 14, 2009 7:11 am Post subject: (Solved) Trouble compiling mythvideo 0.22 |
|
|
Hi
I am trying to build mythtv and mythtv plugins 0.22 (trunk) on gentoo, this is only for experimental testing. Mythtv is compiling fine at the moment, but I am having problems with the plugins. Wonder if anyone could enlighten me on the problem. I seems to be related to some qt issues, but I can't decipher what the problem is. I have tried with both gcc 4.2 and 4.3. I have the same issue with almost all mythtv plugins.
The ebuilds I am using comes from kormoc's overlay, but I don't think they are responsible for the errors.
Here's the build log. Hmm, could't add all the code in the post, added the first and the last part instead.
Code: |
>>> Unpacking source...
[32;01m*[0m subversion update start -->
[32;01m*[0m repository: http://svn.mythtv.org/svn/trunk/mythplugins@20145
At revision 20145.
[32;01m*[0m working copy: /usr/portage/distfiles/svn-src/mythplugins/mythplugins
>>> Source unpacked in /var/tmp/portage/media-plugins/mythvideo-0.22_alpha20145/work
>>> Compiling source in /var/tmp/portage/media-plugins/mythvideo-0.22_alpha20145/work/mythplugins-0.22 ...
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --disable-mythbrowser --disable-mythcontrols --disable-mythflix --disable-mythgallery --disable-mythgame --disable-mythmusic --disable-mythnews --disable-mythphone --enable-mythvideo --disable-mythweather --disable-mythweb --disable-mytharchive --disable-mythzoneminder --disable-mythmovies
Configuration settings:
qmake /usr/bin/qmake
MythArchive plugin will not be built
MythBrowser plugin will not be built
MythFlix plugin will not be built
MythGallery plugin will not be built
MythGame plugin will not be built
MythMusic plugin will not be built
MythNews plugin will not be built
MythVideo plugin will be built
MythWeather plugin will not be built
MythZoneMinder plugin will not be built
MythMovies plugin will not be built
make -j3
cd cleanup && make -f Makefile
cd mythvideo && /usr/qt/3/bin/qmake mythvideo.pro "QMAKE=/usr/qt/3/bin/qmake" -o Makefile
make[1]: Entering directory `/var/tmp/portage/media-plugins/mythvideo-0.22_alpha20145/work/mythplugins-0.22/cleanup'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/portage/media-plugins/mythvideo-0.22_alpha20145/work/mythplugins-0.22/cleanup'
cd mythvideo && make -f Makefile
make[1]: Entering directory `/var/tmp/portage/media-plugins/mythvideo-0.22_alpha20145/work/mythplugins-0.22/mythvideo'
cd mythvideo && /usr/qt/3/bin/qmake mythvideo.pro "QMAKE=/usr/qt/3/bin/qmake" -o Makefile
cd mtd && /usr/qt/3/bin/qmake mtd.pro "QMAKE=/usr/qt/3/bin/qmake" -o Makefile
cd i18n && /usr/qt/3/bin/qmake i18n.pro "QMAKE=/usr/qt/3/bin/qmake" -o Makefile
cd theme && /usr/qt/3/bin/qmake theme.pro "QMAKE=/usr/qt/3/bin/qmake" -o Makefile
cd i18n && make -f Makefile
make[2]: Entering directory `/var/tmp/portage/media-plugins/mythvideo-0.22_alpha20145/work/mythplugins-0.22/mythvideo/i18n'
gcc -c -pipe -march=native -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -fasm -std=c99 -pthread -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -funit-at-a-time -Wwrite-strings -Wtype-limits -fno-math-errno -fno-signed-zeros -Wall -W -march=native -O2 -pipe -D_GNU_SOURCE -DPREFIX=\"/usr\" -DMMX -D_FILE_OFFSET_BITS=64 -I/usr/qt/3/mkspecs/linux-g++ -I. -I/usr/include -I/usr/include -I/usr/include -o dummy.o dummy.c
g++ -Wl,-O1 -o i18n dummy.o -L/usr/lib64
make[2]: Leaving directory `/var/tmp/portage/media-plugins/mythvideo-0.22_alpha20145/work/mythplugins-0.22/mythvideo/i18n'
cd theme && make -f Makefile
make[2]: Entering directory `/var/tmp/portage/media-plugins/mythvideo-0.22_alpha20145/work/mythplugins-0.22/mythvideo/theme'
gcc -c -pipe -march=native -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -fasm -std=c99 -pthread -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -funit-at-a-time -Wwrite-strings -Wtype-limits -fno-math-errno -fno-signed-zeros -Wall -W -march=native -O2 -pipe -D_GNU_SOURCE -DPREFIX=\"/usr\" -DMMX -D_FILE_OFFSET_BITS=64 -I/usr/qt/3/mkspecs/linux-g++ -I. -I/usr/include -I/usr/include -I/usr/include -o themedummy.o ../../themedummy.c
cd mtd && make -f Makefile
cd mythvideo && make -f Makefile
make[2]: Entering directory `/var/tmp/portage/media-plugins/mythvideo-0.22_alpha20145/work/mythplugins-0.22/mythvideo/mtd'
g++ -c -pipe -march=native -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor -funit-at-a-time -D__STDC_CONSTANT_MACROS -Wall -W -fomit-frame-pointer -O3 -fomit-frame-pointer -D_REENTRANT -D_GNU_SOURCE -DPREFIX=\"/usr\" -DMMX -D_FILE_OFFSET_BITS=64 -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I/usr/include -I/usr/include -I/usr/include -I/usr/include/mythtv -I/usr/include/mythtv/libmythdb -I/usr/include/mythtv/libmythui -I/usr/include/mythtv/libmyth -I/usr/qt/3/include -I/usr/X11R6/include -I/usr/X11R6/include -o main.o main.cpp
make[2]: Entering directory `/var/tmp/portage/media-plugins/mythvideo-0.22_alpha20145/work/mythplugins-0.22/mythvideo/mythvideo'
/usr/qt/3/bin/moc main.cpp -o main.moc
g++ -Wl,-O1 -o themenop themedummy.o -L/usr/lib64
g++ -c -pipe -march=native -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor -funit-at-a-time -D__STDC_CONSTANT_MACROS -Wall -W -fomit-frame-pointer -O3 -fomit-frame-pointer -D_REENTRANT -DPIC -fPIC -D_GNU_SOURCE -DPREFIX=\"/usr\" -DMMX -D_FILE_OFFSET_BITS=64 -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I/usr/include -I/usr/include -I/usr/include -I/usr/include/mythtv -I/usr/include/mythtv/libmythdb -I/usr/include/mythtv/libmythui -I/usr/include/mythtv/libmyth -I/usr/qt/3/include -o metadata.o metadata.cpp
make[2]: Leaving directory `/var/tmp/portage/media-plugins/mythvideo-0.22_alpha20145/work/mythplugins-0.22/mythvideo/theme'
g++ -c -pipe -march=native -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor -funit-at-a-time -D__STDC_CONSTANT_MACROS -Wall -W -fomit-frame-pointer -O3 -fomit-frame-pointer -D_REENTRANT -D_GNU_SOURCE -DPREFIX=\"/usr\" -DMMX -D_FILE_OFFSET_BITS=64 -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I/usr/include -I/usr/include -I/usr/include -I/usr/include/mythtv -I/usr/include/mythtv/libmythdb -I/usr/include/mythtv/libmythui -I/usr/include/mythtv/libmyth -I/usr/qt/3/include -I/usr/X11R6/include -I/usr/X11R6/include -o dbcheck.o ../mythvideo/dbcheck.cpp
../mythvideo/dbcheck.cpp:1:19: error: QString: No such file or directory
../mythvideo/dbcheck.cpp:2:19: error: QRegExp: No such file or directory
../mythvideo/dbcheck.cpp:3:23: error: QStringList: No such file or directory
metadata.cpp:3:17: error: QFile: No such file or directory
metadata.cpp:4:16: error: QDir: No such file or directory
metadata.cpp:5:21: error: QFileInfo: No such file or directory
|
Code: |
/usr/include/mythtv/libmythui/mythuiimage.h:31: error: ‘QVector’ has not been declared
/usr/include/mythtv/libmythui/mythuiimage.h:31: error: expected ‘,’ or ‘...’ before ‘<’ token
/usr/include/mythtv/libmythui/mythuiimage.h:69: error: expected ‘;’ before ‘<’ token
/usr/include/mythtv/libmythui/mythuiimage.h:79: error: field ‘m_LastDisplay’ has incomplete type
/usr/include/mythtv/libmythui/mythuiimage.h:94: error: field ‘m_gradientStart’ has incomplete type
/usr/include/mythtv/libmythui/mythuiimage.h:95: error: field ‘m_gradientEnd’ has incomplete type
In file included from /usr/include/mythtv/mythstorage.h:11,
from /usr/include/mythtv/libmythui/mythuitext.h:8,
from /usr/include/mythtv/libmythui/mythuibuttonlist.h:10,
from videofilter.cpp:5:
/usr/include/mythtv/mythdbcon.h:38: error: field ‘m_lastDBKick’ has incomplete type
/usr/qt/3/include/qsqldatabase.h: In member function ‘QSqlDatabase MSqlDatabase::db()’:
/usr/qt/3/include/qsqldatabase.h:148: error: ‘QSqlDatabase::QSqlDatabase(const QSqlDatabase&)’ is private
/usr/include/mythtv/mythdbcon.h:33: error: within this context
/usr/include/mythtv/mythdbcon.h: At global scope:
/usr/include/mythtv/mythdbcon.h:61: error: ‘QMutex’ does not name a type
/usr/include/mythtv/mythdbcon.h:126: error: ‘QSql::ParamType’ has not been declared
/usr/include/mythtv/mythdbcon.h:128: error: ‘QSql::ParamType’ has not been declared
/usr/include/mythtv/mythdbcon.h:155: error: ‘QMutex’ does not name a type
/usr/include/mythtv/mythdbcon.h:162: error: field ‘m_testbindings’ has incomplete type
In file included from /usr/include/mythtv/libmythui/mythuitext.h:8,
from /usr/include/mythtv/libmythui/mythuibuttonlist.h:10,
from videofilter.cpp:5:
/usr/include/mythtv/mythstorage.h: In constructor ‘SimpleDBStorage::SimpleDBStorage(StorageUser*, QString, QString)’:
/usr/include/mythtv/mythstorage.h:54: error: ‘class QString’ has no member named ‘clear’
In file included from /usr/include/mythtv/libmythui/mythuibuttonlist.h:10,
from videofilter.cpp:5:
/usr/include/mythtv/libmythui/mythuitext.h: At global scope:
/usr/include/mythtv/libmythui/mythuitext.h:102: error: field ‘m_startColor’ has incomplete type
/usr/include/mythtv/libmythui/mythuitext.h:102: error: field ‘m_endColor’ has incomplete type
In file included from /usr/include/mythtv/libmythui/mythuibuttonlist.h:11,
from videofilter.cpp:5:
/usr/include/mythtv/libmythui/mythgesture.h: In member function ‘bool MythGesture::hasMinimumPoints() const’:
/usr/include/mythtv/libmythui/mythgesture.h:175: error: ‘const class QPtrList<QPoint>’ has no member named ‘size’
In file included from videofilter.cpp:5:
/usr/include/mythtv/libmythui/mythuibuttonlist.h: At global scope:
/usr/include/mythtv/libmythui/mythuibuttonlist.h:219: error: expected ‘;’ before ‘<’ token
In file included from /usr/include/mythtv/libmythui/mythuibutton.h:7,
from videofilter.cpp:6:
/usr/include/mythtv/libmythui/mythuistatetype.h:12: error: expected constructor, destructor, or type conversion before ‘class’
make[2]: *** [videofilter.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-plugins/mythvideo-0.22_alpha20145/work/mythplugins-0.22/mythvideo/mythvideo'
make[1]: *** [sub-mythvideo] Error 2
make[1]: Leaving directory `/var/tmp/portage/media-plugins/mythvideo-0.22_alpha20145/work/mythplugins-0.22/mythvideo'
make: *** [sub-mythvideo] Error 2
[31;01m*[0m
[31;01m*[0m ERROR: media-plugins/mythvideo-0.22_alpha20145 failed.
[31;01m*[0m Call stack:
[31;01m*[0m ebuild.sh, line 48: Called src_compile
[31;01m*[0m environment, line 2651: Called mythtv-plugins_src_compile
[31;01m*[0m environment, line 2379: Called die
[31;01m*[0m The specific snippet of code:
[31;01m*[0m emake || die "make failed to compile"
[31;01m*[0m The die message:
[31;01m*[0m make failed to compile
[31;01m*[0m
[31;01m*[0m If you need support, post the topmost build error, and the call stack if relevant.
[31;01m*[0m A complete build log is located at '/var/tmp/portage/media-plugins/mythvideo-0.22_alpha20145/temp/build.log'.
[31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/media-plugins/mythvideo-0.22_alpha20145/temp/environment'.
[31;01m*[0m This ebuild is from an overlay named 'oxyis': '/usr/local/portage/'
[31;01m*[0m
|
Enviroment
Code: |
Portage 2.1.6.11 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.26-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.26-gentoo-r4-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9300_@_2.50GHz-with-glibc2.2.5
Timestamp of tree: Mon, 13 Apr 2009 20:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash: 3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python: 2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache: 2.4-r7
dev-util/cmake: 2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc: 0.4.3-r1
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.13, 2.63
sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils: 2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/shellbeach /usr/local/portage/layman/pcsx2-overlay /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl alac alsa amd64 ao apache2 audiofile avahi bacula-console bash-completion berkdb bluetooth bonjour bzip2 cairo ccache cdda cddb cdio cdr cgi cli cracklib crypt ctype cups custom-cflags custom-optimization daap dbus divx dri dts dv dvb dvd dvdr dvdread encode exif expat extrafilters fame fastcgi fbcon fbcondecor ffmpeg fftw firefox flac float fortran ftp gcc4 gcj gdbm gif git gmedia gnutls gpm gstreamer gtk hal havekernel httpd icecast iconv id3 ieee1394 imagemagick imlib ipv6 irda isdnlog java java5 javascript joystick jpeg jpeg2k json kde kdeenablefinal kdehiddenvisibility kerberos kvm lame libextractor libvisual lirc live lzo mad matroska mdnsresponder-compat midi mikmod mjpeg mmx mmxext mng mouse mozilla mp2 mp3 mp4 mpeg mplayer mudflap multilib musepack mysql mysqli nagios-dns nagios-ntp nagios-ping nagios-ssh nas ncurses nemesi net netboot network nls no no-old-linux nptl nptlonly nsplugin ntp nuv ogg old-daemons openal opengl opengl-video openmp pam pcre pcsc-lite perl php png posix pppd pulseaudio python qt3 qt3support qt4 quicktime radio rar readline realmedia reflection rtsp samba schroedinger scsi sdl sdl-sound search-screen server servletapi session shaders smartcard snmp speex spl sqlite sqlite3 srt sse sse2 sse4 ssl stream subversion svg sysfs syslog taglib tcpd teletext tga theora threads tiff tk transcode truetype type1 unicode upnp usb vhook vorbis wavpack webdav-neon winbind wmp x264 xanim xml xorg xosd xpm xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
|
Installed qt packages;
Code: |
[ebuild R ] x11-libs/qt-sql-4.4.2-r1 USE="iconv mysql qt3support sqlite -custom-cxxflags -debug (-firebird) -odbc -pch -postgres" 0 kB
[ebuild R ] x11-libs/qt-script-4.4.2 USE="-custom-cxxflags -debug -pch" 0 kB
[ebuild R ] x11-libs/qt-dbus-4.4.2 USE="-custom-cxxflags -debug -pch" 0 kB
[ebuild R ] x11-libs/qt-xmlpatterns-4.4.2 USE="-custom-cxxflags -debug -pch" 0 kB
[ebuild R ] x11-libs/qt-test-4.4.2 USE="-custom-cxxflags -debug -pch" 0 kB
[ebuild R ] x11-libs/qt-3.3.8b-r1 USE="cups ipv6 mysql nas opengl sqlite -debug -doc -examples (-firebird) -immqt -immqt-bc -nis -odbc -postgres -xinerama" 16,909 kB
[ebuild R ] x11-libs/qt-gui-4.4.2-r3 USE="accessibility cups dbus glib mng nas qt3support tiff -custom-cxxflags -debug -nis -pch -xinerama" INPUT_DEVICES="-wacom" 0 kB
[ebuild R ] x11-libs/qt-webkit-4.4.2-r1 USE="-custom-cxxflags -debug -pch" 0 kB
[ebuild R ] x11-libs/qt-qt3support-4.4.2 USE="accessibility -custom-cxxflags -debug -pch" 0 kB
[ebuild R ] x11-libs/qt-svg-4.4.2 USE="-custom-cxxflags -debug -pch" 0 kB
[ebuild R ] x11-libs/qt-opengl-4.4.2 USE="qt3support -custom-cxxflags -debug -pch" 0 kB
[ebuild R ] x11-libs/qt-assistant-4.4.2-r1 USE="webkit -custom-cxxflags -debug -pch" 0 kB
[ebuild R ] x11-libs/qt-4.4.2 USE="dbus opengl qt3support" 0 kB |
Solved: After alot og googling and som tinker i found the solution.
Copied mythtv-plugins.eclass to my local overlay, and changed the following.
Code: |
${QTDIR}/bin/qmake QMAKE="${QTDIR}/bin/qmake" -o "Makefile" mythplugins.pro || die "qmake failed to run"
|
to
Code: |
/usr/bin/qmake QMAKE="${QTDIR}/bin/qmake" -o "Makefile" mythplugins.pro || die "qmake failed to run"
|
Apparently QT4 doesn't use QTDIR anymore. Now mythtv trunks works |
|