yvbbrjdr / i3lock-fancy-rapid

A faster implementation of i3lock-fancy.
BSD 3-Clause "New" or "Revised" License
149 stars 20 forks source link

The newest commit `80467db` does not work in Ubuntu 19.04? #7

Closed htr3n closed 5 years ago

htr3n commented 5 years ago

I cloned and compiled the newest commit 80467db of master of i3lock-fancy-rapid. There are some warnings. And the execution of ./i3lock-fancy-rapid 5 3 does not work but gets stuck (must use Ctrl+C to terminate).

$ cd i3lock-fancy-rapid
$ git log --oneline
80467db (HEAD -> master, origin/master, origin/dev, origin/HEAD) Merge pull request #6 from piluke/dev
...
...
$ make      
gcc -c -O3 -fopenmp -DLODEPNG_NO_COMPILE_DECODER -DLODEPNG_NO_COMPILE_DISK -DLODEPNG_NO_COMPILE_ANCILLARY_CHUNKS -DLODEPNG_NO_COMPILE_ERROR_TEXT -Wall -Wextra i3lock-fancy-rapid.c -o i3lock-fancy-rapid.o
i3lock-fancy-rapid.c: In function ‘main’:
i3lock-fancy-rapid.c:188:5: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result [-Wunused-result]
     pipe(fds);
     ^~~~~~~~~
i3lock-fancy-rapid.c:190:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
         write(fds[1], postblur, height * width * 3);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -c -O3 -fopenmp -DLODEPNG_NO_COMPILE_DECODER -DLODEPNG_NO_COMPILE_DISK -DLODEPNG_NO_COMPILE_ANCILLARY_CHUNKS -DLODEPNG_NO_COMPILE_ERROR_TEXT -Wall -Wextra -x c lodepng/lodepng.cpp -o lodepng.o
gcc i3lock-fancy-rapid.o lodepng.o -lX11 -fopenmp -o i3lock-fancy-rapid

$ ./i3lock-fancy-rapid 5 3
i3lock: unrecognized option '--raw'
i3lock: Syntax: i3lock [-v] [-n] [-b] [-d] [-c color] [-u] [-p win|default] [-i image.png] [-t] [-e] [-I timeout] [-f]
^C

System: Ubuntu 19.04/disco on Lenovo Thinkpad T440p.

$ uname -a
Linux ubuntu 5.0.0-25-generic #26-Ubuntu SMP Thu Aug 1 12:04:58 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 19.04
Release:    19.04
Codename:   disco
yvbbrjdr commented 5 years ago

Due to 7ff2596652b09c1bce7bfd118d04127a01d003a6 using the new --raw option, now this project requires i3lock-2.12 to work. Please try to update your i3lock to this version and try again! (I don't think they have packaged it for Ubuntu 19.04 so you might have to compile yourself.)

htr3n commented 5 years ago

@yvbbrjdr thanks, it works with i3lock 2.12. Should have been mentioned in the README ;) I will close the issue for now.