r/SteamPlay•
Robmart

Need help compiling FAudio (with FFmpeg)

Solved

​

So compiling FAudio should just be a super easy, five-minute experience. Apparently not for me.

​

Here's what I did (running Ubuntu 18.04)

  • Cloned the FAudio github repo
  • Created a folder called build
  • Installed CMake, SDL2 (libsdl2-2.0-0), and FFmpeg from the package repository as they are not included with the OS
  • Ran cmake .. -DXNASONG=OFF -DFFMPEG=ON from the build folder

Unfortunately this resulted in this error (along with this log.)

​

Trying to compile without FFmpeg results in this error (along with this log.)

​

So basically CMake can find neither SDL2 nor FFmpeg and I have no idea why. I've been going crazy over the last few hours trying to find a solution but neither google nor my crazed flailing have improved the situation.

​

Edit: SDL2 troubles were solved by installing libsdl2-dev instead of libsdl2-2.0-0

Edit2: Formatting

Posted Jan 5, 2019, 7:19 AM UTC · edited

112
Fureloka•

You probably need the packages libavcodec-dev, libavutil-dev and libswresample-dev

5
RobmartOP•

That did it, thank you :)

3