inclement / vivarium

A dynamic tiling Wayland compositor using wlroots
GNU General Public License v3.0
374 stars 13 forks source link

compile errors Arch #44

Closed hitime77 closed 3 years ago

hitime77 commented 3 years ago

Hello,

interested in the project and have been trying to get a good install but haven't had much luck.

Currently on the ninja -C build

✔≻ ninja -C build ninja: Entering directory `build' [262/365] Compiling C object subprojects/wlroots-0.12.0/examples/dmabuf-capture.p/dmabuf-capture.c.o FAILED: subprojects/wlroots-0.12.0/examples/dmabuf-capture.p/dmabuf-capture.c.o cc -Isubprojects/wlroots-0.12.0/examples/dmabuf-capture.p -Isubprojects/wlroots-0.12.0/examples -I../subprojects/wlroots-0.12.0/examples -Isubprojects/wlroots-0.12.0/protocol -I/usr/include/libdrm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -g -DWLR_USE_UNSTABLE -Wundef -Wlogical-op -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough=2 -Wendif-labels -Wstrict-aliasing=2 -Woverflow -Wmissing-prototypes -Wno-missing-braces -Wno-missing-field-initializers -Wno-unused-parameter -fmacro-prefix-map=../subprojects/wlroots-0.12.0/= -DLIBINPUT_MAJOR=1 -DLIBINPUT_MINOR=17 -DLIBINPUT_PATCH=2 '-DICONDIR="/usr/local/share/icons"' -pthread -MD -MQ subprojects/wlroots-0.12.0/examples/dmabuf-capture.p/dmabuf-capture.c.o -MF subprojects/wlroots-0.12.0/examples/dmabuf-capture.p/dmabuf-capture.c.o.d -o subprojects/wlroots-0.12.0/examples/dmabuf-capture.p/dmabuf-capture.c.o -c ../subprojects/wlroots-0.12.0/examples/dmabuf-capture.c ../subprojects/wlroots-0.12.0/examples/dmabuf-capture.c: In function ‘vid_encode_thread’: ../subprojects/wlroots-0.12.0/examples/dmabuf-capture.c:494:4: error: ‘av_init_packet’ is deprecated [-Werror=deprecated-declarations] 494 | av_init_packet(&pkt); | ^~~~~~ In file included from /usr/include/libavcodec/bsf.h:30, from /usr/include/libavcodec/avcodec.h:44, from /usr/include/libavformat/avformat.h:312, from ../subprojects/wlroots-0.12.0/examples/dmabuf-capture.c:2: /usr/include/libavcodec/packet.h:488:6: note: declared here 488 | void av_init_packet(AVPacket *pkt); | ^~~~~~ cc1: all warnings being treated as errors [267/365] Linking target subprojects/wlroots-0.12.0/libwlroots.so.7 ninja: build stopped: subcommand failed.

Now before this started coming up I was able to compile and started a config but the executable now returns: vivarium: error while loading shared libraries: libwlroots.so.7: cannot open shared object file: No such file or directory

I just cloned the sourced and tried to build, prior directory I just removed prior.

I know AUR is still not functioning due to wlroots, any suggestions?

Thanks....

hitime

inclement commented 3 years ago

Thanks for the report, I've just merged #45 which should solve the problem.

The issue was that one of the wlroots 0.12.0 examples uses the deprecated function from the error, but fortunately wlroots itself does not so skipping building the examples seems to work fine. I've tested that vivarium does run fine in this case.

Now before this started coming up I was able to compile and started a config but the executable now returns: vivarium: error while loading shared libraries: libwlroots.so.7: cannot open shared object file: No such file or directory

This is probably because it was compiled against the arch-provided wlroots before, which was probably libwlroots.so.7 but is now libwlroots.so.8 (and is version 0.13.0).