Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-26108

Failed to build Zabbix agent 1 on Windows with PCRE2 installed from vcpkg as static dependency

XMLWordPrintable

    • S25-W10/11
    • 0.25

      Steps to reproduce:

      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.

            mprihodko Mihails Prihodko
            mprihodko Mihails Prihodko
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 2h
                2h