This is probably easy for someone but I'm used to Gnome and gcc on
Solaris so I haven't got a clue.

Trying to compile libechonest and it needs Qt and QJson.

QT was easy enough after doing a little web searching and QJson was even
easier.

However when I got to libechonest it seems that it may been easy but not
properly integrated.

The cmake for libechonest reveals:

-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt4: /usr/local/Trolltech/Qt-4.8.0/bin/qmake (found version
"4.8.0")
-- checking for module 'QJson>=0.5'
--   package 'QJson>=0.5' not found
CMake Error at
/usr/local/share/cmake-2.8/Modules/FindPkgConfig.cmake:266 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/local/share/cmake-2.8/Modules/FindPkgConfig.cmake:320
(_pkg_check_modules_internal)
  cmake/FindQJSON.cmake:20 (pkg_check_modules)
  CMakeLists.txt:15 (find_package)


-- Found QJSON: /usr/local/lib/libqjson.so 
-- Found Doxygen: /usr/bin/doxygen 
-- Configuring incomplete, errors occurred!

So it looks like Qt is looking for a package called QJson and not
finding it.  Setting LD_LIBRARY_PATH or PKG_CONFIG_PATH or LDFLAGS and
it seems to find QJson but doesn't compile properly:

[ 69%] Building CXX object
tests/CMakeFiles/ArtistTest.dir/ArtistTest.cpp.o
Linking CXX executable ArtistTest
Undefined                       first referenced
 symbol                             in file
QJson::Parser::Parser()             ../src/libechonest.so.1.2.0
QJson::Parser::~Parser()            ../src/libechonest.so.1.2.0
QJson::Serializer::Serializer()     ../src/libechonest.so.1.2.0
QJson::Serializer::~Serializer()    ../src/libechonest.so.1.2.0
QJson::Parser::parse(QIODevice*, bool*) ../src/libechonest.so.1.2.0
QJson::Parser::parse(QByteArray const&, bool*)
../src/libechonest.so.1.2.0
QJson::Parser::errorString() const  ../src/libechonest.so.1.2.0
QJson::Serializer::serialize(QVariant const&)
../src/libechonest.so.1.2.0
ld: fatal: symbol referencing errors. No output written to ArtistTest


Could someone point me in the right direction?

Thanks in advance.
alan


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
QJson-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qjson-devel

Reply via email to