[Kde-bindings] Re: building qtruby/smokeqt with QtDeclarative

Sven Moritz Hallberg hallberg at pre-sense.de
Fri Feb 4 14:05:26 UTC 2011


On 01/26/2011 08:45 PM, Ian Monroe wrote:
>> Are you sure that you have the QtDeclarative module installed? The CMake
>> output shows that it picks up the correct Qt installation, but obviously it
>> doesn't find some modules (Phonon, QtMultimedia, QtDeclarative, which are all
>> shipped with Qt).
>> Look for libQtDeclarative.so. If you don't have that, your installation is
>> borked.
> 
> ...and if you do have libQtDeclarative.so, and the cmake is just
> randomly not finding it, the easiest thing to do is to set it with
> cmake-gui or ccmake. This is easier then trying to figure out how to
> make cmake find something on its own.

First of all, thank you for the tips! The library is definately there:

$ ls -l /usr/local/Trolltech/Qt-4.7.1/lib/libQtDeclarative.*
-rw-r--r-- 1 root root     914 2011-01-26 15:37
/usr/local/Trolltech/Qt-4.7.1/lib/libQtDeclarative.la
-rw-r--r-- 1 root root     921 2011-01-26 15:37
/usr/local/Trolltech/Qt-4.7.1/lib/libQtDeclarative.prl
lrwxrwxrwx 1 root root      25 2011-01-26 15:37
/usr/local/Trolltech/Qt-4.7.1/lib/libQtDeclarative.so -> libQtDeclarative.so.4.7.1
lrwxrwxrwx 1 root root      25 2011-01-26 15:37
/usr/local/Trolltech/Qt-4.7.1/lib/libQtDeclarative.so.4 ->
libQtDeclarative.so.4.7.1
lrwxrwxrwx 1 root root      25 2011-01-26 15:37
/usr/local/Trolltech/Qt-4.7.1/lib/libQtDeclarative.so.4.7 ->
libQtDeclarative.so.4.7.1
-rwxr-xr-x 1 root root 3604152 2011-01-26 15:37
/usr/local/Trolltech/Qt-4.7.1/lib/libQtDeclarative.so.4.7.1

So I tried ccmake, toggled to "advanced mode" but could not find a single
setting related to QtDeclarative. I tried 'cmake --trace' but it only yielded
the following lines that don't tell me anything:

/home/hallberg/Desktop/smokeqt/CMakeLists.txt(33):
macro_optional_add_bindings(QT_QTDECLARATIVE_FOUND QtDeclarative qtdeclarative )
/usr/local/share/smoke/cmake/MacroOptionalAddBindings.cmake(21):
get_property(_PREFIX VARIABLE PROPERTY PROJECT_NAME )
/usr/local/share/smoke/cmake/MacroOptionalAddBindings.cmake(22):
if(QT_QTDECLARATIVE_FOUND AND NOT DISABLE_QtDeclarative )
/usr/local/share/smoke/cmake/MacroOptionalAddBindings.cmake(28):  list(APPEND
${_PREFIX}_DISABLED QtDeclarative )
/usr/local/share/smoke/cmake/MacroOptionalAddBindings.cmake(30):  set(_PREFIX )

Maybe they tell you something.

I also installed Qwt5 and Phonon thinking maybe QtDeclarative support depended
on them somehow. I could make cmake find them, but it had no effect.

Any further ideas on what could be missing?

TIA
-- 
Sven Moritz Hallberg                      hallberg at pre-sense.de
                                   Tel. +49 - 40 / 244 24 07-28
                                   Fax  +49 - 40 / 244 24 07-24
PRESENSE Technologies GmbH            Sachsenstr. 5, D-20097 HH
                                         USt-IdNr.: DE263765024
Geschäftsführer/Managing Directors       AG Hamburg, HRB 107844
Till Dörges           Jürgen Sander              Axel Theilmann

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20110204/095ccde9/attachment.sig>


More information about the Kde-bindings mailing list