rpn/GENERATION.md

64 lines
1.2 KiB
Markdown
Raw Normal View History

2022-02-28 16:23:57 +01:00
# Generation
2017-06-12 19:32:26 +02:00
2022-02-28 16:23:57 +01:00
rpn is proposed for **GNU/Linux**.
2017-06-12 19:32:26 +02:00
2022-02-28 16:23:57 +01:00
It can be generated following the steps below.
2017-06-12 19:32:26 +02:00
2022-02-28 16:23:57 +01:00
## Version identification
2017-06-12 19:32:26 +02:00
2022-02-28 16:23:57 +01:00
rpn is dynamically linked against GNU MP and GNU MPFR.
2017-06-12 19:32:26 +02:00
2022-02-28 16:23:57 +01:00
and embeds the source code of linenoise-ng and as a submodule
2017-06-12 19:32:26 +02:00
2018-07-28 13:13:57 +02:00
It is necessary to get MPFR to generate rpn
2017-06-12 19:32:26 +02:00
2022-02-28 16:23:57 +01:00
## Install GNU MPFR headers
ubuntu 20.04
git libmpfr6 cmake
2017-06-12 19:32:26 +02:00
2018-07-28 13:13:57 +02:00
- download **GNU MPFR** from http://www.mpfr.org
- install it with usual autotools commands `./configure && make && make install`
2017-06-12 19:32:26 +02:00
2022-02-28 16:23:57 +01:00
## Generate rpn
2017-06-12 19:32:26 +02:00
2017-06-12 19:35:08 +02:00
- clone [rpn project](https://github.com/louisrubet/rpn/) or download a zipped version from [the release directory](https://github.com/louisrubet/rpn/releases)
2022-02-28 16:23:57 +01:00
```shell
git clone https://github.com/louisrubet/rpn.git
```
2017-06-12 19:32:26 +02:00
- make
2022-02-28 16:23:57 +01:00
CMake must be installed on the generation machine
```shell
cd rpn/
mkdir build
cd build && cmake .. && make
```
2017-06-12 19:32:26 +02:00
2017-06-12 21:59:10 +02:00
- install
2022-02-28 16:23:57 +01:00
```
cd rpn/build
sudo make install
```
2017-06-12 21:59:10 +02:00
- packages
2017-06-19 21:43:26 +02:00
To build RPM package you should install CMake 2.6.0 or higher
2022-02-28 16:23:57 +01:00
```shell
cd rpn/build
sudo make package
[100%] Built target rpn
Run CPack packaging tool...
CPack: Create package using DEB
(...)
CPack: Create package using RPM
(...)
CPack: Create package using TGZ
(...)
```