So I was trying to build qtcreator from source, I compiled all the dependencies and moved on to compile qtcreator. I got this weird error when i ran qmake
Project ERROR: Unknown module(s) in QT: script
I did a little googling and found since I've built QT from git I gotto run make module-qtscript. Bt my question is where do run it. It doesn't run in qtbase or in the qt-creator source.
Related
I've been using OpenCV and Marble libraries compiled and linked with Qt. Every time I do it I have problems running cmake to make these libraries. it seems paths in the qt cmake files to other qt cmake files are incorrect. I get errors like:
CMake Error at CMakeLists.txt:67 (find_package):
By not providing "FindQt5DBus.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5DBus", but
CMake did not find one.
Could not find a package configuration file provided by "Qt5DBus" with any
of the following names:
Qt5DBusConfig.cmake
qt5dbus-config.cmake
Add the installation prefix of "Qt5DBus" to CMAKE_PREFIX_PATH or set
"Qt5DBus_DIR" to a directory containing one of the above files. If
"Qt5DBus" provides a separate development package or SDK, be sure it has
been installed.
I can fix this in Ubuntu by running
sudo apt-get install qt5-default
This is fine in Ubuntu, but now I am trying to compile these libraries on mac and windows now. Anyone know a way to get a Qt with all of these paths already correct? tried the installer on windows and mac, and brew on mac. I don't really have time to play with fixing each one of these errors one by one
At least Qt 5.5 on Windows (using the Qt installer) should work out of the box. It has DBus included. Which Qt version are you using currently?
I'm trying to run a simple client example using QTWebsockets using Qt Creator, already add the
QT += websockets
But it throws this when i run build or qmake
:-1: error: Unknown module(s) in QT: websockets
I tried
QT += core websockets
Then realized that since installed Qt Creator from the repositories it wasn't up to date, so I reinstalled it from the Qt website but the problem persisted, I then ran pkg-config --modversion QtCore and it returns 4.8.6, thing is, in the QT version tab of qt creator it shows 5.4.1 to GCC compiler which is the compiler I’m using, in /opt/Qt/5.4/gcc_64/lib there is the QT5WebSockets module even in the help tab are listed the QT5 modules but I can't use them.
Tried with SerialPort and it didn't work, tried with Opengl and it worked which means is a version problem but I can't seem to find how to solve.
sudo apt-get install libqt5websockets5-dev
I solved it, the problem was that I just opened the project I made with qt4, when I tried to build it in the freshly installed qt creator the .pro.user file kept pointing to all qt4.
Solution, create a new project and add the source from the first, or change all the references from qt4 to qt5.
sudo zypper install libqt5-qtwebsockets-devel
This is a borderline question but it's a bit programmy so I thought I'd try here instead of Super User. I am trying to install templar, so I downloaded the source and attempted to run qmake to install it. When I do, I get this message:
Project ERROR: Unknown module(s) in Qt: xmlpatterns
I don't have particular interest in learning about the internals of Qt, other than what is needed to compile templar. Is this message telling me that the module can't be found, or that Qt doesn't know what to do with it?
And how do I remedy this error?
I had the same error while building an other project using Ubuntu.
This worked for me:
sudo apt-get install libqt5xmlpatterns5-dev
Your Qt distribution wasn't build with the xmlpatterns module. You need to download a new distribution from the website. In the worst case you will have to compile it yourself but it isn't quite hard.
Windows 7: I have installed Qt 4.8.4 Win and Qt Creator 2.6.2 Win, VS2010 (from here). When I try to open a project (previously compiled with Qt 4.8.3 / Creator 2.5.2), it says I need a kit (no valid kit) and eventually I end up at Qt version is not properly installed. All is shown in the screenshots below.
I have checked some solutions:
SO QT version is not properly installed, please run make install is for Linux
Some say, I need to install Qt SDK, but where do I find this (this one contains older Creator / Qt versions), and what sense would the individual installers make if I need SDK?
Some say, I need to add Qt to path, but what exactly? Creator? The Qt 4.8.4, the qmake dir?
Somehow I fail with this make install, nothing happens.
I have installed the 5.0.1 including Creator 2.6.2 as one installation, this works. But when I then download 4.8.4. and try to add it as QT Version, same issue: Qt version is not properly installed
Any idea what I would need to do or install.
-- Edit -- List of trials ---
Added my Qt 4.8.4 and its qmake dir to PATH
Re-installed Qt in different order: Qt 4.8.4 first / Creator 2.6.2 thereafter
Opened Qt CMD Prompt qmake install (as in the suggestions): 4.8.4\install:1: Parse Error ('INSTALLING Qt Source Package Version 4.8.4.') Error processing project file: install
qmake install from Qt CMD. Runs 20 minutes, Laptop gets extremly hot, then it crashes
P:\Qt\Libs\4.8.4>qmake\qmake.exe install
QMAKESPEC has not been set, so configuration cannot be deduced.
Error processing project file: install
I had the same problem. Try to choose "qmake.exe" from the BIN folder, not the qmake folder, so in your case probably P:\Qt\Libs\4.8.4\bin\qmake.exe
Based on SO: How to install Qt on Windows after building? I eventually got to http://qt-project.org/doc/qt-4.8/install-win.html
Simply running configure solved it for me, I did not build, nothing else. The installer did apply several patches, so I still do not get why I have to run configure.
I got the following error when I try building Qt Creator from source.
user#host:/usr/share/qtcreator/qtcreator_build$ qmake -version
QMake version 2.01a
Using Qt version 4.8.2 in /usr/local/Trolltech/Qt-4.8.2/lib
user#host:/usr/share/qtcreator/qtcreator_build$ sudo qmake ../qtcreator_fromSrc/qtcreator.pro
Project MESSAGE: Cannot build Qt Creator with Qt version 4.6.2.
Project ERROR: Use at least Qt 4.7.4.
As shown, the Qt library in use above is 4.8.2, which should be qualifying ver 4.7.2. It's installed from source. How can I let the qtcreator installer recognize the right qt version?
My workaround was to copy the source of Qt Creator to the area that doesn't require super user permission. HTH.