https://www.linaro.org/downloads/
2. Click on Tools at the top of the Qtcreator -> build& run
3. Set up the Cmake. (This is just a skip. I won't use it even if I set it up.)
Press "Add…" and set as below (based on default path when installing the toolchain)
Path : /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/cmake
4. Click Debuggers -> "Add…" and add as below
Path: /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/aarch64-gnu-linux/aarch64-gnu-linux-gdb
5. Compiler -> "Add…" and add C++(g++) / C(gcc)
c++ compiler path : /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/aarch64-gnu-linux/aarch64-gnu-linux-g++
c compiler path: /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/aarch64-gnu-linux/aarch64-gnu-linux-gcc
6. Select Qt versions -> "Add…" and select qmake in toolcain
7. Select "Kits" -> Set to the same value as below
Device type: Generic linux device
sysroot: /usr/local/oecore-x86_64/sysroots/aarch64-gnu-linux
compiler: 5.Compiler
debugger: 4.debugger
qt: 6.qmake
cmake : /usr/bin/cmake
8. Input Command in Command
$ sudo -s
modify bashrc (add command)
$ vi ~/.bashrc
.…
alias qtcreator='source /usr/local/oecore-x86_64/environment-setup-aarch64-gnu-linux;
/opt/Qt5.10.0/Tools/QtCreator/bin/qtcreator'
...
And save
$source ~/.bashrc
9. When running Qt, you must always run qtcreator as command from the terminal to build... I don't know why.
#QT #QtCreator #Qmake #C++ #C #Linux #Embedded #Download Toolchain #toolchain #Linaro