Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake: Improve GStreamer Inclusion #11806

Merged
merged 1 commit into from
Sep 15, 2024

Conversation

HTRamsey
Copy link
Collaborator

Significantly better method of handling GStreamer in CMake

@HTRamsey HTRamsey force-pushed the dev-cmake-gstreamer branch 10 times, most recently from 103e8d8 to 9db942b Compare August 28, 2024 09:14
@HTRamsey HTRamsey requested a review from DonLakeFlyer August 28, 2024 16:02
@HTRamsey HTRamsey force-pushed the dev-cmake-gstreamer branch 15 times, most recently from 8686864 to e297efc Compare September 1, 2024 00:41
@HTRamsey HTRamsey force-pushed the dev-cmake-gstreamer branch 3 times, most recently from 455a835 to d0deb87 Compare September 4, 2024 18:42
@doquangquan93
Copy link

That's great. I tried it out. It works perfectly

@HTRamsey HTRamsey force-pushed the dev-cmake-gstreamer branch from c370e37 to 517f18c Compare September 5, 2024 04:13
@@ -15,6 +7,16 @@ qt_add_library(VideoManager STATIC
VideoManager.h
)

# option(QGC_ENABLE_VIDEOSTREAMING "Enable video streaming" ON)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why leave in commented out?

qgcputenv("GST_PLUGIN_SYSTEM_PATH", "/usr/lib/x86_64-linux-gnu", "/gstreamer-1.0");
qgcputenv("GST_PLUGIN_PATH_1_0", currentDir, "../lib");
qgcputenv("GST_PLUGIN_PATH", currentDir, "../lib");
// const QString currentDir = QCoreApplication::applicationDirPath();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why leave in commented out?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was still messing with those when I had time. I'm having a hard time getting it perfect for all systems

target_compile_definitions(GStreamerReceiver PUBLIC QGC_GST_STREAMING)
if(CMAKE_BUILD_TYPE STREQUAL "Release")
if(MACOS AND CMAKE_BUILD_TYPE STREQUAL "Release")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How come Mac only?

@HTRamsey HTRamsey force-pushed the dev-cmake-gstreamer branch 10 times, most recently from 95d0178 to 3d44849 Compare September 8, 2024 15:24
@HTRamsey HTRamsey force-pushed the dev-cmake-gstreamer branch 12 times, most recently from c04e92d to eed6a8c Compare September 15, 2024 15:38
@HTRamsey HTRamsey merged commit 8ea10ee into mavlink:master Sep 15, 2024
8 checks passed
@HTRamsey HTRamsey deleted the dev-cmake-gstreamer branch September 15, 2024 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants