include usage instructions for local install

This commit is contained in:
Michael B 2023-01-06 09:54:56 +01:00 committed by GitHub
parent 77a55386ff
commit 0f88d2222a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,11 +67,21 @@ Install first the other dependencies and clone coz and libelfin, then:
COZ=$HOME/path/to/coz
LIBELFIN=$HOME/path/to/libeflin
cd $LIBELFIN && make
export PKG_CONFIG_PATH=$LIBELFIN/elf:$LIBELFIN/dwarf
export PKG_CONFIG_PATH=$LIBELFIN/elf:$LIBELFIN/dwarf
export C_INCLUDE_PATH=$LIBELFIN/../
export CPLUS_INCLUDE_PATH=$LIBELFIN/../
cd $COZ && cmake . && make
```
This creates a local ./coz executable that can be run from the $COZ directory
This creates a local ./coz executable that can be run from the $COZ directory.
To compile and run C/C++ programs containing the coz.h header and COZ_xxx macros, you should position:
```shell
export CPLUS_INCLUDE_PATH=$COZ/include
export C_INCLUDE_PATH=$COZ/include
export LD_LIBRARY_PATH=$LIBELFIN/elf:$LIBELFIN/dwarf
```
</details>