Trying to build on ubuntu 18.04:
darkdog@darkdog:~/polybar$ ./build.sh
** Fetching submodules
** Setting build options
** Include support for "internal/i3" (requires i3) ------------------- [Y/n]: y
** Include support for "internal/volume" (requires alsalib) ---------- [Y/n]: y
** Include support for "internal/network" (requires wireless_tools) -- [Y/n]: y
** Include support for "internal/mpd" (requires libmpdclient) -------- [Y/n]: y
** Include support for "internal/github" (requires libcurl) ---------- [Y/n]: n
** Build "polybar-msg" used to send ipc messages --------------------- [Y/n]: y
** Using compiler: g++/gcc
** Executing cmake command
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- No build type specified; using RelWithDebInfo
-- Using supported compiler GNU-7.3.0
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Checking for module 'cairo-fc'
-- Found cairo-fc, version 1.15.10
-- Checking for module 'alsa'
-- Found alsa, version 1.1.3
-- Checking for module 'libmpdclient'
-- Found libmpdclient, version 2.11
-- Found Libiw: /usr/lib/x86_64-linux-gnu/libiw.so
-- Checking for module 'xcb-xkb'
-- Found xcb-xkb, version 1.13
-- Checking for module 'xcb-randr'
-- Found xcb-randr, version 1.13
-- Checking for module 'xcb-randr>=1.12'
-- Found xcb-randr, version 1.13
-- Checking for module 'xcb-xrm'
-- Found xcb-xrm, version 1.0
-- Checking for module 'xcb-cursor'
-- Found xcb-cursor, version 0.1.1
-- Build:
-- Type: RelWithDebInfo
-- CC: /usr/bin/gcc -O2 -g -DNDEBUG
-- CXX: /usr/bin/g++ -Wall -Wextra -Werror -Wno-noexcept-type -O2 -pedantic -pedantic-errors -O2 -g -DNDEBUG
-- LD: /usr/bin/ld
-- Targets:
-- [X] polybar-msg
-- [ ] testsuite
-- Module support:
-- [X] alsa
-- [ ] curl
-- [X] i3
-- [X] mpd
-- [X] network
-- X extensions:
-- [X] xcb-randr
-- [X] xcb-randr (monitor support)
-- [ ] xcb-render
-- [ ] xcb-damage
-- [ ] xcb-sync
-- [ ] xcb-composite
-- [X] xcb-xkb
-- [X] xcb-xrm
-- [X] xcb-cursor
-- Font not found: fixed:pixelsize=10
-- Font not found: unifont:fontformat=truetype
-- Font not found: siji:pixelsize=10
-- Checking for module 'xcb-proto'
-- Found xcb-proto, version 1.13
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.15", minimum required is "2.7")
-- XCB[XCB]: Found component XCB
-- Found XCB_XCB: /usr/lib/x86_64-linux-gnu/libxcb.so
-- XCB[ICCCM]: Found component ICCCM
-- Found XCB_ICCCM: /usr/lib/x86_64-linux-gnu/libxcb-icccm.so
-- XCB[EWMH]: Found component EWMH
-- Found XCB_EWMH: /usr/lib/x86_64-linux-gnu/libxcb-ewmh.so
-- XCB[UTIL]: Found component UTIL
-- Found XCB_UTIL: /usr/lib/x86_64-linux-gnu/libxcb-util.so
-- XCB[IMAGE]: Found component IMAGE
-- Found XCB_IMAGE: /usr/lib/x86_64-linux-gnu/libxcb-image.so
-- Found XCB: /usr/lib/x86_64-linux-gnu/libxcb.so;/usr/lib/x86_64-linux-gnu/libxcb-icccm.so;/usr/lib/x86_64-linux-gnu/libxcb-ewmh.so;/usr/lib/x86_64-linux-gnu/libxcb-util.so;/usr/lib/x86_64-linux-gnu/libxcb-image.so
-- Searching for xcbgen with python2
-- Found xcbgen in /usr/lib/python2.7/dist-packages
-- XCB[RANDR]: Found component RANDR
-- Found XCB_RANDR: /usr/lib/x86_64-linux-gnu/libxcb-randr.so
-- Found XCB: /usr/lib/x86_64-linux-gnu/libxcb.so;/usr/lib/x86_64-linux-gnu/libxcb-icccm.so;/usr/lib/x86_64-linux-gnu/libxcb-ewmh.so;/usr/lib/x86_64-linux-gnu/libxcb-util.so;/usr/lib/x86_64-linux-gnu/libxcb-image.so;/usr/lib/x86_64-linux-gnu/libxcb-randr.so
-- XCB[XKB]: Found component XKB
-- Found XCB_XKB: /usr/lib/x86_64-linux-gnu/libxcb-xkb.so
-- Found XCB: /usr/lib/x86_64-linux-gnu/libxcb.so;/usr/lib/x86_64-linux-gnu/libxcb-icccm.so;/usr/lib/x86_64-linux-gnu/libxcb-ewmh.so;/usr/lib/x86_64-linux-gnu/libxcb-util.so;/usr/lib/x86_64-linux-gnu/libxcb-image.so;/usr/lib/x86_64-linux-gnu/libxcb-randr.so;/usr/lib/x86_64-linux-gnu/libxcb-xkb.so
-- xpp: including xcb proto randr.xml
-- xpp: including xcb proto xkb.xml
-- xpp: including xcb proto xproto.xml
-- Checking for module 'jsoncpp>=1.7.7'
-- Requested 'jsoncpp >= 1.7.7' but version of jsoncpp is 1.7.4
You may find new versions of jsoncpp at https://github.com/open-source-parsers/jsoncpp
-- Could not find jsoncpp>=1.7.7 -- building static lib...
-- JsonCpp Version: 1.7.7
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.15", minimum required is "2.6")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/darkdog/polybar/build
** Building project
Scanning dependencies of target xpp
[ 1%] Linking CXX static library libxpp.a
/bin/sh: 1: cannot create /home/darkdog/polybar/lib/xpp/include/xpp/proto/randr.hpp: Permission denied
lib/xpp/CMakeFiles/xpp.dir/build.make:68: recipe for target 'lib/xpp/libxpp.a' failed
make[2]: *** [lib/xpp/libxpp.a] Error 2
CMakeFiles/Makefile2:402: recipe for target 'lib/xpp/CMakeFiles/xpp.dir/all' failed
make[1]: *** [lib/xpp/CMakeFiles/xpp.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
** Failed to build project
Your permissions in the lib/xpp folder are messed up. Did you use sudo anywhere in the process of downloading and compiling polybar?
Only at the sudo make install command, as suggested :(
did you run sudo make install in addition to ./build.sh? If so, in what order and in which directory did you run sudo make install?
The exact steps:
$ git clone --branch 3.1.0 --recursive https://github.com/jaagr/polybar
$ mkdir polybar/build
$ cd polybar/build
$ cmake ..
$ sudo make install
same luck with ./build.sh
polybar directory is located in my ~/ folder
Hmm, you seem to be doing nothing wrong. What does stat lib/xpp/include/xpp/proto give you (run inside the polybar folder)?
darkdog@darkdog:~/polybar$ stat lib/xpp/include/xpp/proto
File: lib/xpp/include/xpp/proto
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 801h/2049d Inode: 263855 Links: 2
Access: (0775/drwxrwxr-x) Uid: ( 1000/ darkdog) Gid: ( 1000/ darkdog)
Access: 2018-05-02 15:50:17.018547994 +0300
Modify: 2018-05-02 15:21:50.680436174 +0300
Change: 2018-05-02 15:49:03.908367581 +0300
Birth: -
From what I can tell everything looks fine. Does touch lib/xpp/include/xpp/proto/randr.hpp work for you?
Looks like it has to do with this new ubuntu release, will try to put it on a vm and try it ASAP
darkdog@darkdog:~/polybar$ touch lib/xpp/include/xpp/proto/randr.hpp
touch: cannot touch 'lib/xpp/include/xpp/proto/randr.hpp': Permission denied
Strange, the folder the randr.hpp is in says that you have write permission. Maybe the file already exists. What does stat lib/xpp/include/xpp/proto/randr.hpp give you?
darkdog@darkdog:~/polybar$ stat lib/xpp/include/xpp/proto/randr.hpp
File: lib/xpp/include/xpp/proto/randr.hpp
Size: 0 Blocks: 0 IO Block: 4096 regular empty file
Device: 801h/2049d Inode: 264213 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2018-05-02 15:21:50.680436174 +0300
Modify: 2018-05-02 15:51:00.595872338 +0300
Change: 2018-05-02 15:51:00.595872338 +0300
Birth: -
For some reason root owns this file. That should definitely not be the case, I will look into this.
Thank you for your time, I've been breaking my head to find what's wrong for a couple of hours now :(
I'm not sure if it might be related to the same issue, I just retry and I got a slightly different error. Machine is Ubuntu 18.04 fresh install.
javier@skullcanyon:~/polybar/build$ cmake ..
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- No build type specified; using RelWithDebInfo
-- Using supported compiler GNU-7.3.0
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Checking for module 'cairo-fc'
-- Found cairo-fc, version 1.15.10
-- Checking for module 'alsa'
-- Found alsa, version 1.1.3
-- Checking for module 'libcurl'
-- Found libcurl, version 7.58.0
-- Checking for module 'libmpdclient'
-- Found libmpdclient, version 2.11
-- Found Libiw: /usr/lib/x86_64-linux-gnu/libiw.so
-- Checking for module 'xcb-xkb'
-- Found xcb-xkb, version 1.13
-- Checking for module 'xcb-randr'
-- Found xcb-randr, version 1.13
-- Checking for module 'xcb-randr>=1.12'
-- Found xcb-randr, version 1.13
-- Checking for module 'xcb-xrm'
-- Found xcb-xrm, version 1.0
-- Checking for module 'xcb-cursor'
-- Found xcb-cursor, version 0.1.1
-- Build:
-- Type: RelWithDebInfo
-- CC: /usr/bin/cc -O2 -g -DNDEBUG
-- CXX: /usr/bin/c++ -Wall -Wextra -Werror -Wno-noexcept-type -O2 -pedantic -pedantic-errors -O2 -g -DNDEBUG
-- LD: /usr/bin/ld
-- Targets:
-- [X] polybar-msg
-- [ ] testsuite
-- Module support:
-- [X] alsa
-- [X] curl
-- [X] i3
-- [X] mpd
-- [X] network
-- X extensions:
-- [X] xcb-randr
-- [X] xcb-randr (monitor support)
-- [ ] xcb-render
-- [ ] xcb-damage
-- [ ] xcb-sync
-- [ ] xcb-composite
-- [X] xcb-xkb
-- [X] xcb-xrm
-- [X] xcb-cursor
-- Font not found: fixed:pixelsize=10
-- Font not found: unifont:fontformat=truetype
-- Font not found: siji:pixelsize=10
-- Checking for module 'xcb-proto'
-- Found xcb-proto, version 1.13
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.15", minimum required is "2.7")
-- XCB[XCB]: Found component XCB
-- Found XCB_XCB: /usr/lib/x86_64-linux-gnu/libxcb.so
-- XCB[ICCCM]: Found component ICCCM
-- Found XCB_ICCCM: /usr/lib/x86_64-linux-gnu/libxcb-icccm.so
-- XCB[EWMH]: Found component EWMH
-- Found XCB_EWMH: /usr/lib/x86_64-linux-gnu/libxcb-ewmh.so
-- XCB[UTIL]: Found component UTIL
-- Found XCB_UTIL: /usr/lib/x86_64-linux-gnu/libxcb-util.so
-- XCB[IMAGE]: Found component IMAGE
-- Found XCB_IMAGE: /usr/lib/x86_64-linux-gnu/libxcb-image.so
-- Found XCB: /usr/lib/x86_64-linux-gnu/libxcb.so;/usr/lib/x86_64-linux-gnu/libxcb-icccm.so;/usr/lib/x86_64-linux-gnu/libxcb-ewmh.so;/usr/lib/x86_64-linux-gnu/libxcb-util.so;/usr/lib/x86_64-linux-gnu/libxcb-image.so
-- Searching for xcbgen with python2
-- Found xcbgen in /usr/lib/python2.7/dist-packages
-- XCB[RANDR]: Found component RANDR
-- Found XCB_RANDR: /usr/lib/x86_64-linux-gnu/libxcb-randr.so
-- Found XCB: /usr/lib/x86_64-linux-gnu/libxcb.so;/usr/lib/x86_64-linux-gnu/libxcb-icccm.so;/usr/lib/x86_64-linux-gnu/libxcb-ewmh.so;/usr/lib/x86_64-linux-gnu/libxcb-util.so;/usr/lib/x86_64-linux-gnu/libxcb-image.so;/usr/lib/x86_64-linux-gnu/libxcb-randr.so
-- XCB[XKB]: Found component XKB
-- Found XCB_XKB: /usr/lib/x86_64-linux-gnu/libxcb-xkb.so
-- Found XCB: /usr/lib/x86_64-linux-gnu/libxcb.so;/usr/lib/x86_64-linux-gnu/libxcb-icccm.so;/usr/lib/x86_64-linux-gnu/libxcb-ewmh.so;/usr/lib/x86_64-linux-gnu/libxcb-util.so;/usr/lib/x86_64-linux-gnu/libxcb-image.so;/usr/lib/x86_64-linux-gnu/libxcb-randr.so;/usr/lib/x86_64-linux-gnu/libxcb-xkb.so
-- xpp: including xcb proto randr.xml
-- xpp: including xcb proto xkb.xml
-- xpp: including xcb proto xproto.xml
-- Checking for module 'jsoncpp>=1.7.7'
-- Requested 'jsoncpp >= 1.7.7' but version of jsoncpp is 1.7.4
You may find new versions of jsoncpp at https://github.com/open-source-parsers/jsoncpp
-- Could not find jsoncpp>=1.7.7 -- building static lib...
-- JsonCpp Version: 1.7.7
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.15", minimum required is "2.6")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/javier/polybar/build
javier@skullcanyon:~/polybar/build$ sudo make install
Scanning dependencies of target xpp
[ 1%] Linking CXX static library libxpp.a
Traceback (most recent call last):
File "/home/javier/polybar/lib/xpp/generators/cpp_client.py", line 3163, in <module>
from xcbgen.state import Module
File "/usr/lib/python2.7/dist-packages/xcbgen/state.py", line 7, in <module>
from xcbgen import matcher
File "/usr/lib/python2.7/dist-packages/xcbgen/matcher.py", line 12, in <module>
from xcbgen.xtypes import *
File "/usr/lib/python2.7/dist-packages/xcbgen/xtypes.py", line 1221, in <module>
class EventStruct(Union):
File "/usr/lib/python2.7/dist-packages/xcbgen/xtypes.py", line 1239, in EventStruct
out = __main__.output['eventstruct']
KeyError: 'eventstruct'
lib/xpp/CMakeFiles/xpp.dir/build.make:68: recipe for target 'lib/xpp/libxpp.a' failed
make[2]: *** [lib/xpp/libxpp.a] Error 1
CMakeFiles/Makefile2:402: recipe for target 'lib/xpp/CMakeFiles/xpp.dir/all' failed
make[1]: *** [lib/xpp/CMakeFiles/xpp.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
My make install gets stuck at 89% and the line highlighted is get_monitors(), I am not sure what to do next, I have been struggling to install this for the past 2 hours and have managed to find my way with most of the trivail issues. I need some serious help now.
[ 1%] Generating ../../../lib/xpp/include/xpp/proto/x.hpp
[ 2%] Generating ../../../lib/xpp/include/xpp/proto/randr.hpp
list: size, ['red', 'green', 'blue']
list: size, ['red', 'green', 'blue']
[ 3%] Generating ../../../lib/xpp/include/xpp/proto/xkb.hpp
Scanning dependencies of target xpp
[ 4%] Linking CXX static library libxpp.a
[ 4%] Built target xpp
Scanning dependencies of target jsoncpp_lib_static
[ 5%] Building CXX object lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/CMakeFiles/jsoncpp_lib_static.dir/json_reader.cpp.o
[ 6%] Building CXX object lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/CMakeFiles/jsoncpp_lib_static.dir/json_value.cpp.o
[ 7%] Building CXX object lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/CMakeFiles/jsoncpp_lib_static.dir/json_writer.cpp.o
[ 8%] Linking CXX static library libjsoncpp.a
[ 8%] Built target jsoncpp_lib_static
Scanning dependencies of target i3ipc++
[ 9%] Building CXX object lib/i3ipcpp/CMakeFiles/i3ipc++.dir/src/ipc.cpp.o
[ 10%] Building CXX object lib/i3ipcpp/CMakeFiles/i3ipc++.dir/src/ipc-util.cpp.o
[ 11%] Linking CXX static library libi3ipc++.a
[ 11%] Built target i3ipc++
Scanning dependencies of target polybar-msg
[ 12%] Building CXX object bin/CMakeFiles/polybar-msg.dir/ipc.cpp.o
[ 13%] Building CXX object bin/CMakeFiles/polybar-msg.dir/utils/env.cpp.o
[ 14%] Building CXX object bin/CMakeFiles/polybar-msg.dir/utils/file.cpp.o
[ 15%] Building CXX object bin/CMakeFiles/polybar-msg.dir/utils/string.cpp.o
[ 16%] Linking CXX executable polybar-msg
[ 16%] Built target polybar-msg
Scanning dependencies of target polybar
[ 17%] Building CXX object bin/CMakeFiles/polybar.dir/adapters/alsa/control.cpp.o
[ 18%] Building CXX object bin/CMakeFiles/polybar.dir/adapters/alsa/mixer.cpp.o
[ 20%] Building CXX object bin/CMakeFiles/polybar.dir/adapters/mpd.cpp.o
[ 21%] Building CXX object bin/CMakeFiles/polybar.dir/adapters/net.cpp.o
[ 22%] Building CXX object bin/CMakeFiles/polybar.dir/adapters/pulseaudio.cpp.o
[ 23%] Building CXX object bin/CMakeFiles/polybar.dir/cairo/utils.cpp.o
[ 24%] Building CXX object bin/CMakeFiles/polybar.dir/components/bar.cpp.o
[ 25%] Building CXX object bin/CMakeFiles/polybar.dir/components/builder.cpp.o
[ 26%] Building CXX object bin/CMakeFiles/polybar.dir/components/command_line.cpp.o
[ 27%] Building CXX object bin/CMakeFiles/polybar.dir/components/config.cpp.o
[ 28%] Building CXX object bin/CMakeFiles/polybar.dir/components/controller.cpp.o
[ 29%] Building CXX object bin/CMakeFiles/polybar.dir/components/ipc.cpp.o
[ 30%] Building CXX object bin/CMakeFiles/polybar.dir/components/logger.cpp.o
[ 31%] Building CXX object bin/CMakeFiles/polybar.dir/components/parser.cpp.o
[ 32%] Building CXX object bin/CMakeFiles/polybar.dir/components/renderer.cpp.o
[ 33%] Building CXX object bin/CMakeFiles/polybar.dir/components/screen.cpp.o
[ 34%] Building CXX object bin/CMakeFiles/polybar.dir/components/taskqueue.cpp.o
[ 35%] Building CXX object bin/CMakeFiles/polybar.dir/drawtypes/animation.cpp.o
[ 36%] Building CXX object bin/CMakeFiles/polybar.dir/drawtypes/iconset.cpp.o
[ 37%] Building CXX object bin/CMakeFiles/polybar.dir/drawtypes/label.cpp.o
[ 38%] Building CXX object bin/CMakeFiles/polybar.dir/drawtypes/progressbar.cpp.o
[ 40%] Building CXX object bin/CMakeFiles/polybar.dir/drawtypes/ramp.cpp.o
[ 41%] Building CXX object bin/CMakeFiles/polybar.dir/events/signal_emitter.cpp.o
[ 42%] Building CXX object bin/CMakeFiles/polybar.dir/events/signal_receiver.cpp.o
[ 43%] Building CXX object bin/CMakeFiles/polybar.dir/main.cpp.o
[ 44%] Building CXX object bin/CMakeFiles/polybar.dir/modules/alsa.cpp.o
[ 45%] Building CXX object bin/CMakeFiles/polybar.dir/modules/backlight.cpp.o
[ 46%] Building CXX object bin/CMakeFiles/polybar.dir/modules/battery.cpp.o
[ 47%] Building CXX object bin/CMakeFiles/polybar.dir/modules/bspwm.cpp.o
[ 48%] Building CXX object bin/CMakeFiles/polybar.dir/modules/counter.cpp.o
[ 49%] Building CXX object bin/CMakeFiles/polybar.dir/modules/cpu.cpp.o
[ 50%] Building CXX object bin/CMakeFiles/polybar.dir/modules/date.cpp.o
[ 51%] Building CXX object bin/CMakeFiles/polybar.dir/modules/fs.cpp.o
[ 52%] Building CXX object bin/CMakeFiles/polybar.dir/modules/github.cpp.o
[ 53%] Building CXX object bin/CMakeFiles/polybar.dir/modules/i3.cpp.o
[ 54%] Building CXX object bin/CMakeFiles/polybar.dir/modules/ipc.cpp.o
[ 55%] Building CXX object bin/CMakeFiles/polybar.dir/modules/memory.cpp.o
[ 56%] Building CXX object bin/CMakeFiles/polybar.dir/modules/menu.cpp.o
[ 57%] Building CXX object bin/CMakeFiles/polybar.dir/modules/meta/base.cpp.o
[ 58%] Building CXX object bin/CMakeFiles/polybar.dir/modules/mpd.cpp.o
[ 60%] Building CXX object bin/CMakeFiles/polybar.dir/modules/network.cpp.o
[ 61%] Building CXX object bin/CMakeFiles/polybar.dir/modules/pulseaudio.cpp.o
[ 62%] Building CXX object bin/CMakeFiles/polybar.dir/modules/script.cpp.o
[ 63%] Building CXX object bin/CMakeFiles/polybar.dir/modules/systray.cpp.o
[ 64%] Building CXX object bin/CMakeFiles/polybar.dir/modules/temperature.cpp.o
[ 65%] Building CXX object bin/CMakeFiles/polybar.dir/modules/text.cpp.o
[ 66%] Building CXX object bin/CMakeFiles/polybar.dir/modules/xbacklight.cpp.o
[ 67%] Building CXX object bin/CMakeFiles/polybar.dir/modules/xkeyboard.cpp.o
[ 68%] Building CXX object bin/CMakeFiles/polybar.dir/modules/xwindow.cpp.o
[ 69%] Building CXX object bin/CMakeFiles/polybar.dir/modules/xworkspaces.cpp.o
[ 70%] Building CXX object bin/CMakeFiles/polybar.dir/utils/bspwm.cpp.o
[ 71%] Building CXX object bin/CMakeFiles/polybar.dir/utils/command.cpp.o
[ 72%] Building CXX object bin/CMakeFiles/polybar.dir/utils/concurrency.cpp.o
[ 73%] Building CXX object bin/CMakeFiles/polybar.dir/utils/env.cpp.o
[ 74%] Building CXX object bin/CMakeFiles/polybar.dir/utils/factory.cpp.o
[ 75%] Building CXX object bin/CMakeFiles/polybar.dir/utils/file.cpp.o
[ 76%] Building CXX object bin/CMakeFiles/polybar.dir/utils/http.cpp.o
[ 77%] Building CXX object bin/CMakeFiles/polybar.dir/utils/i3.cpp.o
[ 78%] Building CXX object bin/CMakeFiles/polybar.dir/utils/inotify.cpp.o
[ 80%] Building CXX object bin/CMakeFiles/polybar.dir/utils/io.cpp.o
[ 81%] Building CXX object bin/CMakeFiles/polybar.dir/utils/process.cpp.o
[ 82%] Building CXX object bin/CMakeFiles/polybar.dir/utils/socket.cpp.o
[ 83%] Building CXX object bin/CMakeFiles/polybar.dir/utils/string.cpp.o
[ 84%] Building CXX object bin/CMakeFiles/polybar.dir/utils/throttle.cpp.o
[ 85%] Building CXX object bin/CMakeFiles/polybar.dir/x11/atoms.cpp.o
[ 86%] Building CXX object bin/CMakeFiles/polybar.dir/x11/connection.cpp.o
[ 87%] Building CXX object bin/CMakeFiles/polybar.dir/x11/cursor.cpp.o
[ 88%] Building CXX object bin/CMakeFiles/polybar.dir/x11/ewmh.cpp.o
[ 89%] Building CXX object bin/CMakeFiles/polybar.dir/x11/extensions/randr.cpp.o
/home/humble_d/polybar/src/x11/extensions/randr.cpp: In function ‘std::vector
/home/humble_d/polybar/src/x11/extensions/randr.cpp:90:30: error: ‘class polybar::v3_1_0_114_gcc334e5::connection’ has no member named ‘get_monitors’; did you mean ‘get_controls’?
for (auto&& mon : conn.get_monitors(root, true).monitors()) {
^~~~
get_controls
bin/CMakeFiles/polybar.dir/build.make:1694: recipe for target 'bin/CMakeFiles/polybar.dir/x11/extensions/randr.cpp.o' failed
make[2]: * [bin/CMakeFiles/polybar.dir/x11/extensions/randr.cpp.o] Error 1
CMakeFiles/Makefile2:853: recipe for target 'bin/CMakeFiles/polybar.dir/all' failed
make[1]: [bin/CMakeFiles/polybar.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: ** [all] Error 2
@JavierReyes945: Your issue is different and already known. Have a look at Known Issues for a solution
@AakashMallik Are you using Ubuntu 18.04 as well?
@patrick96 Yes sir, I am...
I have just setup an Ubuntu 18.04 VM and was able to build polybar without issues (except the 'Keyerror: EventStruct' one).
@boubounokefalos: One of your files are owned by root, so at some point you have run sudo in the polybar directory, maybe before and you didn't delete the polybar folder. Can you delete the polybar folder and do a clean install, with
$ git clone --branch 3.1.0 --recursive https://github.com/jaagr/polybar
$ mkdir polybar/build
$ cd polybar/build
$ cmake ..
$ sudo make install
@AakashMallik: I suspect that something went wrong in the xpp submodule. Please also try a clean build and also see the known issues for the eventstruct error
Same behavior without sudo. I'm out of ideas.
darkdog@darkdog:~$ git clone --branch 3.1.0 --recursive https://github.com/jaagr/polybar
Cloning into 'polybar'...
remote: Counting objects: 11823, done.
remote: Compressing objects: 100% (26/26), done.
remote: Total 11823 (delta 9), reused 13 (delta 5), pack-reused 11792
Receiving objects: 100% (11823/11823), 6.73 MiB | 605.00 KiB/s, done.
Resolving deltas: 100% (8803/8803), done.
Note: checking out 'bf16a4d415ea7d8845f578544de0c71e56ad314e'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
Submodule 'lib/i3ipcpp' (https://github.com/jaagr/i3ipcpp) registered for path 'lib/i3ipcpp'
Submodule 'lib/xpp' (https://github.com/jaagr/xpp) registered for path 'lib/xpp'
Cloning into '/home/darkdog/polybar/lib/i3ipcpp'...
remote: Counting objects: 755, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 755 (delta 2), reused 3 (delta 1), pack-reused 749
Receiving objects: 100% (755/755), 298.59 KiB | 377.00 KiB/s, done.
Resolving deltas: 100% (238/238), done.
Cloning into '/home/darkdog/polybar/lib/xpp'...
remote: Counting objects: 2589, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 2589 (delta 0), reused 0 (delta 0), pack-reused 2586
Receiving objects: 100% (2589/2589), 445.78 KiB | 471.00 KiB/s, done.
Resolving deltas: 100% (1802/1802), done.
Submodule path 'lib/i3ipcpp': checked out 'a6aa7a19786bdf7b96a02900510b3b3c325c8bdf'
Submodule path 'lib/xpp': checked out 'c73db50f3020b7abe294631b25a2d302fcd9e1cb'
darkdog@darkdog:~$ mkdir polybar/build
darkdog@darkdog:~$ cd polybar/build
darkdog@darkdog:~/polybar/build$ cmake ..
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- No build type specified; using RelWithDebInfo
-- Using supported compiler GNU-7.3.0
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Checking for module 'cairo-fc'
-- Found cairo-fc, version 1.15.10
-- Checking for module 'alsa'
-- Found alsa, version 1.1.3
-- Checking for module 'libmpdclient'
-- Found libmpdclient, version 2.11
-- Found Libiw: /usr/lib/x86_64-linux-gnu/libiw.so
-- Checking for module 'xcb-xkb'
-- Found xcb-xkb, version 1.13
-- Checking for module 'xcb-randr'
-- Found xcb-randr, version 1.13
-- Checking for module 'xcb-randr>=1.12'
-- Found xcb-randr, version 1.13
-- Checking for module 'xcb-xrm'
-- Found xcb-xrm, version 1.0
-- Checking for module 'xcb-cursor'
-- Found xcb-cursor, version 0.1.1
-- Build:
-- Type: RelWithDebInfo
-- CC: /usr/bin/cc -O2 -g -DNDEBUG
-- CXX: /usr/bin/c++ -Wall -Wextra -Werror -Wno-noexcept-type -O2 -pedantic -pedantic-errors -O2 -g -DNDEBUG
-- LD: /usr/bin/ld
-- Targets:
-- [X] polybar-msg
-- [ ] testsuite
-- Module support:
-- [X] alsa
-- [ ] curl
-- [X] i3
-- [X] mpd
-- [X] network
-- X extensions:
-- [X] xcb-randr
-- [X] xcb-randr (monitor support)
-- [ ] xcb-render
-- [ ] xcb-damage
-- [ ] xcb-sync
-- [ ] xcb-composite
-- [X] xcb-xkb
-- [X] xcb-xrm
-- [X] xcb-cursor
-- Font not found: fixed:pixelsize=10
-- Font not found: unifont:fontformat=truetype
-- Font not found: siji:pixelsize=10
-- Checking for module 'xcb-proto'
-- Found xcb-proto, version 1.13
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.15", minimum required is "2.7")
-- XCB[XCB]: Found component XCB
-- Found XCB_XCB: /usr/lib/x86_64-linux-gnu/libxcb.so
-- XCB[ICCCM]: Found component ICCCM
-- Found XCB_ICCCM: /usr/lib/x86_64-linux-gnu/libxcb-icccm.so
-- XCB[EWMH]: Found component EWMH
-- Found XCB_EWMH: /usr/lib/x86_64-linux-gnu/libxcb-ewmh.so
-- XCB[UTIL]: Found component UTIL
-- Found XCB_UTIL: /usr/lib/x86_64-linux-gnu/libxcb-util.so
-- XCB[IMAGE]: Found component IMAGE
-- Found XCB_IMAGE: /usr/lib/x86_64-linux-gnu/libxcb-image.so
-- Found XCB: /usr/lib/x86_64-linux-gnu/libxcb.so;/usr/lib/x86_64-linux-gnu/libxcb-icccm.so;/usr/lib/x86_64-linux-gnu/libxcb-ewmh.so;/usr/lib/x86_64-linux-gnu/libxcb-util.so;/usr/lib/x86_64-linux-gnu/libxcb-image.so
-- Searching for xcbgen with python2
-- Found xcbgen in /usr/lib/python2.7/dist-packages
-- XCB[RANDR]: Found component RANDR
-- Found XCB_RANDR: /usr/lib/x86_64-linux-gnu/libxcb-randr.so
-- Found XCB: /usr/lib/x86_64-linux-gnu/libxcb.so;/usr/lib/x86_64-linux-gnu/libxcb-icccm.so;/usr/lib/x86_64-linux-gnu/libxcb-ewmh.so;/usr/lib/x86_64-linux-gnu/libxcb-util.so;/usr/lib/x86_64-linux-gnu/libxcb-image.so;/usr/lib/x86_64-linux-gnu/libxcb-randr.so
-- XCB[XKB]: Found component XKB
-- Found XCB_XKB: /usr/lib/x86_64-linux-gnu/libxcb-xkb.so
-- Found XCB: /usr/lib/x86_64-linux-gnu/libxcb.so;/usr/lib/x86_64-linux-gnu/libxcb-icccm.so;/usr/lib/x86_64-linux-gnu/libxcb-ewmh.so;/usr/lib/x86_64-linux-gnu/libxcb-util.so;/usr/lib/x86_64-linux-gnu/libxcb-image.so;/usr/lib/x86_64-linux-gnu/libxcb-randr.so;/usr/lib/x86_64-linux-gnu/libxcb-xkb.so
-- xpp: including xcb proto randr.xml
-- xpp: including xcb proto xkb.xml
-- xpp: including xcb proto xproto.xml
-- Checking for module 'jsoncpp>=1.7.7'
-- Requested 'jsoncpp >= 1.7.7' but version of jsoncpp is 1.7.4
You may find new versions of jsoncpp at https://github.com/open-source-parsers/jsoncpp
-- Could not find jsoncpp>=1.7.7 -- building static lib...
-- JsonCpp Version: 1.7.7
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.15", minimum required is "2.6")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/darkdog/polybar/build
darkdog@darkdog:~/polybar/build$ sudo make install
[sudo] password for darkdog:
Scanning dependencies of target xpp
[ 1%] Linking CXX static library libxpp.a
Traceback (most recent call last):
File "/home/darkdog/polybar/lib/xpp/generators/cpp_client.py", line 3163, in <module>
from xcbgen.state import Module
File "/usr/lib/python2.7/dist-packages/xcbgen/state.py", line 7, in <module>
from xcbgen import matcher
File "/usr/lib/python2.7/dist-packages/xcbgen/matcher.py", line 12, in <module>
from xcbgen.xtypes import *
File "/usr/lib/python2.7/dist-packages/xcbgen/xtypes.py", line 1221, in <module>
class EventStruct(Union):
File "/usr/lib/python2.7/dist-packages/xcbgen/xtypes.py", line 1239, in EventStruct
out = __main__.output['eventstruct']
KeyError: 'eventstruct'
lib/xpp/CMakeFiles/xpp.dir/build.make:68: recipe for target 'lib/xpp/libxpp.a' failed
make[2]: *** [lib/xpp/libxpp.a] Error 1
CMakeFiles/Makefile2:402: recipe for target 'lib/xpp/CMakeFiles/xpp.dir/all' failed
make[1]: *** [lib/xpp/CMakeFiles/xpp.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
@patrick96 Sir, I'll get back to you on this tomorrow. I am really eager to get this installed but right now I have got myself occupied with something. Thank you for your prompt reply.
So taking the ownership comments into account, I managed to finally build the polybar with the following workaround:
$ git clone --branch 3.1.0 --recursive https://github.com/jaagr/polybar
$ sudo chown USERNAME -R /home/USERNAME/*
$ cd polybar/lib/xpp
$ git checkout master
$ rm include/xpp/proto/*
$ cd
$ mkdir polybar/build
$ cd polybar/build
$ cmake ..
$ sudo make install
Obviously the above workaround, was ok for my situation (minimal 18.04 ubuntu installation from mini.iso, I might have messed something in the process) but could cause problems to others.
@boubounokefalos: Yeah, you probably messed up some of the permissions in your home folder at some point. I will close this as soon as @AakashMallik is able to resolve their issue as well.
@patrick96 I tried doing it from scratch and I am again stuck at 89%. I don't think it is a known error.
The error is still the same. Compilation error. Is this a compiler issue? I read somewhere that gcc could throw some compilation errors... but I am not sure about that.
Also, I have manually built xcb-proto as directed hence it is on the downgraded version ( 1.11 ).
For now, I can't think of any other probable reason. Btw, my xcb-randr package is on 1.13. I was going through a thread related to this issue and I guess you mentioned that this should also be downgraded. Is that so?
@AakashMallik: On Ubuntu 18.04 nothing should be manually downgraded, since there is no more version mismtach between proto and randr. That is most likely your problem, make sure that libxcb-randr0-dev and xcb-proto are both on version 1.13 and you shouldn't have any problems.
@patrick96 Alright sir. I guess that might have been the issue. I switched to i3blocks anyway. I will try out polybar sometime later then. Thank you for your response sir.
I experienced the same issues as @boubounokefalos on Ubuntu 18.04, and his workaround worked for me too.
Can't build 3.1 or master on Ubuntu 18.04 too.
CMakeError.log
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/tigre/Downloads/polybar-master/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_a0505/fast"
/usr/bin/make -f CMakeFiles/cmTC_a0505.dir/build.make CMakeFiles/cmTC_a0505.dir/build
make[1]: Entering directory '/home/tigre/Downloads/polybar-master/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_a0505.dir/CheckSymbolExists.c.o
/usr/bin/gcc -o CMakeFiles/cmTC_a0505.dir/CheckSymbolExists.c.o -c /home/tigre/Downloads/polybar-master/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_a0505
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a0505.dir/link.txt --verbose=1
/usr/bin/gcc -rdynamic CMakeFiles/cmTC_a0505.dir/CheckSymbolExists.c.o -o cmTC_a0505
CMakeFiles/cmTC_a0505.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x1b): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_a0505.dir/build.make:97: recipe for target 'cmTC_a0505' failed
make[1]: *** [cmTC_a0505] Error 1
make[1]: Leaving directory '/home/tigre/Downloads/polybar-master/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_a0505/fast' failed
make: *** [cmTC_a0505/fast] Error 2
File /home/tigre/Downloads/polybar-master/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}
Output of "build.sh"
~/Downloads/polybar-master $ ./build.sh
** Setting build options
** Use GCC even if Clang is installed -------------------------------- [y/N]: y
** Include support for "internal/i3" (requires i3) ------------------- [y/N]: y
** Include support for "internal/alsa" (requires alsalib) ------------ [y/N]: y
** Include support for "internal/pulseaudio" (requires libpulse) ----- [y/N]: y
** Include support for "internal/network" (requires wireless_tools) -- [y/N]: y
** Include support for "internal/mpd" (requires libmpdclient) -------- [y/N]: n
** Include support for "internal/github" (requires libcurl) ---------- [y/N]: n
** Build "polybar-msg" used to send ipc messages --------------------- [y/N]: y
** Executing cmake command
-- Trying to enable ccache
-- Couldn't locate ccache, disabling ccache...
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- No build type specified; using RelWithDebInfo
-- Using supported compiler GNU-7.3.0
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Checking for module 'cairo-fc'
-- Found cairo-fc, version 1.15.10
-- Checking for module 'alsa'
-- Found alsa, version 1.1.3
-- Found Libiw: /usr/lib/x86_64-linux-gnu/libiw.so
-- Checking for module 'libpulse'
-- Found libpulse, version 11.1
-- Checking for module 'xcb-xkb'
-- Found xcb-xkb, version 1.13
-- Checking for module 'xcb-randr'
-- Found xcb-randr, version 1.13
-- Checking for module 'xcb-randr>=1.12'
-- Found xcb-randr, version 1.13
-- Checking for module 'xcb-xrm'
-- Found xcb-xrm, version 1.0
-- Checking for module 'xcb-cursor'
-- Found xcb-cursor, version 0.1.1
-- Build:
-- Type: RelWithDebInfo
-- CC: /usr/bin/gcc -O2 -g -DNDEBUG
-- CXX: /usr/bin/g++ -Wall -Wextra -Werror -Wno-noexcept-type -O2 -pedantic -pedantic-errors -O2 -g -DNDEBUG
-- LD: /usr/bin/ld
-- Targets:
-- [X] polybar-msg
-- [ ] testsuite
-- Module support:
-- [X] alsa (1.1.3)
-- [ ] curl
-- [X] i3
-- [ ] mpd
-- [X] network
-- [X] pulseaudio (11.1)
-- X extensions:
-- [X] xcb-randr (1.13)
-- [X] xcb-randr (monitor support) (1.13)
-- [ ] xcb-render
-- [ ] xcb-damage
-- [ ] xcb-sync
-- [ ] xcb-composite
-- [X] xcb-xkb (1.13)
-- [X] xcb-xrm (1.0)
-- [X] xcb-cursor (0.1.1)
-- Log options:
-- [X] Trace logging
-- Found font: fixed:pixelsize=10
-- Font not found: unifont:fontformat=truetype
-- Found font: siji:pixelsize=10
CMake Error at lib/CMakeLists.txt:33 (add_subdirectory):
The source directory
/home/tigre/Downloads/polybar-master/lib/xpp
does not contain a CMakeLists.txt file.
CMake Error at lib/CMakeLists.txt:41 (add_subdirectory):
The source directory
/home/tigre/Downloads/polybar-master/lib/i3ipcpp
does not contain a CMakeLists.txt file.
-- Configuring incomplete, errors occurred!
See also "/home/tigre/Downloads/polybar-master/build/CMakeFiles/CMakeOutput.log".
See also "/home/tigre/Downloads/polybar-master/build/CMakeFiles/CMakeError.log".
** Failed to generate build... read output to get a hint of what went wrong
@jvalrog you didn't do git clone with --recursive, therefore the submodules were not downloaded. Run git submodule update --init --recursive to fix this.
While I didn't use git for downloading the master branch (used the download link) I downloaded the official 3.1 release tarball. The same error happened there.
Do I need something more apart from the official release tarball?
```Determining if the pthread_create exist failed with the following output:
Change Dir: /home/tigre/Downloads/polybar-3.1.0/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_1e44b/fast"
/usr/bin/make -f CMakeFiles/cmTC_1e44b.dir/build.make CMakeFiles/cmTC_1e44b.dir/build
make[1]: Entering directory '/home/tigre/Downloads/polybar-3.1.0/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_1e44b.dir/CheckSymbolExists.c.o
/usr/bin/gcc -o CMakeFiles/cmTC_1e44b.dir/CheckSymbolExists.c.o -c /home/tigre/Downloads/polybar-3.1.0/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_1e44b
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1e44b.dir/link.txt --verbose=1
/usr/bin/gcc -rdynamic CMakeFiles/cmTC_1e44b.dir/CheckSymbolExists.c.o -o cmTC_1e44b
CMakeFiles/cmTC_1e44b.dir/CheckSymbolExists.c.o: In function main':
CheckSymbolExists.c:(.text+0x1b): undefined reference topthread_create'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_1e44b.dir/build.make:97: recipe for target 'cmTC_1e44b' failed
make[1]: * [cmTC_1e44b] Error 1
make[1]: Leaving directory '/home/tigre/Downloads/polybar-3.1.0/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_1e44b/fast' failed
make: * [cmTC_1e44b/fast] Error 2
File /home/tigre/Downloads/polybar-3.1.0/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
int main(int argc, char** argv)
{
(void)argv;
return ((int*)(&pthread_create))[argc];
(void)argc;
return 0;
}```
Thanks Patrick, the tarball worked on 18.04.
Most helpful comment
So taking the ownership comments into account, I managed to finally build the polybar with the following workaround:
Obviously the above workaround, was ok for my situation (minimal 18.04 ubuntu installation from mini.iso, I might have messed something in the process) but could cause problems to others.