Compiling flac with spksrc for synology NAS


Read the disclaimer

This article describes how to compile flac for synology devices, package it and install it.

You can get the flac sources at http://flac.sourceforge.net/
The package described in this guide is will download the content from that repository.

Flac is a set of tools enabling lossless audio compression.

The original spksrc already contains a flac package, that only compiles the binaries :
https://github.com/SynoCommunity/spksrc/tree/master/cross/flac
This package fills the gap and provides the command line utilities from the shell:
  • flac
  • metaflac
This guide is the same that
https://dayandnightcoding.blogspot.com/2020/04/compiling-cpulimit-with-spksrc-for.html
You can follow the different steps there.
I'll document only the steps referring specifically flac .

Clone the repository and make setup

  • on the ubuntu host
  • start a terminal
  • choose a folder for the git clone root
  • git clone https://github.com/youpla/spksrc.git
  • cd spksrc/
  • make setup

Compile the flac package for your architecture

in a terminal navigate to the flac folder

example:
/home/userprofile/test-git/spksrc/spk/flac

make arch-armada375

Install the package

Go to the file explorer and find the generated file.

example
/home/userprofile/test-git/spksrc/packages/flac_armada375-6.1_1.3.2-0.spk

Testing

See :
https://dayandnightcoding.blogspot.com/2020/04/testing-package-compiled-with-spksrc.html

The package flac has been tested for install and uninstall on my DS-115 with no noticed problem. The blog  disclaimer still applies.

With ssh we can check the following:


Popular posts from this blog

cuesplitflac : a mass flac splitting script for synology and ubuntu

Compiling "file" with spksrc for synology NAS

Compiling cpulimit with spksrc for synology NAS