-
Problem report
-
Resolution: Unresolved
-
Trivial
-
6.0.40rc1, 7.0.11rc1, 7.2.5rc1, 7.4.0alpha2 (master)
-
None
-
Windows
-
S25-W10/11
-
0.25
Steps to reproduce:
- Install PRCE2 using vcpkg https://github.com/microsoft/vcpkg
git clone https://github.com/microsoft/vcpkg bootstrap-vcpkg.bat vcpkg.exe install pcre2:x64-windows-static
- Try to build Zabbix agent 1 on Windows with PCRE2 statically linked
nmake /Wall -f Makefile PCRE2INCDIR=c:\git\vcpkg\installed\x64-windows-static\include PCRE2LIBDIR=c:\git\vcpkg\installed\x64-windows-static\lib
Result:
PCRE2 static library cannot be found, because the Makefile https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/build/win32/project/Makefile_pcre.inc expects a different filename for it.
The following error happens:
ERROR PCRE2LIBDIR "$(PCRE2LIBDIR)" cannot find neither "$(PCRE2LIBDIR)\pcre2-8-static.lib" nor "$(PCRE2LIBDIR)\pcre2-8-staticd.lib"
Expected:
The third option should be added to the IF so that the static PRCE2 library could be found in case it was installed with vcpkg without changing the makefile.
vcpkg is very handy and widely used by developers.