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

QGC-Gov fixes - std::filesystem support #30

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

stuart-auterion
Copy link
Contributor

I'll be PR'ing a few changes that we've made in a branch for use with QGC-Gov. We've been using these successfully for several months and had successful flight test events on this code, so I think we're good to get these merged in.

Add a timeout argument to TCPClient

Background -- QGC-Gov uses GStreamer for all our video processing. GStreamer on Android only supports up to NDK v21 (see here). Unfortunately, Android did not support std::filesystem until NDK v22 (see here). Which makes this wholly incompatible. 😢 I have added some defines and removed references to std::filesystem appropriately. Any other modern compiler should pass this check with ease and not have to worry about it. For QGC-Gov, we are able to use native file-handling libraries (wrapped by Qt) to read in the definitions file and pass to libmav using MessageSet::addFromXMLString().

Here, I have conditionally removed references to blocks of code containing std::filesystem.

@ThomasDebrunner ThomasDebrunner merged commit 9de550a into main Dec 4, 2023
2 checks passed
@ThomasDebrunner ThomasDebrunner deleted the qgcgov-fixes-std-filesystem branch December 4, 2023 08:51
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.

2 participants