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
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
It's documented here : https://github.com/SynoCommunity/spksrc/wiki/Developers-HOW-TO
- 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
- 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 folderexample:
/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
example
/home/userprofile/test-git/spksrc/packages/flac_armada375-6.1_1.3.2-0.spk
How to install the package in your device :
https://dayandnightcoding.blogspot.com/2020/04/testing-package-compiled-with-spksrc.html
https://dayandnightcoding.blogspot.com/2020/04/testing-package-compiled-with-spksrc.html
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:
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:
- path is /usr/local/flac/bin/ as stated in :
https://github.com/youpla/spksrc/blob/master/spk/flac/src/installer.sh - binaries
- flac
- metaflac