Compiling iconv with spksrc for synology NAS
Read the disclaimer
This article describes how to compile iconv for synology devices, package it and install it.
You can get iconv sources at:
The package described in this guide will download the content from that repository.
What is iconv:
International text is mostly encoded in Unicode, sometimes a language or country dependent character encoding is still used. GNU libiconv is an encoding conversion library.
The original spksrc repository already contains a libiconv package, it only compiles the binaries :
https://github.com/SynoCommunity/spksrc/tree/master/cross/libiconv
This package fills the gap and provides the command line utilitie from the shell: iconv
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 to iconv.
This article describes how to compile iconv for synology devices, package it and install it.
You can get iconv sources at:
The package described in this guide will download the content from that repository.
What is iconv:
International text is mostly encoded in Unicode, sometimes a language or country dependent character encoding is still used. GNU libiconv is an encoding conversion library.
The original spksrc repository already contains a libiconv package, it only compiles the binaries :
https://github.com/SynoCommunity/spksrc/tree/master/cross/libiconv
This package fills the gap and provides the command line utilitie from the shell: iconv
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 to iconv.
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 iconv package for your architecture
in a terminal navigate to the libiconv folder- example:
- /home/userprofile/test-git/spksrc/spk/libiconv
- make arch-armada375
Install the package
Go to the file explorer and find the generated file.
example
/home/userprofile/test-git/spksrc/packages/libiconv_armada375-6.1_1.15-1.spk
example
/home/userprofile/test-git/spksrc/packages/libiconv_armada375-6.1_1.15-1.spk
How to install the package to 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 libiconv has been tested for install and uninstall on my DS-115 with no noticed problem.
https://dayandnightcoding.blogspot.com/2020/04/testing-package-compiled-with-spksrc.html
The package libiconv has been tested for install and uninstall on my DS-115 with no noticed problem.