migrate install info to readme and improve it
This commit is contained in:
parent
5931ec30ad
commit
f3eafc9ae6
59
INSTALL
59
INSTALL
|
@ -1,59 +0,0 @@
|
||||||
** COMPILING and INSTALLING **
|
|
||||||
------------------------------
|
|
||||||
|
|
||||||
Meson is the build system used for this project. For more information please
|
|
||||||
see:
|
|
||||||
|
|
||||||
http://mesonbuild.com
|
|
||||||
|
|
||||||
----
|
|
||||||
|
|
||||||
Normal compilation in /usr/local:
|
|
||||||
|
|
||||||
meson . build
|
|
||||||
ninja -C build
|
|
||||||
sudo ninja -C build install
|
|
||||||
|
|
||||||
For meson build generic options:
|
|
||||||
|
|
||||||
meson --help
|
|
||||||
|
|
||||||
For a list of project specific options supported:
|
|
||||||
|
|
||||||
cat meson_options.txt
|
|
||||||
|
|
||||||
To set 1 or more project specific options:
|
|
||||||
|
|
||||||
meson --prefix=/path/to -Doption=value [-Dother=value2] [...] . build
|
|
||||||
|
|
||||||
To display current configuration:
|
|
||||||
|
|
||||||
meson configure build
|
|
||||||
|
|
||||||
The above will only work after at least the following is done:
|
|
||||||
|
|
||||||
meson . build
|
|
||||||
|
|
||||||
** QUICK AND DIRTY HELP **
|
|
||||||
--------------------------
|
|
||||||
|
|
||||||
How clean out the build and config and start fresh:
|
|
||||||
|
|
||||||
rm -rf build
|
|
||||||
|
|
||||||
How to make a dist tarball and check its build:
|
|
||||||
(must do it from git tree clone and commit all changes to git first)
|
|
||||||
|
|
||||||
ninja -C build dist
|
|
||||||
|
|
||||||
How to change prefix:
|
|
||||||
|
|
||||||
meson --prefix=/path/to/prefix . build
|
|
||||||
|
|
||||||
How to install in a specific destination directory for packaging:
|
|
||||||
|
|
||||||
DESTDIR=/path/to/destdir ninja -C build install
|
|
||||||
|
|
||||||
How to build with verbose output (full commands run):
|
|
||||||
|
|
||||||
ninja -C build -v
|
|
31
README.md
31
README.md
|
@ -136,7 +136,7 @@ It's fully key controlled too. Key controls are:
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
* efl
|
* (efl)[https://git.enlightenment.org/enlightenment/efl]
|
||||||
|
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
@ -145,6 +145,34 @@ It's fully key controlled too. Key controls are:
|
||||||
Meson is the build system used for this project. For more information
|
Meson is the build system used for this project. For more information
|
||||||
please see [medonbuild.com](https://mesonbuild.com)
|
please see [medonbuild.com](https://mesonbuild.com)
|
||||||
|
|
||||||
|
You will need normal build tooling installed such as a compiler (gcc
|
||||||
|
or clang for example), pkg-config, ninja, any relevant pakcage-dev or
|
||||||
|
package-devel packages if your distribution splits out development
|
||||||
|
headers etc.
|
||||||
|
|
||||||
|
Depending on where dependencies (like efl), you might have to set your
|
||||||
|
`PKG_CONFIG_PATH` environment variable like:
|
||||||
|
```
|
||||||
|
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
|
||||||
|
```
|
||||||
|
|
||||||
|
Also note that some distributions like to add extra arch directories
|
||||||
|
to your library locations so you might have to have more like:
|
||||||
|
```
|
||||||
|
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig:/usr/local/lib/x86_64-linux-gnu/pkgconfig:/usr/lib/pkgconfig:/usr/lib64/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig
|
||||||
|
```
|
||||||
|
|
||||||
|
You will need to enusre that the destination library direcytory (e.g.
|
||||||
|
`/usr/local/lib` is in your /etc/ld.so.conf or /etc/ld.so.conf.d/
|
||||||
|
files and after insgtaling anything that installes libraries you
|
||||||
|
re-run `ldconfig`.
|
||||||
|
|
||||||
|
You might also want to add the destination bin dir to your environment
|
||||||
|
variable PATH like:
|
||||||
|
```
|
||||||
|
export PATH=/usr/local/bin:/usr/bin:/bin
|
||||||
|
```
|
||||||
|
|
||||||
Normal compilation in /usr/local:
|
Normal compilation in /usr/local:
|
||||||
```
|
```
|
||||||
meson . build
|
meson . build
|
||||||
|
@ -168,7 +196,6 @@ meson --prefix=/path/to -Doption=value [-Dother=value2] [...] . build
|
||||||
```
|
```
|
||||||
|
|
||||||
To display current configuration:
|
To display current configuration:
|
||||||
|
|
||||||
```
|
```
|
||||||
meson configure build
|
meson configure build
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue