Building Source with makefile using msys2

Get help for specific problems
Posts: 3
Joined: 5 Nov 2020

profoundisputes

I am trying to build the binaries from source on my Windows 10 computer. I installed msys2 and installed the following packages:
gcc 11.2.0-3
gcc-libs 11.2.0-3
curl 7.80.0-3
mingw-w64-x86_64-curl 7.81.0-1
mingw-w64-x86_64-gcc 11.2.0-8
mingw-w64-x86_64-gtk2 2.24.33-4
mingw-w64-x86_64-gtk3 3.24.31+76+g3dc44becf0-1
mingw-w64-x86_64-openssl 1.1.1.m-1
mingw-w64-x86_64-wxWidgets 3.0.5.1-7
openssl 1.1.1.m-1
openssl-devel 1.1.1.m-1
When I run from MSYS2 MinGW64 application:
remake -f makefile all
I get the following errors:
mkdir -p /tmp/FreeFileSync_x86_64_Make/ffs/src/
g++ -std=c++2a -pipe -DWXINTL_NO_GETTEXT_MACRO -I../.. -I../../zenXml -include "zen/i18n.h" -include "zen/warn_static.h" -Wall -Wfatal-errors -Wmissing-include-dirs -Wswitch-enum -Wcast-align -Wnon-virtual-dtor -Wno-unused-function -Wshadow -Wno-maybe-uninitialized -O3 -DNDEBUG `wx-config --cxxflags --debug=no` -pthread `pkg-config --cflags openssl` `pkg-config --cflags libcurl` `pkg-config --cflags libssh2` `pkg-config --cflags gtk+-3.0` -isystem/usr/include/gtk-2.0 -c application.cpp -o /tmp/FreeFileSync_x86_64_Make/ffs/src/application.cpp.o
cc1plus.exe: warning: /usr/include/gtk-2.0: No such file or directory [-Wmissing-include-dirs]
In file included from ui/../ui/file_grid_attr.h:12,
                 from ui/../config.h:14,
                 from ui/progress_indicator.h:14,
                 from ui/batch_status_handler.h:12,
                 from application.cpp:25:
../../wx+/dc.h:95:2: error: #error why is wxHAVE_DPI_INDEPENDENT_PIXELS not defined?
   95 | #error why is wxHAVE_DPI_INDEPENDENT_PIXELS not defined?
      |  ^~~~~
compilation terminated due to -Wfatal-errors.
I commented out the following in "..\FreeFileSync_11.17_Source\wx+\dc.h":
#ifndef wxHAVE_DPI_INDEPENDENT_PIXELS
#error why is wxHAVE_DPI_INDEPENDENT_PIXELS not defined?
#endif
When I rerun the code I get this error:
g++ -std=c++2a -pipe -DWXINTL_NO_GETTEXT_MACRO -I../.. -I../../zenXml -include "zen/i18n.h" -include "zen/warn_static.h" -Wall -Wfatal-errors -Wmissing-include-dirs -Wswitch-enum -Wcast-align -Wnon-virtual-dtor -Wno-unused-function -Wshadow -Wno-maybe-uninitialized -O3 -DNDEBUG `wx-config --cxxflags --debug=no` -pthread `pkg-config --cflags openssl` `pkg-config --cflags libcurl` `pkg-config --cflags libssh2` `pkg-config --cflags gtk+-3.0` -isystem/usr/include/gtk-2.0 -c application.cpp -o /tmp/FreeFileSync_x86_64_Make/ffs/src/application.cpp.o
cc1plus.exe: warning: /usr/include/gtk-2.0: No such file or directory [-Wmissing-include-dirs]
In file included from ../../zen/file_io.h:14,
                 from fatal_error.h:11,
                 from application.cpp:29:
../../zen/guid.h:24:2: error: #error Where is Glibc?
   24 | #error Where is Glibc?
      |  ^~~~~
compilation terminated due to -Wfatal-errors.
makefile:122: [/tmp/FreeFileSync_x86_64_Make/ffs/src/application.cpp.o] error 1 (ignored)
After few hours of troubleshooting I don't understand what I am doing wrong.
Posts: 2
Joined: 8 Sep 2022

jchomaz

Hi Profoundisputes,

Did you solve your problem ? Im stuck in the same point as you (with the same error)

Thanks !