Closed GeraldJansen closed 2 years ago
I need to update the instructions. The following works for me on debian bullseye:
xfce4-hamster-plugin. cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -B build -- Configuring done -- Generating done -- Build files have been written to: /home/herd/Projects/desk/xfce/xfce4-hamster-plugin/build xfce4-hamster-plugin. cmake --build build [ 36%] Built target translations_1 [ 36%] Built target translations [ 47%] Built target data Scanning dependencies of target hamster [ 52%] Building C object panel-plugin/CMakeFiles/hamster.dir/button.c.o [ 57%] Building C object panel-plugin/CMakeFiles/hamster.dir/hamster.c.o [ 63%] Building C object panel-plugin/CMakeFiles/hamster.dir/plugin.c.o [ 68%] Building C object panel-plugin/CMakeFiles/hamster.dir/settings.c.o [ 73%] Building C object panel-plugin/CMakeFiles/hamster.dir/util.c.o [ 78%] Building C object panel-plugin/CMakeFiles/hamster.dir/view.c.o [ 84%] Building C object panel-plugin/CMakeFiles/hamster.dir/windowserver.c.o [ 89%] Linking C shared library libhamster.so [100%] Built target hamster xfce4-hamster-plugin. cmake --install build -- Install configuration: "" -- Installing: /usr/share/locale/cs/LC_MESSAGES/xfce4-hamster-plugin.mo CMake Error at build/cmake_install.cmake:46 (file): file INSTALL cannot copy file "/home/herd/Projects/desk/xfce/xfce4-hamster-plugin/build/cs.gmo" to "/usr/share/locale/cs/LC_MESSAGES/xfce4-hamster-plugin.mo": Permission denied. xfce4-hamster-plugin. find -name hamster.so xfce4-hamster-plugin. find -name libhamster.so ./build/panel-plugin/libhamster.so xfce4-hamster-plugin. echo $MAKEFLAGS xfce4-hamster-plugin.
The fix with 17.1 is that the end install is in /usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libhamster.so
instead of /usr/lib/xfce4/panel/plugins/libhamster.so
hard coded but the build itself should not be affected. So called multi-lib-awareness required by fedora, also supported by debian if e.g. 32-bit x86 is enabled.
Thanks for the feedback and new instructions. I followed them but the result is still the same (i.e. no hamster.dir/*.o files created and no libhamster.so created.) I'm still getting the messages about vm.drop_caches = 3
and have no idea what could be triggering them.
fired up a podman and built there succeessfully - no idea how to proceed from here on
Perhaps a virtual machine issue? Will build succeed with export MAKEFLAGS=j1
?
I must apologize for wasting your time. I had a long forgotten personal alias for cc
as a cleancache script :-(
The build and installation works just fine now. Thanks again.
No worries.
With a fresh clone of current master, installation fails because libhamster.so doesn't get created in the make step. Looking a bit closer, I got this:
I'm not sure what those
vm.drop_caches = 3
messages are about, but no object files are being created.