Windows ARM64 package: import library does not match the README or the renamed DLL

Aperta
#4,997 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
58/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c, cmake
Ambito
build-system

Direzione di ricerca

Start with lib/dll/example/build_package.bat and the package README, then inspect the Windows ARM64 CMake target settings that determine the DLL and import library names. Verify which packaged names let Visual C++ link and load the DLL correctly; done means the package contains the promised import library and its name matches the DLL it loads.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

The win-arm64 package is built with CMake, and lib/dll/example/build_package.bat copies:

  • zstd.dll as dll\libzstd.dll
  • zstd.lib as dll\zstd.lib

The package README promises dll\libzstd.lib as the import library for Visual C++, so that file is missing, like in #4027 for the MSYS2 packages (fixed there by #4992).

There is likely a second problem: an import library records the name of the DLL it was built for. Linking with zstd.lib should produce an executable that loads zstd.dll, which this package renames to libzstd.dll. I could not test this on Windows.

This package has not shipped yet (v1.5.7 only has win32 and win64), so it can be fixed before its first release. Two options: keep the DLL as zstd.dll in this package and ship the import library as dll\libzstd.lib, or build the DLL as libzstd.dll so that its import library matches the package.

Related: #4395.

Lingua principale
C
Stelle
28.1k
Fork
2.7k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di facebook/zstd

Tutte le issue di facebook/zstd

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.