OMNET++ 5.1.1 and Qt - qt

I am installing OMNET++ 5.1.1. However, during the installation, it is reported that:
configure: error: Cannot build Qt apps, probably due to missing or too old Qt packages. Make sure Qt development packages are installed and newer than Qt 5.4. You can disable Qtenv by setting the WITH_QTENV variable to "no" in configure.user.
Then I download and install the Qt from https://www.qt.io/download/. But it still report the same problem. How can I solve this problem ? Thank you.

I assume you're running some kind of GNU/Linux, because on Windows and macOS, the bundled Qt libraries should just work.
Try installing the Qt5 development packages using your distro's native package manager, then they should be detected.
If you can't, or they are too old, take a look in the configure.user file, and adjust the value of the QT_PATH variable according to the instructions there.
EDIT:
Since the OS was clarified: On Windows, you don't need to download Qt, or any other library separately. They are all bundled with the OMNeT++ distribution, and should work fine.
Just make sure you always use the included mingwenv shell to install and run OMNeT++. In it, the environment variables are set up as necessary.

If you are installing OMNET++ on windows make sure you extract the zip file to a folder other than "Program Files" and deactivate your antivirus during the installation process.

Related

QT version seems to be older than installed

I'm new to QT and QML, I found a cool KDE Plasma addon on the internet and wanted to edit it, but flushMode property, which I want to use, was introduced in QT 5.13. I have installed QT 5.15 (to be exact, 5.15.3), rebooted and got file:///filename.qml:58:2: "VideoOutput.flushMode" is not available in QtMultimedia 5.8. I also checked that qt5-multimedia is 5.15.3+kde+r0-1 (latest from arch linux repository), checked the QT version in system settings, everything says it's 5.15, but in the logs it acts like it's 5.8. Is it possible that I have 2 different qt5 installations, or why does this happen?
Yes, you very likely have two Qt installed. You got system Qt package that comes with desktop environment, I believe it does not include development files (headers), to obtain them you installed qt-something-dev package that installed another Qt as dependency.

Full & complete uninstall QT Creator

Question:
How to uninstall QT Creator from Linux machine?
I have a corrupted install on a Debian Jessie machine. I have tried reinstalling, fixing, etc. and with no luck. I was advised to uninstall completely, grab the newest version and reinstall.
The problem is that I'm not sure how to do this and every time I try, QT keeps coming back with the same exact issues, I'm assuming because of some config files that are not getting deleted in the removal process.
Running qmake --version gives me this output:
QMake version 3.0
Using Qt version 5.6.2 in /home/greg/anaconda2/lib
Running pkg-config --modversion QtCore gives me this output:
Package QtCore was not found in the pkg-config search path.
Perhaps you should add the directory containing `QtCore.pc'
to the PKG_CONFIG_PATH environment variable
No package 'QtCore' found
The problem is that I've got several versions installed, in different folders and I want to completely start over with a fresh install of QT Creator. Version 5.10 was installed yesterday via the QT maintenence tool, but for some reason won't run. I just need to remove it and start over. QT 5.9.3 and 5.10 are installed at /home/greg and you can see 5.6.2 is installed in my anaconda2 folder. Not sure how this happened. I'm still a newb so still learning.
How can I do a complete/full uninstall and removal of ALL QT creator files without deleting other QT files, such as KDE dependencies, etc., so that I can do a fresh install with new config settings????
Qt Creator creates some configuration files and subdirs in ~/.config/QtProject/ (also check ~/.config/Nokia/), which aren't cleaned up by removing the package (in general that's the case with all personal settings in your home directory). Removing them manually should solve that issue, if your diagnosis is right and it's not a more general problem of your system or setup.

How do I create my .run file to install Qt 5.9.0 on 32-bit debian?

As per my information, Binaries (or offline/online installers) for installing Qt (>= 5.6) on 32-bit linux are not provided. For example, If I want to use Qt 5.9.0 on 32-bit linux (debian, specifically), the only option is to download Qt source and build it. I have successfully built Qt 5.9.0 on my 32-bit linux machine. But I have to do this on all my development PC's. Instead if I can build it once and create an installer somehow, that will save a lot of time. Is there a way to create offline installer (e.g. *.run files) for installing Qt 5.9.0 on 32-bit Linux (e.g. debian)?
As stated by #Velkan, Qt is available on 32 bit Debian from the official repos.
But, indeed, there is no 32-bit Linux installer from the Qt project.
Regarding copying a Qt install from a Debian PC to another, you do not need to create an installer. Just copy/tar/zip the directory in which Qt is installed. The only requirement is that you must keep the installation in the same absolute path as the Qt Core library has the path hardcoded in it and it is use for plugin detection.
NB1: It is possible to patch Qt Core library to change the hardcoded path and even make it relative. It is not officially documented but you can take a look in the sources of tools like windeployqt or the online installer
NB2: Do not use Qt 5.9.0, prefer 5.9.2. Both are forward and backward binary compatible, but the latter received bug fixes.

Compiling third party libraries with Qt

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?

QtWebKit gstreamer1.0 not found

I want to compile PhantomJS with gstreamer. I downloaded the source code and started the build process with
./build.sh --qmake-args WEBKIT_CONFIG+='use_gstreamer'
I get the following Error
Project ERROR: gstreamer-1.0 development package not found
I have an debian 8.0 system with installed libgstreamer1.0 and glib2.0 (installed with apt-get).
Can someone help me?
If you haven't installed them, you'll need the development packages as well which should be something like libgstreamer(X.X.X)-dev, where X.X.X is whichever version of gstreamer you have installed. The development package has the necessary header files required for compilation.
you may need to modify the build script to add "{GStreamerInstallDir}/1.0/{architecture}/lib/pkgconfig" to the CMAKE_MODULE_PATH configuration so cmake can find the package.
Not sure how to do this in your environment as I build on a windows OS where I just specify this using an environment variable from a wrapping batch script.

Resources