Build and run problems with qtquick
-
@ambershark I just wanted to have an easy usable qt environment to save time to qml files to create qt projects. This 'Hello world' is predefined in qtcreator itself as beginning text of main.qml.
I begun a qtquick project and haven't added anything else than I changed the greeting message inside. Then I just started 'run' and received the error messages. I am only confused what everything is missed or mismatching.-Linuxfluesterer
-
@Linuxfluesterer Ok so that leads me to believe your kits are messed up. I'm not a Qt Creator user but check your settings and make sure there are no errors in your kits. They will usually have a red exclamation if there's an issue.
Then try a build and post the full build log here and we can help further.
-
After trying to install the pure qtcreator from qt website on a new installed Linux virtual box, I was not able to run and build the simple example qtquick man.qml.
So, I don't know, what it's lacking of, I assume, the settings, but how should I know?
So then, thank you for your suggestions, I'm sorry to say, for this time I give it up to try, to use qtcreator.-Linuxfluesterer
-
@Linuxfluesterer QtCreator is just an IDE. If you want to use Qt/QML/QtQuick you need to install Qt itself. Simply use the online installer and select a Qt version during installation.
-
@jsulm said in Build and run problems with qtquick:
@Linuxfluesterer QtCreator is just an IDE. If you want to use Qt/QML/QtQuick you need to install Qt itself. Simply use the online installer and select a Qt version during installation.
That was my idea also. I installed a new blank OS (Sabayon 64bit with Plasma 5.12.2 and Kernel 4.14) into a VirtualBox machine. Then I installed a browser (Vivaldi) and went to the qt.io website to download the online installer for my Linux system.
So far so good. After downloading I started the installer and begun to choose components, the qt-creator is checked already. So I checked the qt engine (qt 5.10) but then I received an error message:
Not enough disk space to store temporary files! 983,15 MiB are available while 1.30 GB are at least required.
Hmmm I chose a 26 GByte System partition to install my Sabayon into, And at least I had 17 GBytes of free space. But qt installer insists on only 983 MBytes that were free. Strange and less helpful.-Linuxfluesterer
-
@Linuxfluesterer Are you sure your partition uses all available space? Is there enough free space on the root partition (for /tmp)?
-
@jsulm said in Build and run problems with qtquick:
@Linuxfluesterer Are you sure your partition uses all available space? Is there enough free space on the root partition (for /tmp)?
yes, when I leave a df -h command, then I receive 17 GB available space.
-
@Linuxfluesterer This error is because it uses /tmp to extract and install. Chances are your /tmp filesystem is set low.
In most linux systems (especially cutting edge ones like gentoo, arch, etc) they use RAM for /tmp. So you just don't have enough space on your /tmp. It could have been something else was using tmp (reboot would fix, or clean it yourself), or it could be it just is only allocated 1GB.
Temporarily you can just reassign /tmp to a physical HD location for your install.
That's not a Qt issue but one with your setup of linux. Probably because it's a vm and people set low RAM values on their vms. :)
-
@Linuxfluesterer Do you have an extra partition for /tmp or is it a ramdisk?
-
@jsulm I don't know 100% sure for his install, but most will use tmpfs which will essentially be a ram disk. Not stored on actually HD anywhere.
I.e. this excerpt from one of my linux systems:
tmpfs 7.8G 472K 7.8G 1% /tmp
I can't imagine that a cutting edge distro like Sabayon isn't using tmpfs, so again I'm not 100% sure but like 97%. ;)
-
@ambershark said in Build and run problems with qtquick:
@jsulm I don't know 100% sure for his install, but most will use tmpfs which will essentially be a ram disk. Not stored on actually HD anywhere.
I.e. this excerpt from one of my linux systems:
tmpfs 7.8G 472K 7.8G 1% /tmp
I can't imagine that a cutting edge distro like Sabayon isn't using tmpfs, so again I'm not 100% sure but like 97%. ;)
Hmmm. I told you, that I created a VirtualBox machine with size of 26 GBytes for installing a fresh Sabayon. After installing the Sabayon OS there was a free space of 17 GBytes.
Or do you suggest, I should create a RAM-Disk for tmpfs within a virtual machine, which has only 2 GBytes of dedicated RAM?-Linuxfluesterer
p.s. of course Sabayon (it is a derivate of Gentoo) can handle tmpfs and RAM disks.
-
@Linuxfluesterer No it's not the size of your hard drive, it's the size of the RAM allocated to that machine and how much it uses for /tmp.
So do a
df -h
and you can post the output or at least see how much space you have on tmp. If it is less than the 1.4gb needed for the install, up it. Or as I suggested temporarily point /tmp to a hard disk if you don't have the ram for a bigger /tmp.