Unknown module(s) in QT: 3dstudioruntime2 - qt

I installed qt creator and qt 3dstudio with the qtOnline installer for linux. I want to build a project using these two packages. I design my project in qt3dstudio and then I use qtcreator to code the logic of the program. But I cannot import qt3dstudio module into the code.any suggestions??
I need to get this going on ubuntu 16.04LTS. I couldn't find anything useful on the web about the problem. I did try to build qt3dstudio but some of the dependencies caused my ubuntu desktop to stop working and I had to reinstall ubuntu.
QT modules in my .pro file:
QT += widgets qml quick gui 3dstudioruntime2
and when I hit build I get the following error:
Unknown module(s) in QT: 3dstudioruntime2

Related

Qt5 cross-compilation using MXE and NetworkAuth

I am trying to do a Qt cross-compilation from Linux(Ubuntu 16.04) to Windows by following these steps: Building Qt 5 on Linux, for Windows.
I successfully installed the full Qt5 using MXE and the above mentioned steps but, unhappily, I get an error regarding the NetworkAuth library, right after running
i686-w64-mingw32.static-qmake-qt5
in my project folder:
Project ERROR: Unknown module(s) in QT: networkauth
My .pro project file contains the networkauth inclusion as per Qt Documentation and is successfully compiled under Qt Creator:
QT = gui core multimedia network networkauth
I looked into < mxe root >/usr/i686-w64-mingw32.static/qt5/lib and could only find libQt5Network.a and libQt5Network.prl, but no networkAuth related files.
Does anyone have any suggestion on how to solve the problem?
The networkauth package was missing from MXE. I've created one and there's a pull request for it now: https://github.com/mxe/mxe/pull/2112
You can either wait until it's been accepted into the main project or build the patch or our fork manually.

Unknown module(s) in QT: declarative

Sorry, this may be a dumb question, but I'm totally new in QT, I just need to run a project and Log some data.
I installed Qt "qt-unified-windows-x86-2.0.3-2-online", open the project and then click on configure, and then I got this error:
Unknown module(s) in QT: declarative
which wont let me compile the code. Everything else looks fine.
From researching I get that I may lack some libraries, I'm using windows, How do I get the proper library in windows? which is the library I need?
I'm using "Qt Creator user the kit Desktop Qt 5.7.0 MinGW 32bit."
Thank you.
I'm downloading linux, a live version, to try to run the code in there
The error occurs when trying to build a project that depends on the deprecated QtDeclarative module on Qt version 5.6 and later, as the module was removed in version 5.6.
The source code for the module is still available you can compile it from source. Or you can install a Qt version below Qt 5.6 to build the project.
You probably don't have declarative library installed somehow, here it is recommended to use a command-line utility named windeployqt, something like
windeployqt -declarative

QT project port to QT5.7

I get an QT project that uses cmake not qmake. CMakeList.txt file includes some QT modules.
find_package (Qt5 REQUIRED COMPONENTS Widgets Core Gui Multimedia SerialPort Declarative)
I run QT5.7 using sudo ./qt-unified-xxxx.run command. It tried to install /opt/ folder, I didn't change this path.
If I write Qml Quick module instead of Declarative, I get c++11 error.
/QtCore/qbasicatomic.h:61:4: error: #error "Qt requires C++11 support"
# error "Qt requires C++11 support"
After installation, I arrange project setting to use cmake. But qt run button is not active due to below message.
Project ERROR: Unknown module(s) in QT: declarative
I check QT5 submodules, QT5.7 does not include Declarative module.When
I could not find how to install Declarative module or handle this problem.
Ok, I see that Declarative was removed only starting from Qt 5.6 (https://wiki.qt.io/New_Features_in_Qt_5.6). Replace it with QtQuick and fix all QML/C++ code if there are errors (http://doc.qt.io/qt-5/qtquick-porting-qt5.html).

Fresh Qt installation does not run Qt projects, including many of Qt Example projects, says “shader program not linked”

Yesterday I installed Qt 5.4 on my windows 7 PC. But I can not build and run any Qt project including those given in Examples section on the Welcome page of Qt Creator 3.3 except for a few. Also, I can’t run any qml file either using this command from cmd: “qmlscene myqmlfile.qml”
Please note that I have added this path to my environment variables:
C:\Qt\Qt5.4.0\5.4\mingw491_32\bin
and Qt installation directory is
C:\Qt
The error message I get in the output window in Qt creator, and in console when running a qml file from cmd, is as follows:
QOpenGLShaderProgram::uniformLocation( qt_Matrix ): shader program is not linked
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed:
""
Previously, I used PyQt5, and ran qml files using the command
qmlscene myqmlfile.qml
without any problem. Then installed Qt Creator 3.3 to run Qt projects, but failed (got some error saying problem in qmake). Finally I uninstalled PyQt5 and Qt Creator 3.3, downloaded Qt 5.4 and installed it, but still could not run Qt projects.
I found in some website, that I need open GL 2.0 to run Qt projects in Qt 5.4. How do I make sure that I have openGL 2.0? (I checked with GPU-Z and it shows my shader model 2.0 and I don’t know if it has anything to do with OpenGL :( )
Please help me correct whatever is wrong with my Qt installation. This is freaking annoying.
Make sure you have Intel Graphics Driver installed from Intel. Microsoft's default drivers do not include OpenGL support.

Qt 5 Unknown module(s) in QT: uitools

I just started to use Qt today and I don't know if I did something wrong when I installed it but I can't use QFormBuilder.
Linux Xubuntu 64b
what I did:
I clone this repo : git#gitorious.org:qt/qt5.git
init_repository >> ./configure >> make >> sudo make install
I downloaded qt-creator http://qt-project.org/downloads#qt-creator
I created a new project and when I try to include QFormBuilder he tell me that he doesn't know this file.
So, I saw somewhere someone who says that I need to add QT += uitools to the project file, but now when I try to use qmake, I am getting Unknown module(s) in QT: uitools.
Sorry for my english and thank you for your help.
If you get
Project ERROR: Unknown module(s) in QT: designer
you are missing qttools5-dev package.
To add to the answer by #svlasov, on RHEL or CentOS based systems (7.x or 8.x, etc.) you need to install:
yum install qt5-qttools-devel
Depending on the project you are building, you may also need to install qt5-qttools-static.
Have you actually read the documentation?
It writes this at the beginning:
The QFormBuilder class is used to dynamically construct user interfaces from UI files at run-time. More...
Header: #include
qmake: QT += designer
Inherits: QAbstractFormBuilder.
So, just follow that and put this into your qmake project file:
QT += designer
or you can invoke qmake like this:
qmake QT += designer
Of course, you need to make sure that you have the designer installed properly for this. You will need to install a package like libqt5designer5 on your Ubuntu, or if you had installed Qt manually, you will need to install the designer manually as well.
I am not that familiar with Ubuntu. You may need to install some corresponding development package as well. Either way, the point is that the library and headers need to be installed properly on your system which you seem to lack when getting Project ERROR: Unknown module(s) in QT: designer after either of the aforementioned solutions.
Read the documentation, it says to add the designer module to the .pro file:
QT += designer

Resources