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

Arno Rehn arno at arnorehn.de
Fri Feb 4 14:40:10 UTC 2011


On Friday 04 February 2011 15:05:26 Sven Moritz Hallberg wrote:
> 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?
Please grep for "QtDeclarative" in <build-dir>/CMakeCache.txt and tell us what 
this shows.

-- 
Arno Rehn
arno at arnorehn.de



More information about the Kde-bindings mailing list