Closed ranjithshegde closed 4 years ago
Could you please try running build again with the following command and post the full log:
./build.sh -d -f
Ok, I've discovered the issue. I believe, for some reason the way that polybar includes files, struct randr_output
isn't defined before it is used in the dwm module when you don't have xcb-util-xrm
installed. I was able to replicate the exact error on my system after uninstalling that package. I'm not fully certain yet if that package is a dependency for struct randr_output
(it wouldn't make sense for it to be), but as a temporary fix for now, if you install xcb-util-xrm
, it should build without errors. Please try that and let me know if that fixes it. In the meantime, I will try to figure out if this package is really necessary to fix this error.
Ok after adding #include "x11/extensions/randr.hpp"
in dwm.cpp
, I was able to build polybar without xcb-util-xrm
installed. I'm still not really sure why this package causes the struct to not fully be defined.
I figured it out. This was the include hierarchy:
dwm.cpp
> components/config.hpp
> x11/xresources.hpp (if xcb-util-xrm installed)
> x11/connection.hpp
> x11/extensions.all.hpp
> x11/extensions/randr.hpp
If xcb-util-xrm
wasn't installed, the x11/extensions/randr.hpp
would never get included causing the build to fail.
Merged to master in commit 01add486afb6b6d5effe2462673ca0f2f7076fdc. @ranjithshegde @vide0hanz Please confirm if this fixed the issue.
Nice! Yup, builds 100% on my end now. Thank you very much.
@mihirlad55 Just tried your PR. Works like a charm! Thank you very much!
Build Process
Describe how you build polybar, list the exact commands you are using: This repository
If you build polybar directly from this repository:
git describe --tags
: 3.4.0-167-g3278b0aBuild Log
Post everything that is output to the terminal while building polybar below. This HAS to include the output of the
cmake
andmake
commands, if you used them.Environment:
Additional context
Add any other context that you think is necessary about the problem here. Followed the README - all steps