zzag / kwin-effects-yet-another-magic-lamp

Just Yet Another Magic Lamp effect
GNU General Public License v2.0
162 stars 26 forks source link

Build failed: No rule to make target '/org.kde.kwin.Effects.xml', needed by 'src/kcm #2

Closed ghost closed 5 years ago

ghost commented 5 years ago

Hey, just tried building this and it failed. I'm on KDE Neon (plasma 5.14.4). Any ideas?

Also, this is minor but the build instructions should say to cd into kwin-effects-yaml after git clone, before creating the build folder

Thanks

$ make
Scanning dependencies of target kwin4_effect_yaml_autogen
[  4%] Automatic MOC for target kwin4_effect_yaml
AutoMoc warning:
  "/home/<me>/make/kwin-effects-yaml/src/plugin.cc"
The file includes the moc file "plugin.moc", but does not contain a Q_OBJECT, Q_GADGET, Q_NAMESPACE, K_PLUGIN_FACTORY, K_PLUGIN_FACTORY_WITH_JSON, K_PLUGIN_CLASS_WITH_JSON, K_PLUGIN_FACTORY, K_PLUGIN_FACTORY_WITH_JSON or K_PLUGIN_CLASS_WITH_JSON macro.

[  4%] Built target kwin4_effect_yaml_autogen
[  9%] Generating YetAnotherMagicLampConfig.h, YetAnotherMagicLampConfig.cpp
Scanning dependencies of target kwin4_effect_yaml
[ 13%] Building CXX object src/CMakeFiles/kwin4_effect_yaml.dir/Model.cc.o
[ 18%] Building CXX object src/CMakeFiles/kwin4_effect_yaml.dir/OffscreenRenderer.cc.o
[ 22%] Building CXX object src/CMakeFiles/kwin4_effect_yaml.dir/WindowMeshRenderer.cc.o
[ 27%] Building CXX object src/CMakeFiles/kwin4_effect_yaml.dir/YetAnotherMagicLampEffect.cc.o
[ 31%] Building CXX object src/CMakeFiles/kwin4_effect_yaml.dir/plugin.cc.o
[ 36%] Building CXX object src/CMakeFiles/kwin4_effect_yaml.dir/utils.cc.o
[ 40%] Building CXX object src/CMakeFiles/kwin4_effect_yaml.dir/YetAnotherMagicLampConfig.cpp.o
[ 45%] Building CXX object src/CMakeFiles/kwin4_effect_yaml.dir/kwin4_effect_yaml_autogen/mocs_compilation.cpp.o
[ 50%] Linking CXX shared library libkwin4_effect_yaml.so
[ 50%] Built target kwin4_effect_yaml
Scanning dependencies of target kwin_yaml_config_autogen
[ 54%] Automatic MOC for target kwin_yaml_config
[ 54%] Built target kwin_yaml_config_autogen
[ 59%] Generating ui_YetAnotherMagicLampEffectKCM.h
[ 63%] Generating YetAnotherMagicLampConfig.h, YetAnotherMagicLampConfig.cpp
make[2]: *** No rule to make target '/org.kde.kwin.Effects.xml', needed by 'src/kcm/kwineffects_interface.cpp'.  Stop.
CMakeFiles/Makefile2:471: recipe for target 'src/kcm/CMakeFiles/kwin_yaml_config.dir/all' failed
make[1]: *** [src/kcm/CMakeFiles/kwin_yaml_config.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
zzag commented 5 years ago

Do you have org.kde.kwin.Effects.xml in /usr/share/dbus-1/interfaces?

ghost commented 5 years ago

Yep, it's in there

Contents of the file, if it matters:

<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node>
  <interface name="org.kde.kwin.Effects">
    <property name="activeEffects" type="as" access="read"/>
    <property name="loadedEffects" type="as" access="read"/>
    <property name="listOfEffects" type="as" access="read"/>
    <method name="reconfigureEffect">
      <arg name="name" type="s" direction="in"/>
    </method>
    <method name="loadEffect">
      <arg type="b" direction="out"/>
      <arg name="name" type="s" direction="in"/>
    </method>
    <method name="toggleEffect">
      <arg name="name" type="s" direction="in"/>
    </method>
    <method name="unloadEffect">
      <arg name="name" type="s" direction="in"/>
    </method>
    <method name="isEffectLoaded">
      <arg type="b" direction="out"/>
      <arg name="name" type="s" direction="in"/>
    </method>
    <method name="isEffectSupported">
      <arg type="b" direction="out"/>
      <arg name="name" type="s" direction="in"/>
    </method>
    <method name="areEffectsSupported">
      <arg type="ab" direction="out"/>
      <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QList&lt;bool&gt;"/>
      <arg name="names" type="as" direction="in"/>
    </method>
    <method name="supportInformation">
      <arg type="s" direction="out"/>
      <arg name="name" type="s" direction="in"/>
    </method>
    <method name="debug">
      <arg type="s" direction="out"/>
      <arg name="name" type="s" direction="in"/>
      <arg name="name" type="s" direction="in"/>
    </method>
  </interface>
</node>
krisives commented 5 years ago

Builds on Launchpad were failing earlier and I fixed this problem installing libdbus-1-dev

ghost commented 5 years ago

Builds on Launchpad were failing earlier and I fixed this problem installing libdbus-1-dev

That did the trick, thanks! Just had to rerun cmake and everything else went smoothly.

zzag commented 5 years ago

Cool, I'll add libdbus-1-dev to install prerequisites for Ubuntu.