Skip to content

Conversation

@DanLiu2Intel
Copy link
Contributor

@DanLiu2Intel DanLiu2Intel commented Jun 27, 2024

Details:

  • build openvino will get the UniversalDDIs.xml can not find issue.
    [2024-06-26T21:58:25.848Z] CMake Error at cmake/developer_package/api_validator/api_validator.cmake:124 (message):
    [2024-06-26T21:58:25.848Z]   Internal error: apiValidator is found (C:/Program Files (x86)/Windows
    [2024-06-26T21:58:25.848Z]   Kits/10/bin/10.0.22621.0/x64/apivalidator.exe), but UniversalDDIs.xml file
    [2024-06-26T21:58:25.848Z]   has not been found for x64 platform
    
  • error is from the below code and it is used in _ov_add_api_validator_post_build_step function. ${PROGRAMFILES} is empty and defined in function ov_search_api_validator.
       find_file(ONECORE_API_VALIDATOR_APIS NAMES UniversalDDIs.xml
                 PATHS "${PROGRAMFILES}/Windows Kits/10/build/${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION}/universalDDIs/${wdk_platform}"
                       "${PROGRAMFILES}/Windows Kits/10/build/universalDDIs/${wdk_platform}"
                 DOC "Path to UniversalDDIs.xml file")
    

Tickets:

  • ticket-id

@github-actions github-actions bot added the category: build OpenVINO cmake script / infra label Jun 27, 2024
endif()

set(PROGRAMFILES_ENV "ProgramFiles\(X86\)")
set(PROGRAMFILES_ENV "ProgramFiles\(X86\)" PARENT_SCOPE)
Copy link
Contributor

Choose a reason for hiding this comment

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

it's not used outside of this function, do we need to move to parent scope ?

What issue do you experience?

Copy link
Contributor Author

@DanLiu2Intel DanLiu2Intel Jun 27, 2024

Choose a reason for hiding this comment

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

Hi, when build locally, can not find the UniversalDDIs.xml

[2024-06-26T21:58:25.848Z] CMake Error at cmake/developer_package/api_validator/api_validator.cmake:124 (message):
[2024-06-26T21:58:25.848Z]   Internal error: apiValidator is found (C:/Program Files (x86)/Windows
[2024-06-26T21:58:25.848Z]   Kits/10/bin/10.0.22621.0/x64/apivalidator.exe), but UniversalDDIs.xml file
[2024-06-26T21:58:25.848Z]   has not been found for x64 platform

by test locally, find the path is '/Windows Kits/10/build/10.0.19041.0/universalDDIs/x64/UniversalDDIs.xml'
${PROGRAMFILES_ENV} in here is used to search UniversalDDIs.xml.

    find_file(ONECORE_API_VALIDATOR_APIS NAMES UniversalDDIs.xml
              PATHS "${PROGRAMFILES}/Windows Kits/10/build/${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION}/universalDDIs/${wdk_platform}"
                    "${PROGRAMFILES}/Windows Kits/10/build/universalDDIs/${wdk_platform}"
              DOC "Path to UniversalDDIs.xml file")

Copy link
Contributor

Choose a reason for hiding this comment

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

FYI #25252

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: build OpenVINO cmake script / infra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants