KhronosGroup / KhronosGroup/OpenXR-Hpp

Building test fails on Linux

Open
#53 30 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
50
Forks
23
PR merge metrics
No merged PRs in 30d

Description

Hello,

During test compilation ('make' step) I get a lot of errors for undefined types like:


``` [ 29%] Building CXX object tests/CMakeFiles/a.dir/a.cpp.o
In file included from /home/adi/OpenXR-Hpp/build/include/openxr/openxr.hpp:174,
from /home/adi/OpenXR-Hpp/tests/a.cpp:2:
/home/adi/OpenXR-Hpp/build/include/openxr/openxr_dispatch_static.hpp:710:98: error: ‘XrApiLayerCreateInfo’ does not name a type; did you mean ‘XrActionSetCreateInfo’?
```

Please see the attached file:

[test-build.log](https://github.com/user-attachments/files/20930541/test-build.log)

I've tried Fedora 42 and clean Ubuntu 22.04 LTS installation (OpenXR-SDK, OpenXR-Source-SDK and OpenXR-Hpp from git). The log is from the Ubuntu installation:

```
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.5 LTS
Release: 22.04
Codename: jammy
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the `make` test build on Ubuntu 22.04 and read the attached build log. Inspect `tests/a.cpp` and the generated `build/include/openxr/openxr.hpp` and `openxr_dispatch_static.hpp` files around the undefined `XrApiLayerCreateInfo` type. Done means the test sources compile without these undefined-type errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.