Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

AutoMoc error #17

Open
gfgit opened this issue Mar 5, 2024 · 4 comments
Open

AutoMoc error #17

gfgit opened this issue Mar 5, 2024 · 4 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@gfgit
Copy link
Contributor

gfgit commented Mar 5, 2024

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
Copy link
Contributor Author

gfgit commented Mar 5, 2024

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

@gfgit
Copy link
Contributor Author

gfgit commented Mar 5, 2024

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
Copy link
Member

romangg commented Mar 5, 2024

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 romangg added bug Something isn't working help wanted Extra attention is needed question Further information is requested labels Mar 5, 2024
@gfgit
Copy link
Contributor Author

gfgit commented Mar 5, 2024

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

@romangg romangg removed the question Further information is requested label Mar 5, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants