[mythtv] Problem compiling newly developed plugin

Ben Curtis mythtv at nosolutions.com
Mon Dec 27 16:03:05 UTC 2010


Hi everyone,

I'm starting a mythtv plugin, and following the hello world guide just
to get things started won't compile using the instructions.  I've
followed this guide to the letter:

http://www.mythtv.org/wiki/Building_Plugins:HelloMyth

I'm using FC13 in a VMWare session to ensure everything is on a clean
build.  Mythtv and all plugins compiled and installed fine, but when
running make on my plugin, I get the following errors:

g++ -c -pipe -fomit-frame-pointer -pthread -g -Wall -Wno-switch
-Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor
-funit-at-a-time -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -O3
-fvisibility-inlines-hidden -Wmissing-declarations
-fomit-frame-pointer -D_REENTRANT -Wall -W -DPIC -fPIC -D_GNU_SOURCE
-DPREFIX="/usr/local" -DMMX -Di386 -D_FILE_OFFSET_BITS=64
-DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB
-DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib/qt4/mkspecs/linux-g++ -I.
-I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui
-I/usr/include/QtXml -I/usr/include/QtSql -I/usr/include
-I/usr/local/include -I/usr/include -I/usr/local -I/usr/include
-I/usr/include/libxml2 -I. -o main.o main.cpp
main.cpp:8:25: error: mythcontext.h: No such file or directory
main.cpp:9:24: error: mythplugin.h: No such file or directory
main.cpp:10:27: error: mythpluginapi.h: No such file or directory
main.cpp:11:25: error: mythversion.h: No such file or directory
main.cpp:12:28: error: mythmainwindow.h: No such file or directory
main.cpp:15:21: error: mythnzb.h: No such file or directory
...

The errors continue, but it's most likely those messed up include
paths, though I'm not sure what I've done to cause it.  Everything was
installed fresh, with the default "configure" for both mythtv and
mythplugins.

Any help would be appreciated.

Thanks,
B.


More information about the mythtv-dev mailing list