This page provides specific information to building RQt from source on Windows. Follow these instructions before proceeding with the RQt Source Install page.
If you have not done so, follow the ROS 2 Windows Development Setup guide before continuing.
- Windows 10
- Visual Studio 15.7.6
Currently Visual Studio 15.8 fails to build ROS 2 (see issue). Older versions of VS can be found here
The primary dependencies of the RQt package are sip and PyQt5. PySide2 may be supported in the future. Even though they are provided through PyPi and chocolatey, you must install them by source to get compatible versions.
Download from https://www.riverbankcomputing.com/software/sip/download
Run the x64 Native Tools Command Prompt as Administrator, and cd to the uncompressed source directory.
Run:
python3 configure.py nmake nmake install
If python3 is installed on your system as python, be sure to use that program name instead.
Download from https://www.riverbankcomputing.com/software/pyqt/download5
Run the x64 Native Tools Command Prompt as Administrator, and cd to the uncompressed source directory.
I ran into trouble with Qt 5.11.3 and PyQt5 compiling QtNfc, but it can be easily disabled.
python3 --disable QtNfc nmake nmake install
If install occurred without failure, try the commands below.
They should run without issue and you should see 4.19.13 as your sip.exe version.
sip -V python3 -c "from PyQt5 import QtCore"
Install GraphViz https://graphviz.gitlab.io/_pages/Download/Download_windows.html
Install pydot and pyparsing:
pip3 install pydot pyparsing
PyGraphViz is a test dependency of qt_dotgraph, but it is currently unsupported on Windows and building by source is not straight forward.
Manually merging this patch is the currently recommended solution, but I could not get it to work.
(see pygraphviz patch)
Continue with the RQt source install page