I am using Antergos with i3wm, all dependencies installed but when I try to compile I get the errors:
[daniel@antergos build]$ cmake ..
-- No build type specified; using RelWithDebInfo
-- Using supported compiler GNU-6.3.1
CMake Error: Could not open file for write in copy operation /home/daniel/Downloads/polybar-master/build/cmake/userconfig.cmake.tmp
CMake Error: : System Error: Permission denied
CMake Error at cmake/04-targets.cmake:7 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:18 (include)
CMake Error: Could not open file for write in copy operation /home/daniel/Downloads/polybar-master/build/cmake/uninstall.cmake.tmp
CMake Error: : System Error: Permission denied
CMake Error at cmake/04-targets.cmake:19 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:18 (include)
-- Build:
-- Type: RelWithDebInfo
-- CC: /usr/bin/gcc -O2 -g -DNDEBUG
-- CXX: /usr/bin/g++ -Wall -Wextra -Werror -O2 -pedantic -pedantic-errors -O2 -g -DNDEBUG
-- LD: /usr/bin/ld
-- Targets:
-- polybar-msg
-- testsuite
-- Module support:
-- alsa
-- curl
-- i3
-- mpd
-- network
-- X extensions:
-- xcb-randr
-- xcb-randr (monitor support)
-- xcb-render
-- xcb-damage
-- xcb-sync
-- xcb-composite
-- xcb-xkb
-- xcb-xrm
-- Found font: misc fixed:pixelsize=10
-- Font not found: unifont:fontformat=truetype
-- Font not found: siji:pixelsize=10
CMake Error at lib/CMakeLists.txt:33 (add_subdirectory):
The source directory
`/home/daniel/Downloads/polybar-master/lib/xpp`
does not contain a CMakeLists.txt file.
-- Configuring incomplete, errors occurred!
See also "/home/daniel/Downloads/polybar-master/build/CMakeFiles/CMakeOutput.log".
See also "/home/daniel/Downloads/polybar-master/build/CMakeFiles/CMakeError.log".
CMake Error: Cannot open file for write: /home/daniel/Downloads/polybar-master/build/CMakeCache.txt.tmp
CMake Error: : System Error: Permission denied
CMake Error: Unable to open cache file for save. /home/daniel/Downloads/polybar-master/build/CMakeCache.txt
CMake Error: : System Error: Permission denied
Part of the issue looks like you didn't clone with the --recursive flag set. Try removing the project folder and then clone it all back in with --recursive. This will fetch all of the needed files from the linked repositories.
This worked for me. Thanks @naviabbot.
Closing as the issue appears to be resolved.
Most helpful comment
Part of the issue looks like you didn't clone with the --recursive flag set. Try removing the project folder and then clone it all back in with --recursive. This will fetch all of the needed files from the linked repositories.