winft / como

The Compositor Modules provide means to create Wayland and X11 compositors
GNU General Public License v2.0
83 stars 5 forks source link

AutoMoc error #17

Open gfgit opened 5 months ago

gfgit commented 5 months ago

Hi again, I'm getting this build errors on KDE Neon:

AutoMoc error
-------------
Writing "SRC:/build/plugins/effects/glide/glide_autogen/moc_predefs.h" failed.

gmake[2]: *** [plugins/effects/glide/CMakeFiles/glide_autogen.dir/build.make:74: plugins/effects/glide/glide_autogen/timestamp] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:6182: plugins/effects/glide/CMakeFiles/glide_autogen.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
[ 37%] Built target cube_autogen
[ 37%] Automatic MOC for target highlightwindow

AutoMoc error
-------------
Writing "SRC:/build/plugins/effects/highlightwindow/highlightwindow_autogen/moc_predefs.h" failed.

gmake[2]: *** [plugins/effects/highlightwindow/CMakeFiles/highlightwindow_autogen.dir/build.make:74: plugins/effects/highlightwindow/highlightwindow_autogen/timestamp] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:6265: plugins/effects/highlightwindow/CMakeFiles/highlightwindow_autogen.dir/all] Error 2
gfgit commented 5 months ago

Seems be fixed by running directly sudo cmake --build . -t install

gfgit commented 5 months ago

Like if install steps which require root privileges are mixed with normal build steps. If later I normally build again I get this:

Could not open:~/Documents/winft/como/build/plugins/effects/private/meta_types/effectsplugin_json_file_list.txt.timestamp
gmake[2]: *** [plugins/effects/private/CMakeFiles/effectsplugin_automoc_json_extraction.dir/build.make:71: plugins/effects/private/CMakeFiles/effectsplugin_automoc_json_extraction] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:5060: plugins/effects/private/CMakeFiles/effectsplugin_automoc_json_extraction.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
gmake: *** [Makefile:156: all] Error 2
17:05:01: The process "/usr/bin/cmake" exited with code 2.
Error while building/deploying project The Compositor Modules (kit: Imported Kit)
When executing step "Build"

Probably because previous sudo cmake ... set files as owned by root and now normal cmake cannot read/write them

romangg commented 5 months ago

Hmm, that's a weird error. Didn't you have similar issues with LXQt build? At least I think I remember that it says something about moc and timestamps there too.

gfgit commented 5 months ago

Hmm, that's a weird error. Didn't you have similar issues with LXQt build? At least I think I remember that it says something about moc and timestamps there too.

Other devs did have similar issues. I didn't