Skip to content

Commit e609e6d

Browse files
benwkimthomas-roos
andauthored
Update CMakeLists.txt (#997)
* Update CMakeLists.txt when building shared the kvs_gstreamer_sample.cpp example fails LINKING fix #930 * Additional CI Build --------- Co-authored-by: tro <[email protected]>
1 parent 70b3d6c commit e609e6d

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,3 +389,19 @@ jobs:
389389
mkdir build && cd build
390390
cmake .. -DBUILD_GSTREAMER_PLUGIN=ON -DBUILD_STATIC=ON
391391
make
392+
393+
linux-build-gcc-shared:
394+
runs-on: ubuntu-20.04
395+
steps:
396+
- name: Clone repository
397+
uses: actions/checkout@v3
398+
- name: Install dependencies
399+
run: |
400+
sudo apt clean && sudo apt update
401+
sudo apt install -y libunwind-dev
402+
sudo apt-get install libssl-dev libcurl4-openssl-dev liblog4cplus-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-plugins-base-apps gstreamer1.0-plugins-bad gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-tools
403+
- name: Build repository
404+
run: |
405+
mkdir build && cd build
406+
cmake .. -DBUILD_DEPENDENCIES=OFF -DBUILD_GSTREAMER_PLUGIN=ON -DBUILD_STATIC=OFF -DBUILD_SHARED_LIBS=ON
407+
make

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ if(BUILD_GSTREAMER_PLUGIN)
217217
target_link_libraries(kvssink_gstreamer_sample ${GST_APP_LIBRARIES} KinesisVideoProducer)
218218

219219
add_executable(kvs_gstreamer_sample samples/kvs_gstreamer_sample.cpp)
220-
target_link_libraries(kvs_gstreamer_sample ${GST_APP_LIBRARIES} KinesisVideoProducer)
220+
target_link_libraries(kvs_gstreamer_sample ${GST_APP_LIBRARIES} KinesisVideoProducer kvspic)
221221

222222
add_executable(kvs_gstreamer_multistream_sample samples/kvs_gstreamer_multistream_sample.cpp)
223223
target_link_libraries(kvs_gstreamer_multistream_sample ${GST_APP_LIBRARIES} KinesisVideoProducer)

0 commit comments

Comments
 (0)