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

Cannot build picom #908

Closed
temcher0 opened this issue Oct 23, 2022 · 8 comments
Closed

Cannot build picom #908

temcher0 opened this issue Oct 23, 2022 · 8 comments

Comments

@temcher0
Copy link

Installed all libraries, by following the installation guide. However, every time I trying to build picom by using meson --buildtype=release . build, this problem appears:

Run-time dependency xcb-renderutil found: NO (tried pkgconfig and cmake)

~/.config/picom$ meson --buildtype=release . build
The Meson build system
Version: 0.61.2
Source dir: /home/temcher_0/.config/picom
Build dir: /home/temcher_0/.config/picom/build
Build type: native build
Project name: picom
Project version: 9
C compiler for the host machine: cc (gcc 11.2.0 "cc (Ubuntu 11.2.0-19ubuntu1) 11.2.0")
C linker for the host machine: cc ld.bfd 2.38
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program git found: YES (/usr/bin/git)
Has header "stdc-predef.h" : YES
Compiler for C supports arguments -Wcast-function-type: YES
Compiler for C supports arguments -Wignored-qualifiers: YES
Compiler for C supports arguments -Wmissing-parameter-type: YES
Compiler for C supports arguments -Wnonnull: YES
Compiler for C supports arguments -Wshadow: YES
Compiler for C supports arguments -Wno-type-limits: YES
Compiler for C supports arguments -Wold-style-declaration: YES
Compiler for C supports arguments -Woverride-init: YES
Compiler for C supports arguments -Wsign-compare: YES
Compiler for C supports arguments -Wtype-limits: YES
Compiler for C supports arguments -Wuninitialized: YES
Compiler for C supports arguments -Wshift-negative-value: YES
Compiler for C supports arguments -Wunused-but-set-parameter: YES
Compiler for C supports arguments -Wunused-parameter: YES
Compiler for C supports arguments -Wimplicit-fallthrough=2: YES
Compiler for C supports arguments -Wno-unknown-warning-option: NO
Compiler for C supports arguments -Wno-missing-braces: YES
Compiler for C supports arguments -Wconversion: YES
Compiler for C supports arguments -Wempty-body: YES

Executing subproject test.h

test.h| Project name: test.h
test.h| Project version: undefined
test.h| C compiler for the host machine: cc (gcc 11.2.0 "cc (Ubuntu 11.2.0-19ubuntu1) 11.2.0")
test.h| C linker for the host machine: cc ld.bfd 2.38
test.h| Build targets in project: 0
test.h| Subproject test.h finished.

Found pkg-config: /home/linuxbrew/.linuxbrew/bin/pkg-config (0.29.2)
Found CMake: /usr/bin/cmake (3.22.1)
Run-time dependency libev found: NO (tried pkgconfig and cmake)
Library ev found: YES
Library m found: YES
Run-time dependency x11 found: YES 1.8.1
Run-time dependency x11-xcb found: YES 1.8.1
Run-time dependency xcb-renderutil found: NO (tried pkgconfig and cmake)

src/meson.build:27:1: ERROR: Dependency "xcb-renderutil" not found, tried pkgconfig and cmake

A full log can be found at /home/temcher_0/.config/picom/build/meson-logs/meson-log.txt

Had the same issue for x11 and x11-xcb libs, but solved it by searching and installing them manually. As for the xcb-renderutil, even after searching for it and installing manually, problem remains the same.

@yshui
Copy link
Owner

yshui commented Oct 24, 2022

what's your distro?

@temcher0
Copy link
Author

what's your distro?

Ubuntu 22.04.1 LTS x86_64

@yshui
Copy link
Owner

yshui commented Oct 24, 2022

did you install libxcb-render-util0-dev? it's listed in the README

@temcher0
Copy link
Author

did you install libxcb-render-util0-dev? it's listed in the README

Yes, sure, I installed all dependencies. To prevent mistakes, checked it again. For libxcb-render-util0-dev it says:

0 upgraded, 0 newly installed, 0 to remove and 24 not upgraded.

So, problem remains the same.

@yshui
Copy link
Owner

yshui commented Oct 26, 2022

You are using pkg-config from linuxbrew, not the system one. You need to figure out how to install xcb-renderutil with that.

@yshui yshui closed this as completed Oct 26, 2022
@Flashwalker
Copy link

Flashwalker commented Jan 29, 2023

I have the same on 22.04

...
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Found CMake: /usr/bin/cmake (3.22.1)
Run-time dependency libev found: NO (tried pkgconfig and cmake)
Library ev found: YES

...

deps installed

libev-dev:
  Installed: 1:4.33-1
  Candidate: 1:4.33-1
  Version table:
 *** 1:4.33-1 500

Build and install goes well, but picom throws an error at start:

[ 29.01.2023 22:51:32.704 file_watch_init ERROR ] inotify_init1 failed: Too many open files

But it's running...
But segfault on Ctrl+C exit

Segmentation fault (core dumped)

And config autoreload on change doesn't works.

Then i tried uninstall and to reinstall like this:

sudo ninja -C build uninstall
rm -rf build
git submodule update --init --recursive
meson setup -Dprefix=/usr --buildtype=release . build
meson configure -Dprefix=/usr build
meson setup -Dprefix=/usr --reconfigure --buildtype=release . build
ninja -C build
sudo ninja -C build install

and got at first start:

$ picom
[ 29.01.2023 23:26:30.950 file_watch_init ERROR ] inotify_init1 failed: Too many open files
[ 29.01.2023 23:26:31.132 x_log_error WARN ] X error 8 MATCH request 152 minor 22 serial 4680
[ 29.01.2023 23:26:31.132 x_log_error WARN ] X error 9 DRAWABLE request 156 minor 4 serial 4681
[ 29.01.2023 23:26:31.132 x_log_error WARN ] X error 161 GLX_BAD_PIXMAP request 152 minor 16 serial 0
^C[ 29.01.2023 23:27:27.973 x_log_error WARN ] X error 161 GLX_BAD_PIXMAP request 152 minor 16 serial 0
[ 29.01.2023 23:27:27.976 x_log_error WARN ] X error 161 GLX_BAD_PIXMAP request 152 minor 23 serial 30962

Ctrl+C

Segmentation fault (core dumped)

config autoreload on change doesn't works.

But further runs is without file_watch_init ERROR ] inotify_init1 failed:

 picom
[ 29.01.2023 23:29:07.940 x_log_error WARN ] X error 8 MATCH request 152 minor 22 serial 4743
[ 29.01.2023 23:29:07.940 x_log_error WARN ] X error 9 DRAWABLE request 156 minor 4 serial 4744
[ 29.01.2023 23:29:07.940 x_log_error WARN ] X error 161 GLX_BAD_PIXMAP request 152 minor 16 serial 0

And config autoreload on change works.
And there is no segfault on Ctrl+C.

But X error warnings still exist

[ 29.01.2023 23:29:07.940 x_log_error WARN ] X error 8 MATCH request 152 minor 22 serial 4743
[ 29.01.2023 23:29:07.940 x_log_error WARN ] X error 9 DRAWABLE request 156 minor 4 serial 4744
[ 29.01.2023 23:29:07.940 x_log_error WARN ] X error 161 GLX_BAD_PIXMAP request 152 minor 16 serial 0
[ 29.01.2023 23:31:19.593 x_log_error WARN ] X error 3 WINDOW request 2 minor 0 serial 40175
[ 29.01.2023 23:33:17.862 x_log_error WARN ] X error 3 WINDOW request 2 minor 0 serial 77048
[ 29.01.2023 23:33:18.212 x_log_error WARN ] X error 3 WINDOW request 2 minor 0 serial 77196
[ 29.01.2023 23:34:04.399 x_log_error WARN ] X error 161 GLX_BAD_PIXMAP request 152 minor 16 serial 0
[ 29.01.2023 23:34:04.400 x_log_error WARN ] X error 161 GLX_BAD_PIXMAP request 152 minor 23 serial 86752
[ 29.01.2023 23:34:04.400 x_log_error WARN ] X error 8 MATCH request 152 minor 22 serial 86755
[ 29.01.2023 23:34:04.400 x_log_error WARN ] X error 9 DRAWABLE request 156 minor 4 serial 86756
[ 29.01.2023 23:34:04.400 x_log_error WARN ] X error 161 GLX_BAD_PIXMAP request 152 minor 16 serial 0
[ 29.01.2023 23:36:12.650 x_log_error WARN ] X error 3 WINDOW request 2 minor 0 serial 116312
[ 29.01.2023 23:36:12.650 x_log_error WARN ] X error 3 WINDOW request 2 minor 0 serial 116316
[ 29.01.2023 23:36:12.650 x_log_error WARN ] X error 3 WINDOW request 2 minor 0 serial 116319
[ 29.01.2023 23:36:34.856 x_log_error WARN ] X error 3 WINDOW request 2 minor 0 serial 132691
[ 29.01.2023 23:36:34.856 x_log_error WARN ] X error 3 WINDOW request 2 minor 0 serial 132693
[ 29.01.2023 23:37:22.598 x_log_error WARN ] X error 3 WINDOW request 2 minor 0 serial 146371
[ 29.01.2023 23:37:35.179 x_log_error WARN ] X error 3 WINDOW request 2 minor 0 serial 151347
[ 29.01.2023 23:38:05.146 x_log_error WARN ] X error 3 WINDOW request 2 minor 0 serial 160217
[ 29.01.2023 23:40:46.597 x_log_error WARN ] X error 3 WINDOW request 2 minor 0 serial 203272
[ 29.01.2023 23:44:04.209 x_log_error WARN ] X error 161 GLX_BAD_PIXMAP request 152 minor 16 serial 0
[ 29.01.2023 23:44:04.211 x_log_error WARN ] X error 161 GLX_BAD_PIXMAP request 152 minor 23 serial 297106
[ 29.01.2023 23:44:04.211 x_log_error WARN ] X error 8 MATCH request 152 minor 22 serial 297109
[ 29.01.2023 23:44:04.211 x_log_error WARN ] X error 9 DRAWABLE request 156 minor 4 serial 297110
[ 29.01.2023 23:44:04.211 x_log_error WARN ] X error 161 GLX_BAD_PIXMAP request 152 minor 16 serial 0
[ 29.01.2023 23:48:50.794 x_log_error WARN ] X error 3 WINDOW request 2 minor 0 serial 414026
[ 29.01.2023 23:54:04.291 x_log_error WARN ] X error 161 GLX_BAD_PIXMAP request 152 minor 16 serial 0
[ 29.01.2023 23:54:04.292 x_log_error WARN ] X error 161 GLX_BAD_PIXMAP request 152 minor 23 serial 543374
[ 29.01.2023 23:54:04.292 x_log_error WARN ] X error 8 MATCH request 152 minor 22 serial 543377
[ 29.01.2023 23:54:04.292 x_log_error WARN ] X error 9 DRAWABLE request 156 minor 4 serial 543378
[ 29.01.2023 23:54:04.292 x_log_error WARN ] X error 161 GLX_BAD_PIXMAP request 152 minor 16 serial 0
[ 30.01.2023 00:04:04.247 x_log_error WARN ] X error 161 GLX_BAD_PIXMAP request 152 minor 16 serial 0
[ 30.01.2023 00:04:04.248 x_log_error WARN ] X error 161 GLX_BAD_PIXMAP request 152 minor 23 serial 743759
[ 30.01.2023 00:04:04.248 x_log_error WARN ] X error 8 MATCH request 152 minor 22 serial 743762
[ 30.01.2023 00:04:04.248 x_log_error WARN ] X error 9 DRAWABLE request 156 minor 4 serial 743763
[ 30.01.2023 00:04:04.248 x_log_error WARN ] X error 161 GLX_BAD_PIXMAP request 152 minor 16 serial 0

Is it related to:

Run-time dependency libev found: NO (tried pkgconfig and cmake)

???

@absolutelynothelix
Copy link
Collaborator

@Flashwalker,

Build and install goes well, but picom throws an error at start:

[ 29.01.2023 22:51:32.704 file_watch_init ERROR ] inotify_init1 failed: Too many open files

try increasing the limit of open files, there is an example.


But segfault on Ctrl+C exit

do a debug build of picom (meson setup --buildtype=debug build && ninja -C build), catch a segfault, get a backtrace of it (coredumpctl gdb and bt in the opened gdb) and post it here.


But X error warnings still exist

it's a known issue at least on xfce (it seems that you're running it from the #1012), the solution is being discussed in the #984. currently you can't do anything about it.


Is it related to:

Run-time dependency libev found: NO (tried pkgconfig and cmake)

???

no, it's okay to get this error while building.

@Flashwalker
Copy link

okay, thanks

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

4 participants