Skip to content

Dependency error when porting (minizip[bzip2]) #18416

@playgithub

Description

@playgithub

When porting xlsxio, link error as below, but minizip[bzip2] as a dependency has been installed with the same triplet

minizip.lib(unzip.c.obj) : error LNK2019: unresolved external symbol __imp_BZ2_bzDecompressInit referenced in function unzOpenCurrentFile3
minizip.lib(unzip.c.obj) : error LNK2019: unresolved external symbol __imp_BZ2_bzDecompress referenced in function unzReadCurrentFile
minizip.lib(unzip.c.obj) : error LNK2019: unresolved external symbol __imp_BZ2_bzDecompressEnd referenced in function unzCloseCurrentFile
xlsxio_read.dll : fatal error LNK1120: 3 unresolved externals

vcpkg.json for port xlsxio

{
  "name": "xlsxio",
  "version-string": "commit-e3acace39e5fb153f5ce3500a4952c2bf93175bd",
  "port-version": 1,
  "description": "Cross-platform C library for reading values from and writing values to .xlsx files",
  "homepage": "https://github.com/brechtsanders/xlsxio",
  "dependencies": [
    "expat",
    {
      "name": "minizip",
      "features": [
        "bzip2"
      ]
    }
  ],
  "features": {
    "libzip": {
      "description": "use libzip instead of minizip",
      "dependencies": [
        {
          "name": "libzip",
          "features": [
            "bzip2"
          ]
        }
      ]
    },
    "wide": {
      "description": "also build utf-16 library"
    }
  }
}

Metadata

Metadata

Assignees

Labels

category:port-bugThe issue is with a library, which is something the port should already support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions