<html><body>
<p><font size="4"> </font>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="100%" valign="middle"><font size="4">I want to build one myth plugin on my mythdora os.<br>
I have two computers installed MythDora, and I remove mythtv from one of these two computers, and then through the following way:<br>
#yum install libmyth-devel<br>
to install the corresponding softwares and get those header files for building plugin. <br>
Then I tried to build mythnews, the official plugin, the building process is as following:<br>
and got libmythnews.so file, and then I copy this libmythnews.so file to my another mythdora system installed full mythdora, and add one button on mainmenu.xml.<br>
However, when I choose this button, one warning message appear: "The problem: The mythnew plugin was compiled against libmyth version:0.20.2007 0124-1, but the installed libmyth is at version:0.20.20060828-3 . You probably want to recompile the mythnews plugin after doing a make distclean"<br>
but I can't solve this problem when I tried to make clean and make distclean.<br>
As for my situation, how to develop plugin on mythdora? or which way to develop plugin is the compared easer and convient one? <br>
<br>
<br>
<br>
///////////////////////////////////////////////////////////////////////////////////////////////////////////<br>
//////////////////// building mythnews process: //////////////////////////////////////////<br>
///////////////////////////////////////////////////////////////////////////////////////////////////////////<br>
[root@localhost mythplugins]# cd mythnews/<br>
[root@localhost mythnews]# dir<br>
AUTHORS ChangeLog COPYING i18n mythnews </font><a href="http://mythnews.pro/" target="_blank"><u><font size="4" color="#0000FF">mythnews.pro</font></u></a><font size="4"> README<br>
[root@localhost mythnews]# qmake<br>
[root@localhost mythnews]# make<br>
cd mythnews && qmake </font><a href="http://mythnews.pro/" target="_blank"><u><font size="4" color="#0000FF">mythnews.pro</font></u></a><font size="4"> -o Makefile<br>
cd mythnews && make -f Makefile <br>
make[1]: Entering directory `/home/mythtv/mythtv_build/release-0-20-fixes/mythpl <br>
ugins/mythnews/mythnews'<br>
g++ -c -pipe -pthread -I/usr/include/kde/artsc -I/usr/include/glib-2.0 -I/usr/li<br>
b/glib-2.0/include -Wno-non-virtual-dtor -Wall -W -g -D_REENTRANT -DPIC -fPIC - <br>
D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DMMX -Di386 -D_FILE_OFFSET_BITS=64 -DQT_TH<br>
READ_SUPPORT -DQT_PLUGIN -DQT_SHARED -DQT_NO_DEBUG -I/usr/lib/qt-3.3/mkspecs/def<br>
ault -I. -I/usr/local/include -I/usr/kde/3.3/include -I/usr/local/include -I/usr <br>
/lib/qt-3.3/include -o main.o main.cpp<br>
g++ -c -pipe -pthread -I/usr/include/kde/artsc -I/usr/include/glib-2.0 -I/usr/li<br>
b/glib-2.0/include -Wno-non-virtual-dtor -Wall -W -g -D_REENTRANT -DPIC -fPIC -<br>
D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DMMX -Di386 -D_FILE_OFFSET_BITS=64 -DQT_TH <br>
READ_SUPPORT -DQT_PLUGIN -DQT_SHARED -DQT_NO_DEBUG -I/usr/lib/qt-3.3/mkspecs/def<br>
ault -I. -I/usr/local/include -I/usr/kde/3.3/include -I/usr/local/include -I/usr<br>
/lib/qt-3.3/include -o mythnews.o mythnews.cpp<br>
g++ -c -pipe -pthread -I/usr/include/kde/artsc -I/usr/include/glib-2.0 -I/usr/li<br>
b/glib-2.0/include -Wno-non-virtual-dtor -Wall -W -g -D_REENTRANT -DPIC -fPIC -<br>
D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DMMX -Di386 -D_FILE_OFFSET_BITS=64 -DQT_TH <br>
READ_SUPPORT -DQT_PLUGIN -DQT_SHARED -DQT_NO_DEBUG -I/usr/lib/qt-3.3/mkspecs/def<br>
ault -I. -I/usr/local/include -I/usr/kde/3.3/include -I/usr/local/include -I/usr<br>
/lib/qt-3.3/include -o mythnewsconfig.o mythnewsconfig.cpp <br>
g++ -c -pipe -pthread -I/usr/include/kde/artsc -I/usr/include/glib-2.0 -I/usr/li<br>
b/glib-2.0/include -Wno-non-virtual-dtor -Wall -W -g -D_REENTRANT -DPIC -fPIC -<br>
D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DMMX -Di386 -D_FILE_OFFSET_BITS=64 -DQT_TH <br>
READ_SUPPORT -DQT_PLUGIN -DQT_SHARED -DQT_NO_DEBUG -I/usr/lib/qt-3.3/mkspecs/def<br>
ault -I. -I/usr/local/include -I/usr/kde/3.3/include -I/usr/local/include -I/usr<br>
/lib/qt-3.3/include -o newsengine.o newsengine.cpp <br>
/usr/lib/qt-3.3/bin/moc mythnews.h -o moc_mythnews.cpp<br>
g++ -c -pipe -pthread -I/usr/include/kde/artsc -I/usr/include/glib- 2.0 -I/usr/li<br>
b/glib-2.0/include -Wno-non-virtual-dtor -Wall -W -g -D_REENTRANT -DPIC -fPIC - <br>
D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DMMX -Di386 -D_FILE_OFFSET_BITS=64 -DQT_TH<br>
READ_SUPPORT -DQT_PLUGIN -DQT_SHARED -DQT_NO_DEBUG -I/usr/lib/qt-3.3/mkspecs/def<br>
ault -I. -I/usr/local/include -I/usr/kde/3.3/include -I/usr/local/include -I/usr <br>
/lib/qt-3.3/include -o moc_mythnews.o moc_mythnews.cpp<br>
/usr/lib/qt-3.3/bin/moc mythnewsconfig.h -o moc_mythnewsconfig.cpp<br>
g++ -c -pipe -pthread -I/usr/include/kde/artsc -I/usr/include/glib-2.0 -I/usr/li<br>
b/glib- 2.0/include -Wno-non-virtual-dtor -Wall -W -g -D_REENTRANT -DPIC -fPIC -<br>
D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DMMX -Di386 -D_FILE_OFFSET_BITS=64 -DQT_TH<br>
READ_SUPPORT -DQT_PLUGIN -DQT_SHARED -DQT_NO_DEBUG -I/usr/lib/qt- 3.3/mkspecs/def<br>
ault -I. -I/usr/local/include -I/usr/kde/3.3/include -I/usr/local/include -I/usr<br>
/lib/qt-3.3/include -o moc_mythnewsconfig.o moc_mythnewsconfig.cpp<br>
/usr/lib/qt-3.3/bin/moc newsengine.h -o moc_newsengine.cpp <br>
g++ -c -pipe -pthread -I/usr/include/kde/artsc -I/usr/include/glib-2.0 -I/usr/li<br>
b/glib-2.0/include -Wno-non-virtual-dtor -Wall -W -g -D_REENTRANT -DPIC -fPIC -<br>
D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DMMX -Di386 -D_FILE_OFFSET_BITS=64 -DQT_TH <br>
READ_SUPPORT -DQT_PLUGIN -DQT_SHARED -DQT_NO_DEBUG -I/usr/lib/qt-3.3/mkspecs/def<br>
ault -I. -I/usr/local/include -I/usr/kde/3.3/include -I/usr/local/include -I/usr<br>
/lib/qt-3.3/include -o moc_newsengine.o moc_newsengine.cpp <br>
rm -f libmythnews.so<br>
g++ -shared -o libmythnews.so main.o mythnews.o mythnewsconfig.o newsengine.o mo<br>
c_mythnews.o moc_mythnewsconfig.o moc_newsengine.o -L/usr/kde/3.3/lib -L/usr/li<br>
b/qt-3.3/lib -L/usr/local/lib -lqt-mt -lpthread <br>
make[1]: Leaving directory `/home/mythtv/mythtv_build/release-0-20-fixes/mythplu<br>
gins/mythnews/mythnews'<br>
cd i18n && qmake </font><a href="http://i18n.pro/" target="_blank"><u><font size="4" color="#0000FF">i18n.pro</font></u></a><font size="4"> -o Makefile<br>
cd i18n && make -f Makefile <br>
make[1]: Entering directory `/home/mythtv/mythtv_build/release-0-20-fixes/mythpl<br>
ugins/mythnews/i18n'<br>
gcc -c -pipe -Wall -W -O3 -fomit-frame-pointer -Wall -Wno-switch -fomit-frame-po<br>
inter -D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DMMX -Di386 -D_FILE_OFFSET_BITS=64 <br>
-I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/local/include -I/usr/kde/3.3/inclu<br>
de -I/usr/local/include -o dummy.o dummy.c<br>
g++ -o i18n dummy.o -L/usr/kde/3.3/lib -L/usr/local/lib<br>
make[1]: Leaving directory `/home/mythtv/mythtv_build/release-0-20-fixes/mythplu <br>
gins/mythnews/i18n'<br>
[root@localhost mythnews]# make install<br>
( [ -d mythnews ] && cd mythnews ; grep "^qmake_all:" Makefile && make -f Makefi<br>
le qmake_all; ) || true<br>
( [ -d i18n ] && cd i18n ; grep "^qmake_all:" Makefile && make -f Makefile qmake <br>
_all; ) || true<br>
( [ -d mythnews ] && cd mythnews ; make -f Makefile install; ) || true<br>
make[1]: Entering directory `/home/mythtv/mythtv_build/release-0-20-fixes/mythpl<br>
ugins/mythnews/mythnews'<br>
cp -f "libmythnews.so" "/usr/local/lib/mythtv/plugins/libmythnews.so"<br>
cp -f "news-sites.xml" "/usr/local/share/mythtv/mythnews/"<br>
cp -f "images/news-info-bg.png" "/usr/local/share/mythtv/themes/default/" <br>
cp -f "news-ui.xml" "/usr/local/share/mythtv/themes/default/"<br>
make[1]: Leaving directory `/home/mythtv/mythtv_build/release-0-20-fixes/mythplu gins/mythnews/mythnews' <br>
( [ -d i18n ] && cd i18n ; make -f Makefile install; ) || true<br>
make[1]: Entering directory `/home/mythtv/mythtv_build/release-0-20-fixes/mythpl ugins/mythnews/i18n' <br>
cp -f "mythnews_it.qm" "/usr/local/share/mythtv/i18n/"<br>
cp -f "mythnews_es.qm" "/usr/local/share/mythtv/i18n/" <br>
cp -f "mythnews_ca.qm" "/usr/local/share/mythtv/i18n/" <br>
cp -f "mythnews_nl.qm" "/usr/local/share/mythtv/i18n/"<br>
cp -f "mythnews_de.qm" "/usr/local/share/mythtv/i18n/"<br>
cp -f "mythnews_dk.qm" "/usr/local/share/mythtv/i18n/" <br>
cp -f "mythnews_pt.qm" "/usr/local/share/mythtv/i18n/"<br>
cp -f "mythnews_sv.qm" "/usr/local/share/mythtv/i18n/"<br>
cp -f "mythnews_fr.qm" "/usr/local/share/mythtv/i18n/" <br>
cp -f "mythnews_ja.qm" "/usr/local/share/mythtv/i18n/"<br>
cp -f "mythnews_si.qm" "/usr/local/share/mythtv/i18n/"<br>
cp -f "mythnews_et.qm" "/usr/local/share/mythtv/i18n/" <br>
cp -f "mythnews_fi.qm" "/usr/local/share/mythtv/i18n/"<br>
cp -f "mythnews_nb.qm" "/usr/local/share/mythtv/i18n/"<br>
cp -f "mythnews_ru.qm" "/usr/local/share/mythtv/i18n/" <br>
make[1]: Leaving directory `/home/mythtv/mythtv_build/release-0-20-fixes/mythplu gins/mythnews/i18n'<br>
[root@localhost mythnews]#<br>
////////////////////////////////////////////////////////////////////////////////////////////////////////// </font></td></tr>
</table>
<br>
</body></html>