Skip to content

Commit 6dc98fd

Browse files
authored
set QT_QPA_PLATFORM_PLUGIN_PATH in windows dev to tun turtle examples (ros2#426)
* set QT_QPA_PLATFORM_PLUGIN_PATH in windows dev to tun turtle examples * QT_QPA_PLATFORM_PLUGIN_PATH make permanent
1 parent 02bbb65 commit 6dc98fd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

source/Installation/Eloquent/Windows-Development-Setup.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,15 @@ Finally, set the ``Qt5_DIR`` environment variable in the ``cmd.exe`` where you i
137137

138138
This path might change based on which MSVC version you're using or if you installed it to a different directory.
139139

140+
Set the environment variable QT_QPA_PLATFORM_PLUGIN_PATH to run some of the Qt examples:
141+
142+
.. code-block:: bash
143+
144+
> set QT_QPA_PLATFORM_PLUGIN_PATH=C:\Qt\5.12.2\msvc2017_64\plugins\platforms
145+
: You could set it permanently with ``setx -m QT_QPA_PLATFORM_PLUGIN_PATH C:\Qt\5.12.2\msvc2017_64\plugins\platforms`` instead, but that requires Administrator.
146+
147+
You can also do this by clicking the Windows icon, typing "Environment Variables", then clicking on "Edit the system environment variables". In the resulting dialog, click "Environment Variables", the click "Path" on the bottom pane, then click "Edit" and add the path).
148+
140149
RQt dependencies
141150
~~~~~~~~~~~~~~~~
142151

0 commit comments

Comments
 (0)