Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Possible problem with xrender #406

Closed
Vintodrimmer opened this issue Feb 1, 2017 · 3 comments
Closed

Possible problem with xrender #406

Vintodrimmer opened this issue Feb 1, 2017 · 3 comments

Comments

@Vintodrimmer
Copy link

Hello again. I'm building from the ineluctable overlay and there seems to be a problem when compiling with "xrender" USE-flag. In other words, when I enable -DWITH_XRENDER, I get the following error while trying to compile.

/tmp/portage/x11-misc/polybar-3.0.3/work/polybar-3.0.3/src/x11/connection.cpp: In constructor ‘polybar::v2_0_0::connection::connection(xcb_connection_t*, int)’:
/tmp/portage/x11-misc/polybar-3.0.3/work/polybar-3.0.3/src/x11/connection.cpp:45:3: error: ‘render_util’ has not been declared
   render_util::query_extension(*this);
   ^~~~~~~~~~~
[ 85%] Building CXX object bin/CMakeFiles/polybar.dir/x11/extensions/randr.cpp.o
cd /tmp/portage/x11-misc/polybar-3.0.3/work/polybar-3.0.3_build/bin && /usr/bin/x86_64-pc-linux-gnu-g++   -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/alsa -I/tmp/portage/x11-misc/polybar-3.0.3/work/polybar-3.0.3/include -I/tmp/portage/x11-misc/polybar-3.0.3/work/polybar-3.0.3/lib/concurrentqueue/include -I/tmp/portage/x11-misc/polybar-3.0.3/work/polybar-3.0.3/lib/xpp/include   -DNDEBUG -march=native -O3 -pipe -Wall -Wextra -Werror -O2 -pedantic -pedantic-errors   -pthread -std=c++14 -o CMakeFiles/polybar.dir/x11/extensions/randr.cpp.o -c /tmp/portage/x11-misc/polybar-3.0.3/work/polybar-3.0.3/src/x11/extensions/randr.cpp
make[2]: *** [bin/CMakeFiles/polybar.dir/build.make:1479: bin/CMakeFiles/polybar.dir/x11/connection.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/tmp/portage/x11-misc/polybar-3.0.3/work/polybar-3.0.3/src/x11/extensions/composite.cpp: In function ‘void polybar::v2_0_0::composite_util::query_extension(polybar::v2_0_0::connection&)’:
/tmp/portage/x11-misc/polybar-3.0.3/work/polybar-3.0.3/src/x11/extensions/composite.cpp:12:10: error: request for member ‘composite’ is ambiguous
     conn.composite().query_version(XCB_COMPOSITE_MAJOR_VERSION, XCB_COMPOSITE_MINOR_VERSION);
          ^~~~~~~~~
In file included from /tmp/portage/x11-misc/polybar-3.0.3/work/polybar-3.0.3/include/x11/extensions/composite.hpp:10:0,
                 from /tmp/portage/x11-misc/polybar-3.0.3/work/polybar-3.0.3/src/x11/extensions/composite.cpp:1:
/tmp/portage/x11-misc/polybar-3.0.3/work/polybar-3.0.3/lib/xpp/include/xpp/proto/composite.hpp:351:5: note: candidates are: const xpp::composite::interface<Derived, Connection>& xpp::composite::interface<Derived, Connection>::composite() [with Derived = polybar::v2_0_0::detail::interfaces<polybar::v2_0_0::detail::connection_base<polybar::v2_0_0::connection&, xpp::randr::extension, xpp::render::extension, xpp::sync::extension, xpp::composite::extension, xpp::xkb::extension>, xpp::randr::extension, xpp::render::extension, xpp::sync::extension, xpp::composite::extension, xpp::xkb::extension>; Connection = polybar::v2_0_0::detail::connection_base<polybar::v2_0_0::connection&, xpp::randr::extension, xpp::render::extension, xpp::sync::extension, xpp::composite::extension, xpp::xkb::extension>]
     composite(void)
     ^~~~~~~~~
In file included from /tmp/portage/x11-misc/polybar-3.0.3/work/polybar-3.0.3/include/x11/extensions/render.hpp:10:0,
                 from /tmp/portage/x11-misc/polybar-3.0.3/work/polybar-3.0.3/include/x11/extensions/all.hpp:9,
                 from /tmp/portage/x11-misc/polybar-3.0.3/work/polybar-3.0.3/include/x11/connection.hpp:11,
                 from /tmp/portage/x11-misc/polybar-3.0.3/work/polybar-3.0.3/src/x11/extensions/composite.cpp:3:
/tmp/portage/x11-misc/polybar-3.0.3/work/polybar-3.0.3/lib/xpp/include/xpp/proto/render.hpp:1983:5: note:                 template<class ... Parameter> void xpp::render::interface<Derived, Connection>::composite(Parameter&& ...) const [with Parameter = {Parameter ...}; Derived = polybar::v2_0_0::detail::interfaces<polybar::v2_0_0::detail::connection_base<polybar::v2_0_0::connection&, xpp::randr::extension, xpp::render::extension, xpp::sync::extension, xpp::composite::extension, xpp::xkb::extension>, xpp::randr::extension, xpp::render::extension, xpp::sync::extension, xpp::composite::extension, xpp::xkb::extension>; Connection = polybar::v2_0_0::detail::connection_base<polybar::v2_0_0::connection&, xpp::randr::extension, xpp::render::extension, xpp::sync::extension, xpp::composite::extension, xpp::xkb::extension>]
     composite(Parameter && ... parameter) const
     ^~~~~~~~~
make[2]: *** [bin/CMakeFiles/polybar.dir/build.make:1527: bin/CMakeFiles/polybar.dir/x11/extensions/composite.cpp.o] Error 1
make[2]: Leaving directory '/tmp/portage/x11-misc/polybar-3.0.3/work/polybar-3.0.3_build'
make[1]: *** [CMakeFiles/Makefile2:457: bin/CMakeFiles/polybar.dir/all] Error 2
make[1]: Leaving directory '/tmp/portage/x11-misc/polybar-3.0.3/work/polybar-3.0.3_build'
make: *** [Makefile:128: all] Error 2

Can you point me to whether some dependency is missing or something like that, please?

Guys at the overlay say that they have the same problem and don't quite know why.

@Dr-Terrible
Copy link

Dr-Terrible commented Feb 2, 2017

@jaagr I was able to pin down the issue to these CMake options:

cmake -G Unix Makefiles \
  -DCMAKE_INSTALL_PREFIX=/usr \
  -DBUILD_IPC_MSG=ON \
  -DBUILD_TESTS=no \
  -DENABLE_CCACHE=OFF \
  -DENABLE_ALSA=no \
  -DENABLE_CURL=no \
  -DENABLE_I3=no \
  -DENABLE_MPD=no \
  -DENABLE_NETWORK=no \
  -DENABLE_XKEYBOARD=ON \
  -DWITH_XRANDR=ON \
  -DWITH_XRANDR_MONITORS=ON \
  -DWITH_XRENDER=yes \
  -DWITH_XDAMAGE=no \
  -DWITH_XSYNC=no \
  -DWITH_XCOMPOSITE=no \
  -DWITH_XKB=ON \
  -DWITH_XRM=ON \
  -DDEBUG_LOGGER=no \
  -DDEBUG_LOGGER_VERBOSE=no \
  -DDEBUG_HINTS=no \
  -DDEBUG_WHITESPACE=no \
  -DDEBUG_FONTCONFIG=no

which produces the error: ‘render_util’ has not been declared.

When enabling both XRENDER and XCOMPOSITE with -DWITH_XRENDER=yes -DWITH_XCOMPOSITE=yes you got hit by the error: request for member ‘composite’ is ambiguous too.

When enabling XCOMPOSITE without XRENDER with -DWITH_XRENDER=no -DWITH_XCOMPOSITE=yes everything compiles fine.

@jaagr
Copy link
Member

jaagr commented Feb 2, 2017

XRender XDamage XComposite and XSync is currently not used so you can disable them for now. I'll fix the compilation errors.

bpinto added a commit to bpinto/ineluctable-overlay that referenced this issue Feb 2, 2017
bpinto added a commit to bpinto/ineluctable-overlay that referenced this issue Feb 2, 2017
jaagr added a commit that referenced this issue Feb 4, 2017
bpinto added a commit to bpinto/ineluctable-overlay that referenced this issue Feb 6, 2017
bpinto added a commit to bpinto/ineluctable-overlay that referenced this issue Feb 6, 2017
@jaagr
Copy link
Member

jaagr commented May 5, 2017

Closing due to inactivity.

@jaagr jaagr closed this as completed May 5, 2017
Cogitri pushed a commit to Cogitri/void-packages that referenced this issue Jan 8, 2019
* Use release tarball, easier to use
* Disable XRENDER for now, enabling XRENDER and XCOMPOSITE at the
  same time causes build failures, see polybar/polybar#406
Hoshpak pushed a commit to void-linux/void-packages that referenced this issue Jan 8, 2019
* Use release tarball, easier to use
* Disable XRENDER for now, enabling XRENDER and XCOMPOSITE at the
  same time causes build failures, see polybar/polybar#406
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants