I think i made all as you described. But on final stage of making file i got following error.
I used clean updated Raspberry PI OS. Acrualy i got same error last time. I actidently tried to compile last version of FFS, instead of 10.25.
pi@raspberrypi:~/FFS/FreeFileSync/Source $ make
mkdir -p /tmp/FreeFileSync_armv7l_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+-2.0` -isystem/usr/include/gtk-2.0 `pkg-config --cflags libselinux` -DHAVE_SELINUX -c application.cpp -o /tmp/FreeFileSync_armv7l_Make/ffs/src/application.cpp.o
In file included from ui/../ui/file_grid_attr.h:12,
from ui/../config.h:13,
from ui/progress_indicator.h:14,
from ui/batch_status_handler.h:12,
from application.cpp:24:
../../wx+/dc.h:72:2: error: #error why is wxHAVE_DPI_INDEPENDENT_PIXELS not defined?
72 | #error why is wxHAVE_DPI_INDEPENDENT_PIXELS not defined?
| ^~~~~
compilation terminated due to -Wfatal-errors.
make: *** [Makefile:124: /tmp/FreeFileSync_armv7l_Make/ffs/src/application.cpp.o] Error 1
]]>