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

Add option to build without cURL #1955

Merged
merged 1 commit into from
Dec 17, 2023
Merged

Add option to build without cURL #1955

merged 1 commit into from
Dec 17, 2023

Conversation

julianoes
Copy link
Collaborator

@julianoes julianoes commented Jan 11, 2023

This adds the cmake configure option BUILD_WITHOUT_CURL which allows building MAVSDK without the cURL dependency.

This has been requested numerous times, so it's probably worthwhile adding as an option.

For now it means that camera definition files can't be downloaded via http.

In the future we will also add the option to download the definition files via MAVLink FTP.

Closes #830.

JonasVautherin
JonasVautherin previously approved these changes Jan 11, 2023
Copy link
Collaborator

@JonasVautherin JonasVautherin left a comment

Choose a reason for hiding this comment

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

Ok 👍.

Out of curiosity, why is that required? To have fewer dependencies? Also if curl is not built, is zlib required?

@julianoes
Copy link
Collaborator Author

julianoes commented Jan 12, 2023

To have fewer dependencies?

Yes, sometimes it's just annoying or difficult to get the dependencies, apparently. I have been asked for this numerous times.

Also if curl is not built, is zlib required?

Good point. I don't know where zlib is even required?

@JonasVautherin
Copy link
Collaborator

Good point. I don't know where zlib is even required?

At least Protobuf, I would say. And otherwise I would say curl (for e.g. compressed HTTP responses) 🤔.

This adds the cmake configure option BUILD_WITHOUT_CURL which allows
building MAVSDK without the cURL dependency.

This has been requested numerous times, so it's probably worthwhile
adding as an option.

For now it means that camera definition files can't be downloaded via
http.

In the future we will also add the option to download the definition
files via MAVLink FTP.

Signed-off-by: Julian Oes <julian@oes.ch>
@julianoes julianoes merged commit 6bc7d69 into main Dec 17, 2023
27 checks passed
@julianoes julianoes deleted the pr-without-curl-builds branch December 17, 2023 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option to build without curl
2 participants