matanui159 / ReplaySorcery

An open-source, instant-replay solution for Linux
GNU General Public License v3.0
854 stars 27 forks source link

Fails to build on linux #155

Closed lukassup closed 2 years ago

lukassup commented 2 years ago

Fails to build on linux

Desktop:

[ 79%] Building C object CMakeFiles/replay-sorcery.dir/src/device/svkmsdev.c.o
/home/lukas/.cache/yay/replay-sorcery/src/replay-sorcery/src/audio/pulsedev.c: In function ‘rsPulseDeviceCreate’:
/home/lukas/.cache/yay/replay-sorcery/src/replay-sorcery/src/audio/pulsedev.c:315:37: error: ‘AV_CH_LAYOUT_MONO’ undeclared (first use in this function)
  315 |    device->params->channel_layout = AV_CH_LAYOUT_MONO;
      |                                     ^~~~~~~~~~~~~~~~~
/home/lukas/.cache/yay/replay-sorcery/src/replay-sorcery/src/audio/pulsedev.c:315:37: note: each undeclared identifier is reported only once for each function it appears in
[ 81%] Building C object CMakeFiles/replay-sorcery.dir/src/device/x11dev.c.o
make[2]: *** [CMakeFiles/replay-sorcery.dir/build.make:286: CMakeFiles/replay-sorcery.dir/src/audio/pulsedev.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/lukas/.cache/yay/replay-sorcery/src/replay-sorcery/src/device/ffdev.c: In function ‘rsFFmpegDeviceCreate’:
/home/lukas/.cache/yay/replay-sorcery/src/replay-sorcery/src/device/ffdev.c:110:19: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  110 |    ffmpeg->format = av_find_input_format(name);
      |                   ^
/home/lukas/.cache/yay/replay-sorcery/src/replay-sorcery/src/device/ffdev.c: In function ‘rsFFmpegDeviceOpen’:
/home/lukas/.cache/yay/replay-sorcery/src/replay-sorcery/src/device/ffdev.c:160:21: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  160 |    AVCodec *codec = avcodec_find_decoder(params->codec_id);
      |                     ^~~~~~~~~~~~~~~~~~~~
make[1]: *** [CMakeFiles/Makefile2:86: CMakeFiles/replay-sorcery.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
lukassup commented 2 years ago

FFmpeg version:

% ffmpeg 
ffmpeg version n5.0 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 11.2.0 (GCC)
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librav1e --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-nvdec --enable-nvenc --enable-shared --enable-version3
  libavutil      57. 17.100 / 57. 17.100
  libavcodec     59. 18.100 / 59. 18.100
  libavformat    59. 16.100 / 59. 16.100
  libavdevice    59.  4.100 / 59.  4.100
  libavfilter     8. 24.100 /  8. 24.100
  libswscale      6.  4.100 /  6.  4.100
  libswresample   4.  3.100 /  4.  3.100
  libpostproc    56.  3.100 / 56.  3.100

PipeWire / PulseAudio:

% paplay --version
pacat 15.0
Compiled with libpulse 15.0.0
Linked with libpulse 15.0.0
% pipewire-pulse --version
pipewire-pulse
Compiled with libpipewire 0.3.49
Linked with libpipewire 0.3.49
caecilliusinhorto commented 2 years ago

What version is your cmake?

lukassup commented 2 years ago
% cmake --version
cmake version 3.23.0
% g++ --version
g++ (GCC) 11.2.0
<...>
matanui159 commented 2 years ago

143