Add instructions for using chroot toolchain in QtCreator

This commit is contained in:
Roman Chistokhodov 2017-12-09 14:45:54 +03:00
parent 0d56674e28
commit 87d6ca3b68
1 changed files with 14 additions and 0 deletions

View File

@ -125,3 +125,17 @@ Insert your actual user name in place of `yourusername`. Then prepend any make o
#### Method 4: Install the needed g++ version yourself #### Method 4: Install the needed g++ version yourself
TODO: describe steps. TODO: describe steps.
#### Configuring Qt Creator to use toolchain from chroot
Create a file with the following contents anywhere:
```sh
#!/bin/sh
schroot --chroot steamrt_scout_i386 -- cmake "$@"
```
Make it executable.
In Qt Creator go to `Tools` -> `Options` -> `Build & Run` -> `CMake`. Add a new cmake tool and specify the path of previously created file.
Go to `Kits` tab, clone your default configuration and choose your CMake tool there.
Choose the new kit when opening CMakeLists.txt.