[mythtv] Trying to add QJson to mythfilldatabase, failing spectacularly.

Robert Kulagowski rkulagow at gmail.com
Fri May 25 15:07:33 UTC 2012


QT 4.8, and Json isn't included natively until QT5, so installing qjson to help.

I've added #include <QJson> to filldata.cpp

I've modified mythfilldatabase.pro and added /usr/include/qjson to
INCLUDEPATH and +LIBS += -lqjson

I've installed (on Ubuntu 12.04):

$ sudo apt-get install libqjson-dev libqjson0

make distclean, configure, make.

No joy. :(

cd mythfilldatabase/ && make -f Makefile
make[2]: Entering directory
`/home/rkulagow/mythtv/mythtv/programs/mythfilldatabase'
ccache g++ -c -m64 -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-DPIC -DNDEBUG -fomit-frame-pointer -fPIC -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 -D_REENTRANT
-DQT_WEBKIT -DMMX -D_GNU_SOURCE -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB
-DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSql -I/usr/include/qt4
-I/usr/include -I/usr/local -I/usr/include/libxml2 -I../..
-I../../libs -I../../libs/libmyth -I../../libs/libmyth/audio
-I../../libs/libmythtv -I../../external/FFmpeg
-I../../libs/libmythupnp -I../../libs/libmythui
-I../../libs/libmythmetadata -I../../libs/libmythlivemedia
-I../../libs/libmythbase -I../../libs/libmythhdhomerun
-I../../libs/libmythdvdnav -I../../libs/libmythbluray
-I../../libs/libmythsamplerate -I../../libs/libmythtv/mpeg
-I../../libs/libmythtv/vbitext -I../../libs/libmythservicecontracts
-I../../libs/libmythprotoserver -I../../libs/libmythtv/mpeg
-I/usr/include/qjson -I/usr/X11R6/include -I. -o filldata.o
filldata.cpp
filldata.cpp:19:17: fatal error: QJson: No such file or directory
compilation terminated.
make[2]: *** [filldata.o] Error 1
make[2]: Leaving directory
`/home/rkulagow/mythtv/mythtv/programs/mythfilldatabase'
make[1]: *** [sub-mythfilldatabase-make_default] Error 2
make[1]: Leaving directory `/home/rkulagow/mythtv/mythtv/programs'
make: *** [programs] Error 2

What's the special sauce that I'm missing? Various examples found
through Google make it seem as easy as including QJson, but that's not
working for me, and I don't know if it's something obvious, or
something about how the MythTV make file is generated.


More information about the mythtv-dev mailing list