Skip to content

Conversation

OldManYellsAtCloud
Copy link
Contributor

@OldManYellsAtCloud OldManYellsAtCloud commented Sep 13, 2025

When compiling with gcc15, compiliation fails with the following error:

| In file included from ../sources/libcamera-apps-1.9.0/post_processing_stages/segmentation_tf_stage.cpp:8: | ../sources/libcamera-apps-1.9.0/post_processing_stages/segmentation.hpp:15:82: error: 'uint8_t' was not declared in this scope
|    15 |         Segmentation(int w, int h, std::vector<std::string> l, const std::vector<uint8_t> &s)

To avoid it, add the cstdint header to the offending file.

@naushir
Copy link
Collaborator

naushir commented Sep 16, 2025

Change looks fine, but would you be able to reword the commit message to fit with our guidelines? A git log should show you what is needed.

When compiling with gcc15, compiliation fails due to undeclared
uint8_t type, it requires <cstdint> header to be present.

This change adds this missing header.

Signed-off-by: Gyorgy Sarvari <[email protected]>
@OldManYellsAtCloud
Copy link
Contributor Author

👍
Does this version look better?

@naushir
Copy link
Collaborator

naushir commented Sep 16, 2025

Thank you - that looks good!

@naushir naushir merged commit 2cb76c3 into raspberrypi:main Sep 16, 2025
9 of 10 checks passed
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