Diffimg c++ Image comparer Diffimg-2.2.0 - c++

H I have the source code of Diffimg-2.2.0 (Image comparision tool) and the compilation process return this error:
D:\C++\Diffimg-2.2.0-src\3rdparty\qtpropertybrowser\qtpropertybrowser.h:44: error: QtGui/QWidget: No such file or directory
#include
^
Using: QT Creator 3.3.0 and Cmake 2.6 as compiler
Source code on SF: http://sourceforge.net/projects/diffimg/files/
Somebody has modified this code yet?

This error means that you're compiling the code with the wrong version of Qt.
Most likely the project uses Qt4 and you're compiling with Qt5. They are not compatible.
Since you're on windows, you can find Qt 4.8 here : http://qt-project.org/doc/qt-4.8/install-win.html
Once you've installed Qt4 on your system, you can add it to QtCreator in Options->Compiler->Qt versions if it doesn't appear automatically.

Related

Linux --> Windows CrossCompilation Error with QT Creator

I want to do a cross compilation on Linux for a Windows use.
I have download the compiler MinGW for C++ on my VM, I tried to set it up as a Kit, and here's the error I have :
Error: The compiler "MinGW (C++, ×86 64bit at /usr/bin/×86_64-w64-mingw32-g++)" (x86-windows-msys-pe-64bit) cannot produce code for the Qt version "Qt 6.4.1 GCC 64bit" (x86-linux-generic-elf-64bit).
Do I have to download an other version of MinGW? Which one then?
Thanks a lot !
I had the same issue on Arch. I think this "warning" is a bug. I just ignore that fact, and try build app. I wasn't get any errors, even was try to open output .exe in Windows and don't notice any issue.

Make - Internal compiler Error under QT 5.14.2 "Q_CORE_EXPORT"

I just installed QT Creator with QT under Win10 to build an already existing project. (Under Ubuntu everything went fine running the Make file). I'm not an expert for QT therefore I'm not able to find out how to resolve the error:
C:\Qt\5.14.2\mingw73_64\include/QtCore/qfloat16.h:102:54: internal compiler error: in make_rtl_for_nonlocal_decl, at cp/decl.c:6590
Q_CORE_EXPORT static const quint32 mantissatable[];
My gcc version is 8.3.0 (x86_64-posix-seh, Built by strawberryperl.com project). Is there something missing or broken in the installation?
On windows, you generally need to have a Qt which was built with the same (or compatible, but that can be hard to verify) compiler and relevant build options, as what you are using to build your application.
I doubt you will find a pre-built Qt SDK for that version of gcc, so if you want to use it, you should build Qt from sources. It can be a bit tedious on Windows, there are a fewf prerequisites you have to get etc. I recommend you use the Qt online installer to install a MinGW version of Qt SDK, and matching version of MinGW (also offered by the Qt installer.
I just found out from qmake.stash, that the included script for creating the make file always referenced a false path for the gcc compiler. I therefore build i manually with the QT Creator and it worked as expected. So I guess the fault was due to different paths for gcc in the environmental variables.
Here is the bug, there is a link to the patch: https://github.com/msys2/MINGW-packages/issues/5006
Also you can just downgrade to mingw gcc 8.2.0

QT enable cross-compiling using MinGW (precompiled)

Good day all
I have been searching for a method of cross-compiling for QT-Creator in Linux for sometime now, and I have been having alot of trouble with it.
Background info
please note: I am on a Linux machine, and would like to cross compile Windows Apps
My system:
Ubuntu Gnome 16.10
QT Creator 4.0.2 (based on QT 5.7)
I have came across a few SO links, a few blogs with broken instructions, etc and one seeming helpful but dependencies could not be found.
I have also attempted another compiler MXE and cloned and attempted to build the MXE compiler from the GIT repo, which failed (no solution for the build error - VTK build error)
I decided to download precompiled MinGW compilers (i686 and x86_x64 versions) from sourceforge
Issue:
In QT Creator, adding the compiler is done without an issue, adding the "Kit" and selecting the newly added compiler, an red exclamation gives an error
The Compiler (x86_windows_msys_pe_64bit) cannot produce code for QT version 5.7.0 GCC 64Bit (x86_linux_generic_elf_64bit)
This occurs for both 32 + 64 bit compilers.
I think that you should have a QT version that matches your compiler ABI. The error tells you that the MinGW compiler doesn't match the Linux version of QT you have used. Therefore, get a windows version of QT and use it instead (just as you've added WinGW).
You can download Qt Binaries from here.

How to compile fortran files in an QT Project under OSX?

I have an QT project with some fortran code included. Its working fine in Linux and Windows. But in OSX its not compiling and saying :
error: invalid value 'f95' in '-x f95'
Which i guess is because clang/gcc version which comes with XCode does not include fortran.
I am using MacOSX10.11 with LLVM 7.3.0(clang-703.0.31) and QT 5.6

Can't compile Qt Creator

I'm trying to compile Qt Creator source code and got the following error message:
fatal error: QtCore/private/qwineventnotifier_p.h : No such file or directory.
I'm on Win XP SP3 using QtSDK version 1.1.3, MinGW (g++ 4.5.2). In the QtCore folder of the QtSDK includes there is no any folder named private, and searching for qwineventnotifier_p.h yielded nothing. What can i do?
[Edit:]
Apparently there's an issue with this recently:
https://bugreports.qt-project.org//browse/QTCREATORBUG-3701
https://bugreports.qt-project.org//browse/QTBUG-17218
You my try getting the file from somewhere, e.g.:
http://cep.xor.aps.anl.gov/software/qt4-x11-4.2.2-browser/df/d69/src_2corelib_2kernel_2qwineventnotifier__p_8h-source.html
But I can't tell if this will be enough or if Qt Creator will rely on the actual sources for that header file.