diff --git a/Building-With-Qt.md b/Building-With-Qt.md index ad8b28a..1ed116a 100644 --- a/Building-With-Qt.md +++ b/Building-With-Qt.md @@ -12,10 +12,18 @@ Build the DolphinQt2 project in Visual Studio. See [[Building for Windows]] * Ensure that Qt5 is installed * Download the Open Source version of Qt from [Qt official download page](https://www.qt.io/download) or from the [archive website](https://download.qt.io/archive/qt/) for an older version * You should end up with a **.run** extension file. Make it executable with `chmod +x *.run` - * Launch the executable as root + * Launch the executable * Go to the end of the procedure * Add the location of the bin directories to the PATH environment variable (exemple with V5.10.1) : ``` bash - echo "PATH=\$PATH:/opt/Qt/Tools/QtCreator/bin:/opt/Qt/5.10.1/gcc/bin" >> ~/.bashrc + echo "PATH=\$PATH:Qt/Tools/QtCreator/bin:Qt/5.10.1/gcc/bin" >> ~/.bashrc + ``` + * Build dolphin with the **Qt5Gui_DIR** env variable set on the Qt lib location : + ```bash + export Qt5Gui_DIR=Qt/5.10.1/gcc/lib + ``` + * Finally, launch dolphin with the **LD_LIBRARY_PATH** set on the same folder. In one command : + ```bash + env LD_LIBRARY_PATH=Qt/5.10.1/gcc/lib dolphin-emu-qt2 ``` * Using -DENABLE_LTO=true will break the Qt build \ No newline at end of file