Specify Qt installation "For Linux"

Iron-Wolf
2018-03-07 22:20:57 +01:00
parent 4ad5ae6a8a
commit 46415da914

@@ -9,7 +9,8 @@ Build the DolphinQt2 project in Visual Studio. See [[Building for Windows]]
## Notes ## Notes
* Ensure that Qt5 is installed * Ensure that Qt5 is installed
For Linux :
* 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 * 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` * You should end up with a **.run** extension file. Make it executable with `chmod +x *.run`
* Launch the executable * Launch the executable
@@ -19,11 +20,11 @@ Build the DolphinQt2 project in Visual Studio. See [[Building for Windows]]
echo "PATH=\$PATH:Qt/Tools/QtCreator/bin: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 : * Build dolphin with the **Qt5Gui_DIR** env variable set on the Qt lib location :
```bash ``` bash
export Qt5Gui_DIR=Qt/5.10.1/gcc/lib 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 : * Finally, launch dolphin with the **LD_LIBRARY_PATH** set on the same folder. In one command :
```bash ``` bash
env LD_LIBRARY_PATH=Qt/5.10.1/gcc/lib dolphin-emu-qt2 env LD_LIBRARY_PATH=Qt/5.10.1/gcc/lib dolphin-emu-qt2
``` ```
* Using -DENABLE_LTO=true will break the Qt build * Using -DENABLE_LTO=true will break the Qt build