@@ -35,18 +35,33 @@ optional dependencies:
35
35
2 ) Build SCAP Workbench:
36
36
``` console
37
37
$ 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/"
41
38
$ cmake ../
42
39
$ make
43
40
```
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
+ ```
44
57
45
58
3 ) Install SCAP Workbench: (optional)
46
59
47
60
(inside the build folder):
48
61
``` console
49
- # make install
62
+ $ # may require superuser privileges if you didn't set different installation
63
+ $ # prefix (CMAKE_INSTALL_PREFIX)
64
+ $ make install
50
65
```
51
66
52
67
4a) Run SCAP Workbench: (if it was installed)
@@ -68,6 +83,18 @@ $ scap-workbench /path/to/sds-file
68
83
69
84
4b) Run SCAP Workbench: (straight from build dir, without installation)
70
85
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
+
71
98
``` console
72
99
$ cd build/
73
100
$ bash runwrapper.sh ./scap-workbench
0 commit comments