Updated compilation environment on Windows.

We have completely recreated our Win64 build environment, and rely now on recent versions of g++ & 3rd-party libs. We are interested by your feedback on possible speed improvements.
Want to test new installer ?

1 Like

Is Krita version available? I do not use GIMP.

Yes Krita version is here: https://gmic.eu/files/prerelease/gmic_krita_win64.zip

A few words about the technical changes, in comparison to the binaries I was providing before (for Windows) :

  • g++ version has been updated from version 7 to version 10.
  • This now allows to enable the -flto optimization flag (LTO=Link-Time Optimization), which is supposed to optimize the generated binary even more.

I wrote a short section on the G’MIC Download page, to explain all the steps required to compile G’MIC executables on Windows:

:arrow_forward: https://gmic.eu/download.shtml#source_windows

Let me know, if you encounter issues while trying to compile.

I tried your windows build procedure.
All is ok until link:
C:/msys64/mingw64/bin/…/lib/gcc/x86_64-w64-mingw32/10.2.0/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: cannot find -lfftw3_threads

I have a remark: when you install MSYS2, you get two shells: MSYS2 shell that should be used only for MSYS2 updating and Mingw64 shell that permits to build applications by providing the necessary environment. I don’t see the distinction in your procedure.

fftw3_threads is actually not used in Windows, only used in Linux.
It shouldn’t tell you you need it (if you look at the Makefile or the qmake, this is enabled only for Linux).

I use the Mingw64 shell for all steps, this didn’t make any difference for installing required packages.

Only had tested it a few, not rigorously. I think there might be a speed improvement on the Krita G’MIC-QT (I tested with Thorn Fractal, and Attractor as well MadJik Newton Fractal). I will get back to you once this test ( Render 10x sublevel Thorn Fractal on a 8192x8192 image with max iterations of 255. Which means 6,710,886,400 loops and cpu usage of 27000 MB ) finishes.

Stylize has a different behavior, it does not work, however it crash instead of doing nothing in the end.

EDIT: I do not think there is drastic speed improvement. At most, it’s pretty mild after running it.

@David_Tschumperle I don’t have the resources or time to compile. Would you mind building and uploading the standalone? I would like to give it a try. Thanks!

You can find it here : https://gmic.eu/files/prerelease/gmic_qt_win64.zip

Under MSYS2 or mingw shell:
$ uname

$ echo $OS

So I think that the test permitting to require fftw3_threads is true.

That was a mistake I’ve fixed, but only in the develop branch, my fault.
This should be now fixed in master as well.

Thanks it is ok now