como icon indicating copy to clipboard operation
como copied to clipboard

AutoMoc error

Open gfgit opened this issue 1 year ago • 4 comments

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 avatar Mar 05 '24 16:03 gfgit

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

gfgit avatar Mar 05 '24 16:03 gfgit

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

gfgit avatar Mar 05 '24 16:03 gfgit

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.

romangg avatar Mar 05 '24 16:03 romangg

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

gfgit avatar Mar 05 '24 16:03 gfgit