I am a beginner to QML, just wanted to test the Hello WOrld program with it. It fails:
/home/saman# /home/saman/QtSDK/Simulator/Qt/gcc/bin/qmlviewer
Qml debugging is enabled. Only use this in a safe environment!
Cannot find any Simulator supporting Qt version 4.7.4.0.
Aborted
I need to know how to solve it.
It looks like you have not installed the Qt-SDK properly. Try to follow the installation instructions that came with the SDK or install it through your distributions package manager.
Try installing SDK (Qtcreator & Qt Kit) from https://download.qt.io/archive/qt/5.0/5.0.0/ (download required version depending on the platform you are working). This would inturn contain samples & demos which will work flawlessly.
All the best!
Related
Hi I have a debian image on BBB I have already installed QT creator on B^3 but the problem is whenever I try to start a new project in qt creator, couldn't see any option of kit. Infact when i add qmake and compiler path the application throws error.
What can I do to solve the problem. Can i directly get the full pack of SDK from qt.io/download ?
You must compile Qt libraries for your device (BBB) on your own, using specified compiler. You can find more information on this topic, here:
Qt Cross-Compilation Options
As soon as you compile Qt libraries for your device, you must move them to appropriate directories (on your BBB).
First, I would suggest learning to cross-compile, it's much faster & more easily maintained when you want to move to new versions. There's a ton of documentation and community around doing this. Windows & Linux both of which are probably dated, but info is still relavent. I've heard it's much easier from a linux host, but that could be biased.
That being said, if you don't want to cross-compile I believe you can simply install the qt embedded libraries. This question may offer some good advice. Once you have the libraries installed, you should be able to use qmake directly to create the Makefile for your project, then you can use cmake, or g++, etc.. to do the actual compiling.
You're likely going to work in command line though, I'm not sure you can run QT Creator on the BBB directly. I could be wrong.
Following advice on a question I asked previously, I am trying to use Box2D with my QML app.
I have downloaded Box2D for QML here: https://github.com/qml-box2d/qml-box2d
I have followed the instructions :
Extracted the files to my Import folder (Qt/5.4/android_armv7/imports/)
Opened Box2D.pro in Qt and built it.
The libBox2D.so file was created as per the instructions I was following.
I have tried using Box2D in my QML project. First with my android app, then with a desktop app.
On each occasion I am getting an error:
module "Box2D" is not installed
I'm stuck with this, can someone help me?
You need to run make install (nmake install on Windows) so that the Box2D files are installed to e.g. Qt/5.4/android_armv7/qml, in your case. To use nmake, you need to have your development environment set up correctly. This is explained here, although that's specifically aimed at building Qt itself. If you're using MSVC, it is enough to open MSVC's developer command prompt and run nmake from there.
I have a project which is using Qt 4.7.4 version (also I can't rebuild it using qt4.8 or qt5 – there are a lot of errors appears, project is big and not mine so fixing issues would be even harder than erasing the whole code and write new code). So I need to make this project, well, working on NativeClient.
Is it even possible? I use Windows and Visual Studio, I was trying to google instructions about qt+nacl on Windows but just can’t find nothing.
Also which pepper version should I use if it depends on it?
Is your qt build supporting native client?
Please check out this
Windows
The Qt-Nacl is not support, for now, in Windows.
By the way, here is the github repository dedicated for it -> https://github.com/msorvig/qt5-qtbase-nacl
In the file nacl-readme it is written :
[...] Windows is not supported as a host platform.
Linux
If you want to compile in Linux, I have made a script that will compile Qt5.4 with NaCl with all the dependencies needed.
https://gist.github.com/theshadowx/438297ac465874a5e226
I also made a video that will show the different steps and a showCase at the end :
https://www.youtube.com/watch?v=q2pMv1Svtqw
I'm new to Qt - please, can someone tell me how to build an app so I can run in on other computer without Qt?
I downloaded Qt for Mac, I can run the provided examples. Now I would like to distribute the resulting application in a self-contained package so that users don't have to install or do anything. What do I have to do?
I have the very latest 5.0.1 version.
This is documented in Qt's documentation:
http://qt-project.org/doc/qt-5.0/qtdoc/deployment.html
Note that currently, a static build of Qt 5.0 does not work. (4.8 works.)
I've installed Qt SDK 5.0.0 beta 2 and Qt Creator 2.6.0. It detects the package but gives a warning that "No qmlviewer installed". I've looked for it and it is in the SDK bin folder. What can I do? I use ubuntu 12.04 and I've added the SDK binaries to the PATH. I can view the QML files through the terminal.
It is not a solution but maybe it will be helpful.
I can see this warning too, but I think it is not a big problem. I have started to move my existing Quick1 code to new Qt version and I have not seen Qt5 Kit in the drop down list. But when I have created new Quick2 application I found it. And everything seems to work without QMLviewer.
Btw, I found forum post about Qt5 and qmlveiwer. Guy says that it was very difficult to support viewer in the actual state because API of declarative modules are changing very quickly. So they have dropped qmlviewer from Qt5.