mirror of
https://github.com/yshui/picom.git
synced 2024-11-25 14:06:08 -05:00
README: mentions how to specify header/library path
Closes #155 Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
cb6158cb00
commit
a1cc275123
1 changed files with 13 additions and 5 deletions
18
README.md
18
README.md
|
@ -54,14 +54,22 @@ $ meson --buildtype=release . build
|
||||||
$ ninja -C build
|
$ ninja -C build
|
||||||
```
|
```
|
||||||
|
|
||||||
On FreeBSD, `ld` does not look by default in /usr/local/lib, and you will get errors about some libraries being not found.
|
Built binary can be found in `build/src`
|
||||||
To fix that, prepend `LDFLAGS="-L/usr/local/lib"`:
|
|
||||||
|
If you have libraries and/or headers installed at non-default location (e.g. under `/usr/local/`), you might need to tell meson about them, since meson doesn't look for dependencies there by default.
|
||||||
|
|
||||||
|
You can do that by setting the `CPPFLAGS` and `LDFLAGS` environment variables when running `meson`. Like this:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ LDFLAGS="-L/usr/local/lib" meson --buildtype=release . build
|
$ LDFLAGS="-L/path/to/libraries" CPPFLAGS="-I/path/to/headers" meson --buildtype=release . build
|
||||||
$ ninja -C build
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Built binary can be found in `build/src`
|
As an example, on FreeBSD, you might have to run meson with:
|
||||||
|
```bash
|
||||||
|
$ LDFLAGS="-L/usr/local/include" CPPFLAGS="-I/usr/local/include" meson --buildtype=release . build
|
||||||
|
$ ninja -C build
|
||||||
|
```
|
||||||
|
|
||||||
### To install
|
### To install
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue