Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@zuyih

Description

@zuyih

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions