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

libsigrokdecode/version.c build failure issue due to libsigrokdecode/version.h is missing #2

Open
hzy199411 opened this issue Sep 5, 2024 · 0 comments

Comments

@hzy199411
Copy link

seems the libsigrokdecode/version.h is missed because the version.h is added in the libsigrokdecode/.gitignore. so the version.h is missed and cause follw build failure issue.

/home/hzy/build/PXView/libsigrokdecode/version.c: In function ‘srd_package_version_major_get’:
/home/hzy/build/PXView/libsigrokdecode/version.c:60:16: error: ‘SRD_PACKAGE_VERSION_MAJOR’ undeclared (first use in this function); did you mean ‘SR_PACKAGE_VER
SION_STRING’?
   60 |         return SRD_PACKAGE_VERSION_MAJOR;
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~
      |                SR_PACKAGE_VERSION_STRING
/home/hzy/build/PXView/libsigrokdecode/version.c:60:16: note: each undeclared identifier is reported only once for each function it appears in
/home/hzy/build/PXView/libsigrokdecode/version.c: In function ‘srd_package_version_minor_get’:
/home/hzy/build/PXView/libsigrokdecode/version.c:72:16: error: ‘SRD_PACKAGE_VERSION_MINOR’ undeclared (first use in this function); did you mean ‘SR_PACKAGE_VER
SION_STRING’?
   72 |         return SRD_PACKAGE_VERSION_MINOR;
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~
      |                SR_PACKAGE_VERSION_STRING
/home/hzy/build/PXView/libsigrokdecode/version.c: In function ‘srd_package_version_micro_get’:
/home/hzy/build/PXView/libsigrokdecode/version.c:84:16: error: ‘SRD_PACKAGE_VERSION_MICRO’ undeclared (first use in this function); did you mean ‘SR_PACKAGE_VER
SION_STRING’?
   84 |         return SRD_PACKAGE_VERSION_MICRO;
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~
      |                SR_PACKAGE_VERSION_STRING
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

1 participant