summaryrefslogtreecommitdiffstats
path: root/doc/src/platforms/vxworks.qdoc
blob: 0461986d318a6e1b4399eaa63d2b9f2227838b94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
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
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
/*!
  \page vxworks.html
  \title Qt for VxWorks
  \brief Platform support for VxWorks.
  \keyword VxWorks
  \ingroup supportedplatform

  Contact The Qt Company for more information:
  \l {https://www.qt.io/contact-us/}

  \section1 Qt for VxWorks Licensing

    Qt for VxWorks is available under the Qt for Device Creation Professional
    (DCP) license. For more information, see \l{Qt Pricing}.

  \section1 Supported Architectures and VxWorks Releases

  Qt 6.10 is verified on VxWorks 24.03.

  Supported architectures:
  \list
    \li ARM-v7—Tested on BD-SL-i.MX6. BSP used: fsl_imx6
    \li x86_64—Tested on Intel NUC6i3SYH. BSP used: itl_generic
  \endlist

  If you are interested in later Qt releases, please \l {https://www.qt.io/contact-us/}{contact} Qt
  professional services.

  \section1 Requirements for VxWorks

  \section2 Qt Widgets Applications

  \list
  \li POSIX support
  \li C++17 support
  \endlist

  \section2 Qt Quick 2 Applications

  All features which are required for Qt Widgets applications, and in addition the following:

  \list
  \li GPU device (GPUDEV) for OpenGL ES 2.0
  \endlist

  \section1 Supported Modules

  Most essential \l{All Modules}{Qt modules} and some add-on modules are supported.

  \section2 Supported Essential modules

  \table 80%
  \header
      \li Qt Module
      \li Notes
  \row
      \li \l {Qt Core}
      \li No support for \l{QProcess}. \l{QLocalSocket} and \l{QLocalServer} support only SOCK_SEQPACKET.
  \row
      \li \l {Qt GUI}
      \li Not applicable
  \row
      \li \l {Qt Network}
      \li  Not applicable
  \row
      \li \l {Qt Qml}
      \li Not applicable
  \row
      \li \l {Qt Quick}
      \li Not applicable
  \row
      \li \l {Qt Quick Controls}
      \li Not applicable
  \row
      \li \l {Qt Quick Dialogs}
      \li Not applicable
  \row
      \li \l {Qt Quick Layouts}
      \li Not applicable
  \row
      \li \l {Qt Quick Test}
      \li Not applicable
  \row
      \li \l {Qt Test}
      \li Not applicable
  \row
      \li \l {Qt Widgets}
      \li Not applicable
  \endtable

  \section2 Supported Add-Ons

  \table 80%
  \header
      \li Qt Add-Ons
  \row
      \li \l {Qt Concurrent}
  \row
      \li \l {Qt GRPC}{Qt GRPC/Protobuf}
  \row
      \li \l {Qt Graphs}
  \row
      \li \l {Qt Image Formats}
  \row
      \li \l {Qt Multimedia}
  \row
      \li \l {Native Interfaces}{Qt Native Interfaces}
  \row
      \li \l {Qt OpenGL}
  \row
      \li \l {Qt Quick 3D}
  \row
      \li \l {Qt Quick Compiler}
  \row
      \li \l {Qt Quick Effects}
  \row
      \li \l {Qt SQL}
  \row
      \li \l {Qt SVG}
  \row
      \li \l {Qt Virtual Keyboard}
  \endtable

  \note You can explicitly exclude unsupported or unused modules from the
  build via the -skip <module> option when running the configure tool.

  \section1 Platform Notes

  Qt is prepared to be used by RTP applications, there is no support for DKM.

  With the release of Qt 5.0, Qt no longer contains its own window system
  implementation: QWS is no longer a supported platform. For single-process use
  cases, the \l{Qt Platform Abstraction} is a superior solution.

  There is one plugin that is usable on VxWorks: EGLFS. The availability of this
  plugins depends on the configuration of Qt.

  \section1 Configuring for a Specific Device

  Prepare your environment by installing VxWorks SDK and obtaining WindRiver
  license which is needed by installer and for building VxWorks images.
  Search for appropriate installer in
  {https://gallery.windriver.com/portal/products}.

  Building Qt for a given device requires a Qt 6 installation for compilation
  host, a toolchain and a sysroot. See \l{Cross-compiling Qt} for details.
  Additionally, some devices require vendor specific adaptation code for EGL and
  OpenGL 2.0 support.

  \section2 VxWorks Image Requirements

  Qt for VxWorks requires certain VxWorks image bundles and components to be
  embedded in base software to make Qt compile and work properly. The
  list is by no means complete as it depends on hardware, software and system
  requirements of your project. However, the following table contains those
  that are mandatory for certain functionalities to work (including touchscreen support).
  Note also that these might change with VxWorks versions.

  \section3 Example VSB configuration for the fsl_imx6 and itl_generic BSPs

  You need to add the following features to VSB for Qt to work properly. For
  more details please check WindRiver VxWorks Documentation.

  \table 80%
    \header
        \li Feature
        \li Notes

    \row
        \li \c DSI_DSI_KERNEL
        \li Not applicable

    \row
        \li \c IPNET_COREIP
        \li Not applicable

    \row
        \li \c IPNET_DHCPC
        \li Not applicable

    \row
        \li \c SDMMC_DEVICE
        \li Not applicable

    \row
        \li \c SDMMC_HOST
        \li Not applicable

    \row
        \li \c SDMMC_SDHC
        \li Not applicable

    \row
        \li \c SDMMC_STORAGE
        \li Not applicable

    \row
        \li \c SERVICE_UN
        \li Not applicable

    \row
        \li \c SOCKET
        \li Not applicable

    \row
        \li \c USB_EHCI
        \li Not applicable

    \row
        \li \c USB_KEYBOARD
        \li Not applicable

    \row
        \li \c USB_MOUSE
        \li Not applicable

    \row
        \li \c USB_STORAGE
        \li Not applicable

    \row
        \li \c USB_TOUCHSCREEN
        \li Not applicable

    \row
        \li \c EVDEV
        \li Not applicable

    \row
        \li \c EVDEV_LIB
        \li Not applicable

    \row
        \li \c EVDEV_TI_TSC2004_TS
        \li Not applicable

    \row
        \li \c EVDEV_EETI_EXC7200_TS
        \li Not applicable

    \row
        \li \c AUDIO
        \li Not applicable

    \row
        \li \c GPUDEV_FSLVIVGPU
        \li fsl_imx6 specific

    \row
        \li \c HASH
        \li Not applicable

    \row
        \li \c OPENSSL
        \li Not applicable

    \row
        \li \c RANDOM_ENTROPY_INJECT
        \li Not applicable

    \row
        \li \c IPNET_SSH
        \li Not applicable

    \row
        \li \c USER_MANAGEMENT
        \li Not applicable

    \row
        \li \c ICU
        \li Not applicable

    \row
        \li \c DRM
        \li itl_generic specific

    \row
        \li \c ITLI915
        \li itl_generic specific

    \row
        \li \c LIBDRM
        \li itl_generic specific

    \row
        \li \c MESA
        \li itl_generic and nxp_imx8 specific

  \endtable

  The following config variables are added implicitly and you need to remove them:

  \table 80%
    \header
        \li Variable
        \li Notes

    \row
        \li \c _WRS_CONFIG_EVDEV_OPTIMIZED_MODE
        \li Not applicable

    \row
        \li \c _WRS_CONFIG_EVDEV_DISPLAY_POINT_TRANSLATE
        \li Not applicable

    \row
        \li \c _WRS_CONFIG_MESA_MANGLE
        \li itl_generic specific

  \endtable

  You need to add the following variables to the config:

  \table 80%
    \header
        \li Variable
        \li Value
        \li Notes

    \row
        \li \c _WRS_CONFIG_RTP_SSP
        \li \c y
        \li Not applicable

    \row
        \li \c _WRS_CONFIG_RTP_STACK_PROTECTOR
        \li \c y
        \li Not applicable

    \row
        \li \c _WRS_CONFIG_MESA_GPUDEV_INTEL_GEN90
        \li \c y
        \li itl_generic specific

    \row
        \li \c _WRS_CONFIG_EVDEV_COMPATIBLE_MODE
        \li \c y
        \li Needed in order for Qt to work properly with a touchscreen.

  \endtable

  \section3 Example VIP configuration for fsl_imx6 and itl_generic BSPs
  For more details please check WindRiver VxWorks Documentation.

  \table 80%
    \header
        \li Bundle
        \li Notes
    \row
        \li \c BUNDLE_POSIX
        \li This bundle is necessary for compatibility with POSIX-related
        functionalities which Qt requires.
    \row
        \li \c BUNDLE_RTP_DEPLOY
        \li Not applicable
    \row
        \li \c BUNDLE_RTP_DEVELOP
        \li Not applicable
    \row
        \li \c BUNDLE_STANDALONE_SHELL
        \li Not applicable
  \endtable

  \table 80%
    \header
        \li Component
        \li Notes

    \row
        \li \c INCLUDE_TMP_DIR
            \c INCLUDE_RAM_DISK_FORMAT_HRFS
        \li Including these two components is necessary if you want to
            use \l {QTemporaryFile}. Note that you should also consider setting
            \c TMP_DIR_SIZE to appropriate value

    \row
        \li \c DRV_AUDIO_FSL_SSI
        \li Not applicable

    \row
        \li \c DRV_AUDIO_FSL_SGTL5000
        \li Not applicable

    \row
        \li \c DRV_FSL_SDHC_CTRL
        \li Not applicable

    \row
        \li \c DRV_IMX_SDHC_CTRL
        \li Not applicable

    \row
        \li \c INCLUDE_EHCI_INIT
        \li Not applicable

    \row
        \li \c INCLUDE_FSL_IMX6Q_SABRELITE
        \li Not applicable

    \row
        \li \c DRV_MMCSTORAGE_CARD
        \li Not applicable

    \row
        \li \c DRV_SDSTORAGE_CARD
        \li Not applicable

    \row
        \li \c INCLUDE_AUDIO_LIB_CORE
        \li Not applicable

    \row
        \li \c INCLUDE_AUDIO_LIB_WAV
        \li Not applicable

    \row
        \li \c INCLUDE_CUSTOM_ENTROPY_ADD
        \li Not applicable

    \row
        \li \c INCLUDE_DEBUG_AGENT_START
        \li Not applicable

    \row
        \li \c INCLUDE_DEFAULT_TIMEZONE
        \li Not applicable

    \row
        \li \c INCLUDE_DISK_UTIL
        \li Not applicable

    \row
        \li \c INCLUDE_DOSFS
        \li Not applicable

    \row
        \li \c INCLUDE_DSAPARAM_CMD
        \li Not applicable

    \row
        \li \c INCLUDE_END
        \li Not applicable

    \row
        \li \c INCLUDE_EVDEV_LIB_CORE
        \li Not applicable

    \row
        \li \c INCLUDE_EVDEV_LIB_KBD
        \li Not applicable

    \row
        \li \c INCLUDE_EVDEV_LIB_KBD_MAP_US
        \li Not applicable

    \row
        \li \c INCLUDE_EVDEV_LIB_PTR
        \li Not applicable

    \row
        \li \c INCLUDE_EVDEV_LIB_TS
        \li Not applicable

    \row
        \li \c INCLUDE_GENDSA_CMD
        \li Not applicable

    \row
        \li \c INCLUDE_GENRSA_CMD
        \li Not applicable

    \row
        \li \c INCLUDE_GETADDRINFO
        \li Not applicable

    \row
        \li \c INCLUDE_GETNAMEINFO
        \li Not applicable

    \row
        \li \c INCLUDE_HRFS
        \li Not applicable

    \row
        \li \c INCLUDE_HRFS_ACCESS_TIMESTAMP
        \li Not applicable

    \row
        \li \c INCLUDE_HRFS_FORMAT
        \li Not applicable

    \row
        \li \c INCLUDE_HRFS_HISPEED_WRITE_MODE
        \li Not applicable

    \row
        \li \c INCLUDE_IFCONFIG
        \li Not applicable

    \row
        \li \c INCLUDE_IO_REALPATH
        \li This component is needed to enable the use of the realpath function needed for \c QFileInfo

    \row
        \li \c INCLUDE_IPATTACH
        \li Not applicable

    \row
        \li \c INCLUDE_IPCOM_SYSLOGD_CMD
        \li Not applicable

    \row
        \li \c INCLUDE_IPCOM_SYSVAR_CMD
        \li Not applicable

    \row
        \li \c INCLUDE_IPCOM_USE_RAM_DISK
        \li Not applicable

    \row
        \li \c INCLUDE_IPCOM_USE_TIME_CMD
        \li Not applicable

    \row
        \li \c INCLUDE_IPDHCPC
        \li Not applicable

    \row
        \li \c INCLUDE_IPDNSC
        \li Not applicable

    \row
        \li \c INCLUDE_IPD_CMD
        \li Not applicable

    \row
        \li \c INCLUDE_IPFTPC
        \li Not applicable

    \row
        \li \c INCLUDE_IPFTP_CMD
        \li Not applicable

    \row
        \li \c INCLUDE_IPIFCONFIG_CMD
        \li Not applicable

    \row
        \li \c INCLUDE_IPNETSTAT_CMD
        \li Not applicable

    \row
        \li \c INCLUDE_IPNSLOOKUP_CMD
        \li Not applicable

    \row
        \li \c INCLUDE_IPPING_CMD
        \li Not applicable

    \row
        \li \c INCLUDE_IPROUTE_CMD
        \li Not applicable

    \row
        \li \c INCLUDE_IPTRACE_ROUTE_CMD
        \li Not applicable

    \row
        \li \c INCLUDE_IPWRAP_GETHOSTBYADDR
        \li Not applicable

    \row
        \li \c INCLUDE_IPWRAP_GETHOSTBYNAME
        \li Not applicable

    \row
        \li \c INCLUDE_IPWRAP_GETNAMEINFO
        \li Not applicable

    \row
        \li \c INCLUDE_IPWRAP_IFNAME
        \li Not applicable

    \row
        \li \c INCLUDE_IPWRAP_ROUTECMD
        \li Not applicable

    \row
        \li \c INCLUDE_MMAP
        \li Not applicable

    \row
        \li \c INCLUDE_PING
        \li Not applicable

    \row
        \li \c INCLUDE_PIPES
        \li Not applicable

    \row
        \li \c INCLUDE_POSIX_MAPPED_FILES
        \li Not applicable

    \row
        \li \c INCLUDE_POSIX_PIPES
        \li Not applicable

    \row
        \li \c INCLUDE_POSIX_PTHREAD_SCHEDULER
        \li Not applicable

    \row
        \li \c INCLUDE_POSIX_SHM
        \li Not applicable

    \row
        \li \c INCLUDE_RAM_DISK
        \li Not applicable

    \row
        \li \c INCLUDE_RAM_DISK_FORMAT_HRFS
        \li Not applicable

    \row
        \li \c INCLUDE_RANDOM_NUM_GEN
        \li Not applicable

    \row
        \li \c INCLUDE_ROMFS
        \li Not applicable

    \row
        \li \c INCLUDE_ROUTECMD
        \li Not applicable

    \row
        \li \c INCLUDE_SC_PIPE
        \li Not applicable

    \row
        \li \c INCLUDE_SC_POSIX_PIPE
        \li Not applicable

    \row
        \li \c INCLUDE_SD_BUS
        \li Not applicable

    \row
        \li \c INCLUDE_SECURITY
        \li Not applicable

    \row
        \li \c INCLUDE_SEC_KEY_STORE_CMD
        \li Not applicable

    \row
        \li \c INCLUDE_SHELL
        \li Not applicable

    \row
        \li \c INCLUDE_SSH
        \li Not applicable

    \row
        \li \c INCLUDE_STANDALONE_SYM_TBL
        \li Not applicable

    \row
        \li \c INCLUDE_STARTUP_SCRIPT
        \li Not applicable

    \row
        \li \c INCLUDE_TMP_DIR
        \li Not applicable

    \row
        \li \c INCLUDE_UN_COMP
        \li Not applicable

    \row
        \li \c INCLUDE_USB_GEN2_KEYBOARD
        \li Not applicable

    \row
        \li \c INCLUDE_USB_GEN2_MOUSE
        \li Not applicable

    \row
        \li \c INCLUDE_USB_GEN2_STORAGE_INIT
        \li Not applicable

    \row
        \li \c INCLUDE_USB_TOUCH_SCREEN
        \li Not applicable

    \row
        \li \c INCLUDE_USB_TOUCH_SCREEN_INIT
        \li Not applicable

    \row
        \li \c INCLUDE_USER_DATABASE
        \li Not applicable

    \row
        \li \c INCLUDE_USER_IDENTIFICATION
        \li Not applicable

    \row
        \li \c INCLUDE_VRFS
        \li Not applicable

    \row
        \li \c INCLUDE_VXBUS_SHOW
        \li Not applicable

    \row
        \li \c DRV_TOUCH_SCREEN_TI_TSC2004
        \li Not applicable

    \row
        \li \c DRV_TOUCH_SCREEN_EETI_EXC7200
        \li Not applicable

    \row
        \li \c INCLUDE_FBDEV_FSLIPU_0
        \li fsl_imx6 specific

    \row
        \li \c INCLUDE_FBDEV_SPLASH
        \li Not applicable

    \row
        \li \c INCLUDE_GPUDEV_FSLVIV_API
        \li fsl_imx6 specific

    \row
        \li \c INCLUDE_GPUDEV_FSLVIV_API_INIT
        \li fsl_imx6 specific

    \row
        \li \c INCLUDE_GPUDEV_ITLGMC_2
        \li itl_generic specific
    \row
        \li \c INCLUDE_I915
        \li itl_generic specific
    \row
        \li \c INCLUDE_MESA_FBDEV
        \li itl_generic specific
    \row
        \li \c INCLUDE_MESA_GPUDEV_DRI
        \li itl_generic specific
    \row
        \li \c INCLUDE_MESA_GPUDEV_DRI_I965
        \li itl_generic specific
  \endtable

  The following components are added implicitly and you need to remove them:

  \table 80%
    \header
        \li Layer
        \li Notes

    \row
        \li \c INCLUDE_FTP
        \li Not applicable

    \row
        \li \c INCLUDE_SHELL_SECURITY
        \li Not applicable

  \endtable

  \section4 VIP Parameters

  You need to add the following parameters for Qt to run properly on VxWorks:

  \table 80%
    \header
        \li Parameter
        \li Example value
        \li Notes

    \row
        \li \c SEC_VAULT_KEY_ENCRYPTING_PW
        \li \c '"vxTarget"'
        \li Not applicable

    \row
        \li \c UDB_STORAGE_PATH
        \li \c '"/ram/vxUserDB.txt"'
        \li Not applicable

    \row
        \li \c UDB_HASH_KEY
        \li \c '"123456789"'
        \li Not applicable

    \row
        \li \c UDB_HASH_KEY_LEN
        \li \c 9
        \li Example value, see previous

    \row
        \li \c FSLVIV_RTP_COMMAND_BUFFER_QUEUE
        \li \c 32
        \li For 'arm' architecture

    \row
        \li \c SYS_CLK_RATE
        \li \c 100
        \li Not applicable

    \row
        \li \c RTP_PTHREAD_STACK_SIZE_DEFAULT
        \li \c 262144
        \li Required to make qtquick3d examples work. Can be overridden with the PTHREAD_STACK_SIZE_DEFAULT env variable.

    \row
        \li \c TMP_DIR_SIZE
        \li \c 614400
        \li Minimum value for passing Qt internal tests

    \row
        \li \c NUM_FILES
        \li \c 300
        \li Not applicable

    \row
        \li \c RTP_FD_NUM_MAX
        \li \c 300
        \li Not applicable

    \row
        \li \c HRFS_DEFAULT_MAX_FILES
        \li \c 300
        \li Not applicable

    \row
        \li \c ITLGMC_FBDEV_RESOLUTION_2
        \li \c '"1024x768-32"'
        \li Example value for the Xenarc 706TSA touchscreen connected over HDMI.

    \row
        \li \c RTP_MEM_FILL
        \li \c True
        \li By default the value is \c True and it needs to remain \c True for Qt to work properly.

  \endtable

  \target Building Qt for VxWorks
  \section1 Building Qt 6 for VxWorks

  \section2 Host build

    A host build of Qt needs to be available to cross-compile Qt. This is because, during
    the build, certain tools (such as \c{moc}, \c{rcc}, \c{qmlcachegen}, and \c{qsb}) are
    invoked from the host build. You have the following options:
    \list
        \li \l{Building Qt Sources} for the host,
        \li Installing host build using \QOI.
    \endlist
    However, it is advisable to ensure that you can build Qt for the desktop target on the
    host as well since the same tools are also needed when compiling for VxWorks.

  \section3 Running the Configure Script

  The commands to configure, build, and install Qt 6 for host are the following:

  \badcode
    ./configure \
        -cmake-generator "Ninja" \
        -extprefix <path/to/Qt6/host/installation/dir> \
        -submodules qtbase,qtdeclarative,qtquick3d,qtshadertools \
        -nomake tests \
        -nomake examples \
        -- \
        -B <host/build/directory>
    cd <host/build/directory>
    cmake --build . --parallel
    cmake --install .
  \endcode

  These commands install Qt 6 for the host in
  \c {<path_to_Qt 6_host_installation_dir>}.

  \section2 Building Qt 6 for the Target

  \section3 Setting Up the Build Environment

  Before you run configure and build Qt 6, you must open \e {VxWorks Development Shell} in command
  prompt.

  \list
  \li Linux:
  \badcode
  cd <VxWorks installation directory>
  ./wrenv.sh -p vxworks
  export WIND_CC_SYSROOT=<path to VxWorks VSB directory>
  \endcode

  \li Windows:
  \badcode
  cd <VxWorks installation directory>
  wrenv -p vxworks
  export WIND_CC_SYSROOT=<path to VxWorks VSB directory>
  \endcode
  \endlist

  \section3 Preparing the Custom CMake Toolchain File

  To include graphics libraries from the BSP, you need to first create a CMake toolchain file.
  An example CMake toolchain file for BD-SL-i.MX6 device:

  \badcode
  # Copyright (C) 2024 The Qt Company Ltd.
  # SPDX-License-Identifier: BSD-3-Clause

  if(QT_VXWORKS_TOOLCHAIN_FILE)
      set(_original_toolchain_file "${QT_VXWORKS_TOOLCHAIN_FILE}")
  elseif(DEFINED ENV{QT_VXWORKS_TOOLCHAIN_FILE})
      set(_original_toolchain_file "$ENV{QT_VXWORKS_TOOLCHAIN_FILE}")
  else()
      message(FATAL_ERROR "QT_VXWORKS_TOOLCHAIN_FILE is not set.")
  endif()

  if(NOT EXISTS "${_original_toolchain_file}")
      message(FATAL_ERORR "${_original_toolchain_file} doesn't exists.")
  endif()

  include("${_original_toolchain_file}")
  unset(_original_toolchain_file)

  list(APPEND CMAKE_TRY_COMPILE_PLATFORM_VARIABLES QT_VXWORKS_TOOLCHAIN_FILE)

  set(_common_lib_path "${CMAKE_SYSROOT}/usr/lib/common")
  set(EGL_INCLUDE_DIR ${CMAKE_SYSROOT}/usr/h/public CACHE PATH "Path to EGL include directory" FORCE)
  set(EGL_LIBRARY ${_common_lib_path}/libgfxFslVivEGL.so CACHE PATH "Path to EGL lib" FORCE)
  set(GLESv2_INCLUDE_DIR ${CMAKE_SYSROOT}/usr/h/public CACHE PATH "Path to GLES include directory" FORCE)
  set(GLESv2_LIBRARY ${_common_lib_path}/libgfxFslVivGLESv2.so CACHE PATH "Path to GLES lib" FORCE)

  set(VxWorksPlatformGraphics_DEFINES "-D_FSLVIV")
  set(VxWorksPlatformGraphics_LIBRARIES_PACK
      "${_common_lib_path}/libgfxFslVivEGL.so"
      "${_common_lib_path}/libgfxFslVivGLESv2.so"
      "${_common_lib_path}/libgfxFslVivGAL.so"
      "${_common_lib_path}/libgfxFslVivGLSLC.so"
      "${_common_lib_path}/libgfxFslVivVDK.so"
      "${_common_lib_path}/libxml.so"
  )

  set(VxWorksPlatformGraphics_REQUIRED_LIBRARIES
      ${VxWorksPlatformGraphics_LIBRARIES_PACK}
      ${EGL_LIBRARY}
      ${GLESv2_LIBRARY}
  )
  unset(_common_lib_path)
  \endcode

  An example for Intel NUC6i3SYH:

  \badcode
  # Copyright (C) 2024 The Qt Company Ltd.
  # SPDX-License-Identifier: BSD-3-Clause

  if(QT_VXWORKS_TOOLCHAIN_FILE)
      set(_original_toolchain_file "${QT_VXWORKS_TOOLCHAIN_FILE}")
  elseif(DEFINED ENV{QT_VXWORKS_TOOLCHAIN_FILE})
      set(_original_toolchain_file "$ENV{QT_VXWORKS_TOOLCHAIN_FILE}")
  else()
      message(FATAL_ERROR "QT_VXWORKS_TOOLCHAIN_FILE is not set.")
  endif()

  if(NOT EXISTS "${_original_toolchain_file}")
      message(FATAL_ERORR "${_original_toolchain_file} doesn't exists.")
  endif()

  include("${_original_toolchain_file}")
  unset(_original_toolchain_file)

  list(APPEND CMAKE_TRY_COMPILE_PLATFORM_VARIABLES QT_VXWORKS_TOOLCHAIN_FILE)

  set(_common_lib_path "${CMAKE_SYSROOT}/usr/lib/common")
  set(EGL_INCLUDE_DIR ${CMAKE_SYSROOT}/usr/h/public CACHE PATH "Path to EGL include directory" FORCE)
  set(EGL_LIBRARY ${_common_lib_path}/libgfxMesaEGL.so CACHE PATH "Path to EGL lib" FORCE)
  set(GLESv2_INCLUDE_DIR ${CMAKE_SYSROOT}/usr/h/public CACHE PATH "Path to GLES include directory" FORCE)
  set(GLESv2_LIBRARY ${_common_lib_path}/libgfxMesaGL.so CACHE PATH "Path to GLES lib" FORCE)

  set(VxWorksPlatformGraphics_DEFINES "-D__vxworks -D__VXWORKS")
  set(VxWorksPlatformGraphics_LIBRARIES_PACK
      "${_common_lib_path}/libgfxMesaEGL.so"
      "${_common_lib_path}/libgfxMesaGL.so"
      "${_common_lib_path}/libgfxMesaSw.so"
      "${_common_lib_path}/libgfxMesa.so"
      "${_common_lib_path}/libgfxMesaDriI965.so"
      "${_common_lib_path}/libgfxLibDRM.so"
      "${_common_lib_path}/libxml.so"
  )

  set(VxWorksPlatformGraphics_REQUIRED_LIBRARIES
      ${VxWorksPlatformGraphics_LIBRARIES_PACK}
      ${EGL_LIBRARY}
      ${GLESv2_LIBRARY}
  )
  unset(_common_lib_path)

  \endcode

  An example for I.MX8:

  \badcode
  # Copyright (C) 2024 The Qt Company Ltd.
  # SPDX-License-Identifier: BSD-3-Clause

  if(QT_VXWORKS_TOOLCHAIN_FILE)
      set(_original_toolchain_file "${QT_VXWORKS_TOOLCHAIN_FILE}")
  elseif(DEFINED ENV{QT_VXWORKS_TOOLCHAIN_FILE})
      set(_original_toolchain_file "$ENV{QT_VXWORKS_TOOLCHAIN_FILE}")
  else()
      message(FATAL_ERROR "QT_VXWORKS_TOOLCHAIN_FILE is not set.")
  endif()

  if(NOT EXISTS "${_original_toolchain_file}")
      message(FATAL_ERORR "${_original_toolchain_file} doesn't exists.")
  endif()

  include("${_original_toolchain_file}")
  unset(_original_toolchain_file)

  list(APPEND CMAKE_TRY_COMPILE_PLATFORM_VARIABLES QT_VXWORKS_TOOLCHAIN_FILE)

  set(_common_lib_path "${CMAKE_SYSROOT}/usr/lib/common")
  set(EGL_INCLUDE_DIR ${CMAKE_SYSROOT}/usr/h/public CACHE PATH "Path to EGL include directory" FORCE)
  set(EGL_LIBRARY ${_common_lib_path}/libgfxNxpVivEGL.so CACHE PATH "Path to EGL lib" FORCE)
  set(GLESv2_INCLUDE_DIR ${CMAKE_SYSROOT}/usr/h/public CACHE PATH "Path to GLES include directory" FORCE)
  set(GLESv2_LIBRARY ${_common_lib_path}/libgfxNxpVivGLESv2.so CACHE PATH "Path to GLES lib" FORCE)

  set(VxWorksPlatformGraphics_DEFINES "-D_NXPVIV -D__vxworks -D__VXWORKS__")
  set(VxWorksPlatformGraphics_LIBRARIES_PACK
      "-Wl,--start-group"
      "${_common_lib_path}/libgfxNxpVivGAL.so"
      "${_common_lib_path}/libgfxNxpVivEGL.so"
      "${_common_lib_path}/libgfxNxpVivGLSLC.so"
      "${_common_lib_path}/libgfxNxpVivGLESv2.so"
      "${_common_lib_path}/libgfxNxpVivGLESv1_CM.so"
      "${_common_lib_path}/libgfxNxpVivVSC.so"
      "${_common_lib_path}/libxml.so"
      "-Wl,--end-group"
  )

  set(VxWorksPlatformGraphics_REQUIRED_LIBRARIES
      ${VxWorksPlatformGraphics_LIBRARIES_PACK}
      ${EGL_LIBRARY}
      ${GLESv2_LIBRARY}
  )
  unset(_common_lib_path)

  \endcode

  \section3 Running Qt 6 Configure for the Target

  Below is an example build configuration for the BD-SL-i.MX6. For most VxWorks boards
  the configure command looks very similar. By default, Qt 6 is configured to
  use shared libraries. To build Qt 6 statically, add \c -static option to configure.

  Make sure that {WIND_CC_SYSROOT} environment variable is set to VxWorks VSB root
  directory.

  \badcode
    ./configure \
        -cmake-generator "Ninja" \
        -icu \
        -eglfs \
        -qpa eglfs \
        -submodules "qtbase,qtdeclarative,qtmultimedia,qtquick3d,qtgraphs,qtimageformats,qtsvg,qtshadertools,qtvirtualkeyboard" \
        -- \
        -B <target/build/directory> \
        -DQT_VXWORKS_TOOLCHAIN_FILE=<path/to/VSB/mk/toolchain.cmake> \
        -DFEATURE_vulkan=OFF \
        -DQT_QMAKE_TARGET_MKSPEC=vxworks-clang \
        -DQT_HOST_PATH=<path/to/Qt6/host/installation/dir> \
        -DCMAKE_STAGING_PREFIX:PATH=<path/to/Qt6/target/installation/dir> \
        -DCMAKE_TOOLCHAIN_FILE=<path/to/cmake/for/graphics/file/created/above> \
  \endcode

  It is recommended to build Qt 6 using a \e{shadow build}. See \l {Qt Configure Options}
  for more information.

  \warning If VxWorks is configured with \c {RTP_MEM_FILL} as false, then Qt configure needs an extra
  \c {-DCMAKE_CXX_FLAGS="-DQT_RTP_MEM_FILL=1"} argument.

  After configuration, build and install Qt 6 for VxWorks with these commands:

  \badcode
  cd <host build directory>
  cmake --build . --parallel
  cmake --install .
  \endcode

  \section1 Platform Plugins for VxWorks Devices

  Qt for VxWorks supports EGLFS platform plugin for a \e {native window} substitution.
  Read more about its configuration in \l{embedded eglfs}{EGLFS}.

  \section1 Building Qt Applications

  To build a Qt application, you must set the QT_VXWORKS_TOOLCHAIN_FILE as an environment variable
  or as a define.

  An example to build the clocks Qt demo:
  \badcode
  export WIND_CC_SYSROOT=<path/to/VxWorks/VSB/directory>
  export QT_VXWORKS_TOOLCHAIN_FILE=<path/to/the/BSP/toolchain.cmake>
  <path/to/Qt6/target/installation/dir>/bin/qt-cmake -G Ninja -S ~/Qt/Examples/Qt-6.10.0/demos/clocks -B <path/to/build/directory>
  cd <path/to/build/directory>
  cmake --build . --parallel
  \endcode

  \section1 Running Qt Applications

  The following example shows how to start an application when Qt 6 is built using
  shared libraries. With a statically built Qt 6, you don't need to use the
  \c LD_LIBRARY_PATH environment variable for the Qt libraries, but it needs to point
  to the location of VxWorks shared libraries (for example libc and OpenGL ES 2.0).
  It is not needed for Qt 6 static libraries.

  \badcode
  putenv "LD_LIBRARY_PATH=/sd0:1/lib"
  cd "/sd0:1"
  rtpSp("<Qt 6 VxWorks application>", 200, 0x100000, 0, 0x01000000)
  \endcode

  \section1 Debugging Qt Applications

  To debug Qt Applications, you must add the following to your VxWorks VSB:
  \badcode
  vxprj vsb config -s -add "_WRS_CONFIG_TCF_GDB_RSP=y"
  \endcode
  To your VxWorks VIP configuration add:
  \badcode
  "INCLUDE_DEBUG_AGENT"
  "INCLUDE_DEBUG_AGENT_START"
  "INCLUDE_STANDALONE_SYM_TBL"
  \endcode

  \section2 From the Command Line

  \list 1
    \li Start the application to debug on the device through SSH or the USB serial connection:
    \badcode
    rtpSp("<Qt 6 VxWorks application>", 200, 0x100000, 0, 0x01000000)
    \endcode
    \li Start the VxWorks debugger on the PC:
    \badcode
    vxgdb <binary to debug>
    \endcode
    \li List the running processes in the debugger:
    \badcode
    monitor ps
    \endcode
    \li Attach the debugger to the already running application:
    \badcode
    "attach <id from monitor>"
    \endcode
    \li Use GDB commands for debugging.
  \endlist

  \section2 From \QC

  To debug from \QC, see \l{https://doc-snapshots.qt.io/qtcreator-master/creator-how-to-debug-vxworks.html} {Debug C++ applications on VxWorks devices}.

  \section2 From Workbench

  \list 1
    \li Create a CMake Real Time Process project.
    \image vxwb-cmake-rtp-project.png "Select cmake RTP project"
    \li Set the VSB which has debugging configured.
    \li Remove set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static") from CMakeLists.txt.
    \li Add Qt CMake related code to the CMakeLists.txt following \l {https://doc.qt.io/qt-6/cmake-get-started.html#building-a-c-gui-applicationCMakeLists.txt} {Getting started with CMake}.
    \li Before \c {project()} add \c {unset(CMAKE_TOOLCHAIN_FILE CACHE)} and add \c {CMAKE_TOOLCHAIN_FILE} pointing to the Qt6 toolchain file and \c {QT_CHAINLOAD_TOOLCHAIN_FILE} to the VSB toolchain file.
    For example:
    \badcode
    unset(CMAKE_TOOLCHAIN_FILE CACHE)
    set(CMAKE_TOOLCHAIN_FILE "/home/qtuser/VxWorks/qt/target_gdb/lib/cmake/Qt6/qt.toolchain.cmake")
    set(QT_CHAINLOAD_TOOLCHAIN_FILE "/home/qtuser/VxWorks/fsl_imx6_2_0_6_2_VSB_gdb/mk/toolchain.cmake")
    \endcode
    \li Build the application Project.
    \li Create a New Connection.
    \image vxwb-connection.png "Connection to the device"
    \li Start RTP process to debug.
    \image vxwb-rundebug.png "Select Run/Debug Real Time Process"
    \li Click on Advanced options.
    \image vxwb-rundebug-settings.png "Run settings"
    \li Set the stack size to 0x100000.
    \image vxwb-advanced-settings.png "Advanced settings"
  \endlist

  \section1 Qt for VxWorks input plugins

  VxWorks uses its own implementation of \c libevdev, which has an API that is very similar to
  that of Linux, but differs in capabilities. Because of this Qt implements separate input plugins
  for VxWorks to handle mouse, keyboard and touchscreen, which are based on
  {inputs-linux-device.html}{Linux evdev}, with differences that are explained below.

  \section2 VxMouse

  \c VxMouse uses the same configuration scheme as EvdevMouse, except for different environment
  variable: \c QT_QPA_VXEVDEV_MOUSE_PARAMETERS. Additionally, \c VxMouse ignores \c nocompress,
  \c dejitter and \c grab parameters.

  \section2 VxKeyboard

  \c VxKeyboard uses the same configuration scheme as EvdevKeyboard, except for different
  environment variable: \c QT_QPA_VXEVDEV_KEYBOARD_PARAMETERS.

  \section2 VxTouch

  \c VxTouch uses the same configuration scheme as EvdevTouch, except for different environment
  variables:
  \list
    \li \c QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS
    \li \c QT_QPA_VXEVDEV_DEBUG
  \endlist

  Additionally, VxTouch adds two new parameters:

  \table 80%
  \header
    \li Parameter
    \li Description
  \row
    \li \c rangex=MIN_X,MAX_X
    \li Overrides touch point min and max for X axis
  \row
    \li \c rangey=MIN_Y,MAX_Y
    \li Overrides touch point min and max for Y axis
  \endtable

  \section1 Limitations

  \section2 Video Memory

  Systems with a fixed amount of dedicated video memory may need extra care
  before running Qt application based on Qt Quick or classes like
  \l{QOpenGLWidget}. The default setting might be insufficient for such applications,
  especially when they are displayed on a high resolution (for example, full HD)
  screen. In this case they might start failing in unexpected ways. It is
  therefore recommended to ensure that there is at least 128 MB of GPU memory
  available. For systems that do not have a fixed amount of memory reserved for
  the GPU this is not an issue.

*/