Unsolved Applying Qt patch
-
Hello, I got a patch file for Qt in diff format. How can I apply this patch on Qt? I am using Qt installed from windows binary. Do I have to compile Qt-everywhere?
-
Hi,
Yes, you have to compile Qt yourself.
You can grab the source for the version you installed directly with the installer.
-
@SGaist
Thanks,
Do I have to apply diff before compiling Qt or after compiling Qt?
And How can I apply it?
I googled and it says run diff on Qt creator, but diff is not active state on my Qt creator. -
Patches modify source code, you have to apply it before building.
Do you have git installed on your system ? If not you can get WinMerge or KDiff3
-
@SGaist
Yes, I have installed git on windows.
Do you mean that whenever there is a small patch on few source files, I have to
compile whole qt-everywhere-opensource-src? That sounds quite time consuming job. Can I compile only patch files and replace it? -
Depends on the files affected by the patch. If it's only a sub-module then you can only build the submodule.
What is that patch ?
-
@SGaist
The file patched is
src/gui/kernel/qguiapplication.cpp
Can I execute the same command which I used for build whole Qt on parent directory of src or May I move to kernel directory and execute something else? -
Then you only need to build qtbase.
No you can't just move things around.