For the next project, Qt Creator is needed. Here’s a little video showing the installation on a NVIDIA Jetson Tk1 Development Kit. Looky here:
Nothing difficult here. Open up a Terminal and execute:
sudo apt-get install build-essential qt5-default qtcreator -y
which will load Qt Creator. Once Qt Creator is installed, there is still a little setup needed.
Open Qt Creator, and go to:
Tools->Options->Build & Run->Compilers
Click the ‘Add’ button and select ‘GCC’. In the ‘Compiler path:’ text box, place the path to the gcc compiler. On a standard installation the path is: /usr/bin/gcc.
You should also check the ‘Kits’ setting, available from the ‘Kits’ tab. Selecting the Desktop (default) kit, you should see Compiler: GCC. The name GCC should match the Compiler named in the previous tab.
The installation was shown on Linux for Tegra (L4T) release 21.3. Note that no special compiler flags were set. Also, CUDA was not configured.
14 Responses
Hi,
I attempting to compile QT GUI application on Nvidia EVB, I tried to cross compile my code using qmake with arm-g++-gnueabifh-gcc compiler but it won’t compile.
Do you have a guide for compile QT application on ARM target?
Regards, Yakov S.
I am unfamiliar with the NVIDIA EVB, what is it?
Unfortunately I do not use a cross compiler, I only compile on the Jetson device itself. Once Qt Creator is installed as described in the video, it works as a regular Qt system.
There is not enough information in “it won’t compile” for me to offer any suggestions.
I have suceed installed Qt Creator on my LT4 r19 with this command, but after i flash it to make it LT4 r21.1 i cannot use this way to install it, do you know how to solve this problem?
Hi Dega,
You’re going to have to give some more information as to why it doesn’t work for you.
I followed this procedure but the “Kits” setting page does not find gcc. When I try to add a new kit, and specify gcc, it tells me “the compiler gcc (unknown-linux-generic-elf-64 bit) cannot produce code for the QT version 5.5.1 in PATH(qt5) (arm-generic-elf-64bit)
Which version of L4T are you using? The 64-bit reference seems to indicate that you are on a Jetson TX1, not a Jetson TK1.
oops, I am on a TX1, not a TK1. Sorry, I didn’t realize until just now that this post was about creator on the TK1
No worries, I wish the names were a little different to avoid confusion. K and X both usually look the same to me at a quick glance. As I recall on the TX1 it takes a little fiddling for everything to work correctly. First you have to come up with the compiler. The issues was associating the compiler with the kit, I think that I ended up having to hand edit the project file so it recognized the compiler. Unfortunately it’s been a while since I’ve done a Qt installation, or I would give better instructions.
Thanks for reading!
There’s a new article on installing Qt Creator on the TX1: http://wp.me/p7ZgI9-JG
Hi, thanks for sharing your website helps a lot in our project. we are usiing TX1 and haping the same problem “Kit tab GCC not visible”…. anyone soved or any pointer for the solution!
Thanks in advance
There’s a new article on installing Qt Creator on the TX1: http://wp.me/p7ZgI9-JG
I solved it, based on kangalow’s help. You have to go into the compilers, and manually enter a compiler–not just use the definition of gcc that they give you. Then use the ABI input widgets (you’ll see what I mean when you do it) and make it match the real compiler–so it doesn’t find “unknown-linux-generic-elf-64 bit” it finds arm-generic-elf-64bit. I wish I could be more specific, but I only have one TX1 to work on, and I made it work–and now try and remember all the steps…but if you set up the compiler in this way, then in the kits page, it finds it and lets you use it.
I have installed Qt creator on Jetson nano as guided above but when creating a qt quick application i get the following error: Project ERROR: Unknown module(s) in QT: quick
How can i solve it?
These instructions are for a Jetson TK1. Thanks for reading!