lz4/lz4

Can't find lz4.lib file error in Windows with meson

Aberta

#1.078 aberto em 17 de abr. de 2022

 (9 comentários) (1 reação) (0 responsável)C (1.582 forks)batch import
buildhelp wanted

Métricas do repositório

Stars
 (12.024 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

Describe the bug

When trying to build lz4 in Windows with meson I am getting the following error:

(tar) Extracting C:\gtk-build\src\lz4-1.9.3.tar.gz
Forcing extraction of C:\gtk-build\src\lz4-1.9.3.tar.gz
Extracting C:\gtk-build\src\lz4-1.9.3.tar.gz to C:\gtk-build\build\Win32\release\lz4
Copying files from C:\gtk-build\github\gvsbuild\patches\lz4 to C:\gtk-build\build\Win32\release\lz4
(tar) Exporting lz4
(tar) Exporting C:\gtk-build\src\lz4-1.9.3.tar.gz
Building project lz4 (1.9.3)
Generating meson directory
The Meson build system
Version: 0.59.4
Source dir: C:\gtk-build\build\Win32\release\lz4
Build dir: C:\gtk-build\build\Win32\release\lz4\_gvsbuild-meson
Build type: native build
Project name: lz4
Project version: DUMMY
C compiler for the host machine: cl (msvc 19.31.31105 "Microsoft (R) C/C++ Optimizing Compiler Version 19.31.31105 for x86")
C linker for the host machine: link link 14.31.31105.0
Host machine cpu family: x86
Host machine cpu: x86
Program GetLz4LibraryVersion.py found: YES (C:\gtk-build\tools\pythonx86.3.10.4\tools\python.exe C:\gtk-build\build\Win32\release\lz4\meson\GetLz4LibraryVersion.py)
Message: Project version is now: 1.9.3
Compiler for C supports arguments -Wcast-qual: NO 
Compiler for C supports arguments -Wcast-align: NO 
Compiler for C supports arguments -Wshadow: NO 
Compiler for C supports arguments -Wswitch-enum: NO 
Compiler for C supports arguments -Wdeclaration-after-statement: NO 
Compiler for C supports arguments -Wstrict-prototypes: NO 
Compiler for C supports arguments -Wundef: NO 
Compiler for C supports arguments -Wpointer-arith: NO 
Compiler for C supports arguments -Wstrict-aliasing=1: NO 
Compiler for C supports arguments -DLZ4_DEBUG=1: YES 
Build targets in project: 2

Option buildtype is: debugoptimized [default: release]
Found ninja-1.8.2 at C:\gtk-build\tools\ninja-1.8.2\ninja.EXE
[6/7] Installing files.
Installing meson\lib\lz4.dll to C:\gtk-build\gtk\Win32\release\bin
Traceback (most recent call last):
  File "C:\gtk-build\tools\meson-0.59.4\mesonbuild\mesonmain.py", line 228, in run
    return options.run_func(options)
  File "C:\gtk-build\tools\meson-0.59.4\mesonbuild\minstall.py", line 720, in run
    installer.do_install(datafilename)
  File "C:\gtk-build\tools\meson-0.59.4\mesonbuild\minstall.py", line 512, in do_install
    self.install_targets(d, dm, destdir, fullprefix)
  File "C:\gtk-build\tools\meson-0.59.4\mesonbuild\minstall.py", line 615, in install_targets
    raise RuntimeError(f'File {t.fname!r} could not be found')
RuntimeError: File 'meson\\lib\\lz4.lib' could not be found
FAILED: meson-install 
"C:\gtk-build\tools\pythonx86.3.10.4\tools\python.exe" "C:\gtk-build\tools\meson-0.59.4\meson.py" "install" "--no-rebuild"
ninja: build stopped: subcommand failed.
Error: lz4 build failed

Expected behavior meson build completes.

To Reproduce

meson setup --buildtype=debugoptimized -Ddefault_library=shared _gvsbuild-meson
cd _gvsbuild-meson
ninja
ninja install

System (please complete the following information):

  • OS: Windows
  • Version: 11
  • Compiler: Visual Studio 2022
  • Build System: meson
  • Other hardware specs: Core i5

Additional context Add any other context about the problem here.

Guia do colaborador