Commit f96bdba
Fix Qt 5/6 cross-platform build compatibility
This commit consolidates all fixes required for Qt 5 and Qt 6 compatibility
across Linux and Windows platforms.
Linux Qt 5 build fixes:
- Add __has_include guard for wayland-client.h to skip when unavailable
- Replace memcpy with reinterpret_cast for non-trivial ResourceId type
- Guard palette().windowText() vs palette().foreground() API change
Windows/Qt5 build fixes:
- Fix Matrix4f::Zero() memset error for non-trivial type
- Fix QBasicAtomicInteger::store() for Qt5 (single argument, no memory_order)
- Fix QVariantList conversion in GLPipelineStateViewer exportHTMLTable
Qt 6 compatibility fixes:
- Move Q_OBJECT macro to public section for proper MOC processing
- All Qt version-specific APIs already properly guarded with QT_VERSION checks
All changes tested and verified to build successfully on both Qt 5 and Qt 6.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 67a6f20 commit f96bdba
File tree
108 files changed
+1314
-577
lines changed- .github/workflows
- qrenderdoc
- 3rdparty
- flowlayout
- scintilla
- qt/ScintillaEditBase
- toolwindowmanager
- Code
- Interface
- pyrenderdoc
- Styles
- RDStyle
- RDTweakedNativeStyle
- Widgets
- Extended
- Windows
- Dialogs
- PipelineState
- renderdoc
- api/replay
- driver
- gl
- shaders/dxil
- maths
- os
- posix/linux
- serialise
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
108 files changed
+1314
-577
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
| 372 | + | |
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
389 | 431 | | |
390 | 432 | | |
391 | 433 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
401 | | - | |
| 401 | + | |
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
422 | 432 | | |
423 | 433 | | |
424 | 434 | | |
| |||
455 | 465 | | |
456 | 466 | | |
457 | 467 | | |
458 | | - | |
| 468 | + | |
459 | 469 | | |
460 | 470 | | |
461 | 471 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
164 | 166 | | |
165 | 167 | | |
166 | 168 | | |
| |||
Lines changed: 65 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
| 31 | + | |
28 | 32 | | |
| 33 | + | |
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
32 | 40 | | |
| 41 | + | |
33 | 42 | | |
34 | 43 | | |
35 | 44 | | |
| |||
159 | 168 | | |
160 | 169 | | |
161 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
162 | 175 | | |
163 | 176 | | |
| 177 | + | |
164 | 178 | | |
165 | 179 | | |
166 | 180 | | |
| |||
236 | 250 | | |
237 | 251 | | |
238 | 252 | | |
| 253 | + | |
239 | 254 | | |
| 255 | + | |
240 | 256 | | |
241 | 257 | | |
242 | 258 | | |
| |||
330 | 346 | | |
331 | 347 | | |
332 | 348 | | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
333 | 352 | | |
| 353 | + | |
334 | 354 | | |
335 | 355 | | |
336 | 356 | | |
| |||
403 | 423 | | |
404 | 424 | | |
405 | 425 | | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
406 | 429 | | |
| 430 | + | |
407 | 431 | | |
408 | 432 | | |
409 | 433 | | |
| |||
431 | 455 | | |
432 | 456 | | |
433 | 457 | | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
434 | 461 | | |
| 462 | + | |
435 | 463 | | |
436 | 464 | | |
437 | 465 | | |
| |||
461 | 489 | | |
462 | 490 | | |
463 | 491 | | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
464 | 495 | | |
| 496 | + | |
465 | 497 | | |
466 | 498 | | |
467 | 499 | | |
| |||
509 | 541 | | |
510 | 542 | | |
511 | 543 | | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
512 | 547 | | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
513 | 552 | | |
| 553 | + | |
514 | 554 | | |
515 | 555 | | |
516 | 556 | | |
517 | 557 | | |
518 | 558 | | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
519 | 562 | | |
| 563 | + | |
520 | 564 | | |
521 | 565 | | |
522 | 566 | | |
| |||
651 | 695 | | |
652 | 696 | | |
653 | 697 | | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
654 | 704 | | |
655 | 705 | | |
| 706 | + | |
656 | 707 | | |
657 | 708 | | |
658 | 709 | | |
| |||
738 | 789 | | |
739 | 790 | | |
740 | 791 | | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
741 | 798 | | |
742 | 799 | | |
| 800 | + | |
743 | 801 | | |
744 | 802 | | |
745 | 803 | | |
| |||
1080 | 1138 | | |
1081 | 1139 | | |
1082 | 1140 | | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
1083 | 1147 | | |
1084 | 1148 | | |
| 1149 | + | |
1085 | 1150 | | |
1086 | 1151 | | |
1087 | 1152 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| |||
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| 65 | + | |
62 | 66 | | |
| 67 | + | |
63 | 68 | | |
64 | 69 | | |
65 | 70 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
155 | 158 | | |
| 159 | + | |
156 | 160 | | |
157 | 161 | | |
158 | 162 | | |
| |||
161 | 165 | | |
162 | 166 | | |
163 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
164 | 171 | | |
| 172 | + | |
165 | 173 | | |
166 | 174 | | |
167 | 175 | | |
| |||
293 | 301 | | |
294 | 302 | | |
295 | 303 | | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
296 | 307 | | |
| 308 | + | |
297 | 309 | | |
298 | 310 | | |
299 | 311 | | |
| |||
610 | 622 | | |
611 | 623 | | |
612 | 624 | | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
613 | 628 | | |
| 629 | + | |
614 | 630 | | |
615 | 631 | | |
616 | 632 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
| |||
137 | 141 | | |
138 | 142 | | |
139 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
140 | 147 | | |
| 148 | + | |
141 | 149 | | |
142 | 150 | | |
143 | 151 | | |
| |||
0 commit comments