matanui159 / ReplaySorcery

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

Issue with cmake #110

Closed Ultracrepadarian closed 3 years ago

Ultracrepadarian commented 3 years ago

Im trying to follow the installation process, and can't seem to get cmake to work. I ran the command specified, and this error pops up.

alec@alexandermint:~/Documents/Programs/ReplaySorcery$ cmake -B bin -DCMAKE_BUILD_TYPE=Release
-- Checking for modules 'libavutil;libavformat;libavdevice;libavcodec;libavfilter'
--   No package 'libavutil' found
--   No package 'libavformat' found
--   No package 'libavdevice' found
--   No package 'libavcodec' found
--   No package 'libavfilter' found
CMake Error at /usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:463 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:643 (_pkg_check_modules_internal)
  CMakeLists.txt:109 (pkg_check_modules)

-- Configuring incomplete, errors occurred!
See also "/home/alec/Documents/Programs/ReplaySorcery/bin/CMakeFiles/CMakeOutput.log"

New to Linux, so it's probably missing something obvious. Any help would be appreciated!!

matanui159 commented 3 years ago

You need to install the FFmpeg development libraries, on Ubuntu you can run:

sudo apt-get install libavutil-dev libavformat-dev libavdevice-dev libavcodec-dev libavfilter-dev
peepo5 commented 3 years ago

Please put this in the readme

144reasons commented 3 years ago

Yeah, would be useful to have this in the readme. literally had to dig for this in unknown stack overflow pages

matanui159 commented 3 years ago

From the readme:

image

Each distro is different with how to install those development libraries.

peepo5 commented 3 years ago

it does not say ffmpeg development libraries

matanui159 commented 3 years ago

I thought that would be quite implicit. If you are building something you need the development libraries for all the dependencies.