You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: If you miss running git clone with --recursive, run `git submodule update --init` in the amazon-kinesis-video-streams-producer-sdk-cpp/open-source directory
37
-
You will also need to install `pkg-config` and `CMake` and a build enviroment. If you are build the GStreamer plugin you will also need to install it locally.
37
+
You will also need to install `pkg-config` and `CMake` and a build enviroment. If you are building the GStreamer plugin you will also need GStreamer and GStreamer (Development Libraries).
38
38
39
39
Refer to the [FAQ](#FAQ) for platform specific instructions.
40
40
@@ -43,6 +43,8 @@ Create a build directory in the newly checked out repository, and execute CMake
43
43
44
44
`mkdir -p amazon-kinesis-video-streams-producer-sdk-cpp/build; cd amazon-kinesis-video-streams-producer-sdk-cpp/build; cmake .. `
45
45
46
+
If you are building on Windows you need to generate `NMake Makefiles`, you should run `cmake .. -G "NMake Makefiles"`
47
+
46
48
GStreamer and JNI is NOT built by default, if you wish to build both you MUST execute `cmake .. -DBUILD_GSTREAMER_PLUGIN=ON -DBUILD_JNI=TRUE`
47
49
48
50
By default we download all the libraries from GitHub and build them locally, so should require nothing to be installed ahead of time.
@@ -74,16 +76,28 @@ To build the library run make in the build directory you executed CMake.
74
76
make
75
77
```
76
78
79
+
On Windows you should run `nmake` instead of `make`
80
+
77
81
In your build directory you will now have shared objects for all the targets you have selected
78
82
79
83
## Run
80
84
### GStreamer Plugin (kvssink)
81
85
82
86
#### Loading Element
83
-
The GStreamer plugin will be in your `build` directory, to load this plugin it will need to be in your `GST_PLUGIN_PATH`. Do this you can run
87
+
The GStreamer plugin is located in your `build` directory.
88
+
89
+
To load this plugin set the following environment variables. This should be run from the root of the repo, NOT the `build` directory.
optionally, set `AWS_SESSION_TOKEN` if integrating with temporary token and `AWS_DEFAULT_REGION` for the region other than `us-west-2`
10
10
11
-
----
12
-
##### Setting the environment variables for library path
13
-
* Export the **LD_LIBRARY_PATH**=`<full path to your sdk cpp directory`>/open-source/local/lib. For example, if you have downloaded the CPP SDK in `/opt/awssdk` directory then you can set
Run the `gst-device-monitor-1.0` command to identify available media devices in your system. An example output as follows:
25
13
```
@@ -203,16 +191,7 @@ The addFileLoggerPlatformCallbacksProvider API takes five parameters.
203
191
#### Troubleshooting:
204
192
205
193
##### Library not found error when running the sample application
206
-
If any error similar to the following shows that the library path is not properly set:
207
-
```
208
-
liblog4cplus-1.2.so.5: cannot open shared object file: No such file or directory
209
-
```
210
-
To resolve this issue, export the LD_LIBRARY_PATH=`<full path to your sdk cpp directory`>/open-source/local/lib. If you have downloaded the CPP SDK in `/opt/awssdk` directory then you can set
0 commit comments