[mythtv-users] Mythplugins trunk compile errors after upgrade from Fedora 9 to 10
R. G. Newbury
newbury at mandamus.org
Tue Dec 2 16:51:04 UTC 2008
OJ wrote:
> I'm having some problems compiling mythplugins after I upgraded from
> Fedora 9 to 10. Mythtv compiled and installed fine.
>
> make[2]: Entering directory
> `/usr/local/mythtv/mythplugins/mytharchive/mytharchive'
> g++ -c -pipe -march=k8 -pthread -I/usr/include/kde/artsc
> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -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/local\" -DMMX -D_FILE_OFFSET_BITS=64
> -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -DQT_SHARED
> -DQT_TABLET_SUPPORT -I/usr/lib64/qt-3.3/mkspecs/default -I.
> -I../../../../include -I../../../../include -I../../../../../include
> -I../../../../include/mythtv -I../../../../include/mythtv
> -I../../../../include/mythtv/libmythtv -I/usr/lib64/qt-3.3/include -o
> main.o main.cpp
> main.cpp:15:24: error: QApplication: No such file or directory
> main.cpp:16:16: error: QDir: No such file or directory
> main.cpp:17:18: error: QTimer: No such file or directory
> In file included from main.cpp:20:
> /usr/local/include/mythtv/mythcontext.h:9:19: error: QObject: No such
> file or directory
Fedora uses a number of folders for Qt stuff, under /usr/include. These
are not made available by the usual 'include' definitions, by default.
Apparently, other distros just put everything under one folder?
Try adding these definitions to the top of mythplugins configure.:
export
C_INCLUDE_PATH="/usr/include/Qt:/usr/include/Qt3Support:/usr/include/QtAssistant:/usr/include/QtCore:
/usr/include/QtDBus:/usr/include/QtDesigner:/usr/include/QtGui:/usr/include/QtNetwork:
/usr/include/QtOpenGL:/usr/include/QtScript:/usr/include/QtSql:/usr/include/QtSvg:/usr/include/QtTest:
/usr/include/QtUiTools:/usr/include/QtWebKit:/usr/include/QtXml:"
> export
CPLUS_INCLUDE_PATH="/usr/include/Qt:/usr/include/Qt3Support:/usr/include/QtAssistant:/usr/include/QtCore:
/usr/include/QtDBus:/usr/include/QtDesigner:/usr/include/QtGui:/usr/include/QtNetwork:
/usr/include/QtOpenGL:/usr/include/QtScript:/usr/include/QtSql:/usr/include/QtSvg:/usr/include/QtTest:
/usr/include/QtUiTools:/usr/include/QtWebKit:/usr/include/QtXml:"
These 'exports' are all on one line, of course. Split here for clarity.
If you get an error about QtWebKit/QTWebView not being available so that
MythWeb will not be made, in mythtv's configure run this in the mythtv
folder:
# Fix QtWebKit header problem for Fedora in configure
sed -i s/"\/QWebView"/" -i\/usr\/include\/QtWebkit"/ configure
This strips the reference to 'QtWebView out of a line in configure
(around line 2000) and adds the correct include folder.
This is Fedora specific and there's not much that can be done about
either problem.
This SHOULD help, but YMMV.
Geoff
now if anything I say offends you.
I may wish to offend you again in the future.
Tux says: "Be regular. Eat cron flakes."
More information about the mythtv-users
mailing list