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

Issue building the shared generix library on Ubuntu 24.04 #346

Closed
jashangills opened this issue Jun 12, 2024 · 5 comments
Closed

Issue building the shared generix library on Ubuntu 24.04 #346

jashangills opened this issue Jun 12, 2024 · 5 comments

Comments

@jashangills
Copy link

I am encountering this error while attempting to build the shared generic library on Ubuntu 24.04.

It seems that the compiler is unable to recognize the uint8_t type, which is defined in the header file. The error suggests that the #include directive may be missing from the dataDumper.cpp, dataDumper.h files.

image

I mangaed to do a successful Build for libsick_ldmrs library but cant do the same for generic one

Any help/suggestions will be appreciated.

@rostest
Copy link
Collaborator

rostest commented Jun 12, 2024

Thank you very much for this error report. Can you include the standard library header <cstdint> in file dataDumper.h for a quick check, i.e. add a line #include <cstdint> at the beginning?

@jashangills
Copy link
Author

I did try adding it this morning, and It didnt resolve the issue. I have tried it again now to capture the error log. Please see below
image

Just wondering,Could this be a gcc issue? ( gcc version 13.2.0 (Ubuntu 13.2.0-23ubuntu4) )

@rostest
Copy link
Collaborator

rostest commented Jun 12, 2024

Thanks for following up. We will investigate the error in more detail.

@jashangills
Copy link
Author

I believe it was the gcc version issue as I successfully built the library on Linux Ubuntu 24.04 by downgrading the GCC compiler to version 12.3.1. After reviewing the release notes for GCC 13.2.0, I discovered that this version requires explicit definitions for headers such as ` and that may have been causing issues while building (https://gcc.gnu.org/gcc-13/porting_to.html)

Downgrading to GCC 12.3.1 resolved this issue and allowed the build to complete successfully.

@rostest
Copy link
Collaborator

rostest commented Jun 13, 2024

Thank you very much for this interesting information! We will adopt sick_scan_xd to GCC 13 in a future release.

@rostest rostest closed this as completed Jul 8, 2024
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

No branches or pull requests

2 participants