Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Commit 3b40210

Browse files
authored
Merge pull request #217 from ggbecker/improve-build-documentation
Improve custom build documentation.
2 parents db8061f + b637ffd commit 3b40210

File tree

1 file changed

+31
-4
lines changed

1 file changed

+31
-4
lines changed

README.md

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,33 @@ optional dependencies:
3535
2) Build SCAP Workbench:
3636
```console
3737
$ mkdir build; cd build
38-
$ # This export line is only required if openscap was compiled locally;
39-
$ # add to PKG_CONFIG_PATH the directory containing installed libopenscap.pc
40-
$ export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/PATH/TO/DIR/WITH/.pcFILE/"
4138
$ cmake ../
4239
$ make
4340
```
41+
To build against locally built OpenSCAP library export following variables:
42+
43+
```console
44+
$ export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/PATH/TO/DIR/WITH/.pcFILE/"
45+
$ export LIBRARY_PATH=/PATH/TO/DIR/WITH/openscap.soFILE/
46+
```
47+
48+
Additionally it is possible to use custom CMake definitions instead of exporting environment variables:
49+
50+
```console
51+
$ cmake -DOPENSCAP_LIBRARIES:PATH=/local/openscap.so/filepath/ \
52+
-DOPENSCAP_INCLUDE_DIRS:PATH=/local/openscap/include/path \
53+
-DOPENSCAP_VERSION:STRING="X.Y.Z" \
54+
../
55+
$ make
56+
```
4457

4558
3) Install SCAP Workbench: (optional)
4659

4760
(inside the build folder):
4861
```console
49-
# make install
62+
$ # may require superuser privileges if you didn't set different installation
63+
$ # prefix (CMAKE_INSTALL_PREFIX)
64+
$ make install
5065
```
5166

5267
4a) Run SCAP Workbench: (if it was installed)
@@ -68,6 +83,18 @@ $ scap-workbench /path/to/sds-file
6883

6984
4b) Run SCAP Workbench: (straight from build dir, without installation)
7085

86+
Note: If you have built SCAP-Workbench against locally built OpenSCAP library, then run one of the following commands:
87+
88+
```console
89+
$ ldconfig /PATH/TO/DIR/WITH/openscap.soFILE/
90+
```
91+
or
92+
```console
93+
$ export LD_LIBRARY_PATH=/PATH/TO/DIR/WITH/openscap.soFILE/
94+
```
95+
96+
and then:
97+
7198
```console
7299
$ cd build/
73100
$ bash runwrapper.sh ./scap-workbench

0 commit comments

Comments
 (0)