Skip to content

Visual Studio build error with assimp 5.3.1 via vcpkg in manifest mode #5340

Closed

Description

@kcrif

While trying to update from version 5.2.5 to version 5.3.1 using the manifest mode from vcpkg Visual Studio (17.8.1) the build results in the following error

4>CMake Error at scripts/cmake/vcpkg_fixup_pkgconfig.cmake:141 (message):
4>
4>  C:/ProgramData/vcpkg/downloads/tools/msys2/6f3fa1a12ef85a6f/mingw32/bin/pkg-config.exe
4>EXEC : --exists assimp failed with error code: 1
4>
4>      ENV{PKG_CONFIG_PATH}: "C:/ProgramData/vcpkg/packages/assimp_x64-windows-static-md/lib/pkgconfig;C:/ProgramData/vcpkg/packages/assimp_x64-windows-static-md/share/pkgconfig;<...>/vcpkg_installed/x64-windows-static-md/x64-windows-static-md/lib/pkgconfig;<...>/vcpkg_installed/x64-windows-static-md/x64-windows-static-md/share/pkgconfig"
4>      output: Package minizip was not found in the pkg-config search path.
4>
4>  Perhaps you should add the directory containing `minizip.pc'
4>
4>  to the PKG_CONFIG_PATH environment variable
4>
4>  Package 'minizip', required by 'assimp', not found
4>Call Stack (most recent call first):
4>  scripts/cmake/vcpkg_fixup_pkgconfig.cmake:206 (z_vcpkg_fixup_pkgconfig_check_files)
4>  buildtrees/versioning_/versions/assimp/f9934603cb6f42343b122951f22b5af3c1967cde/portfile.cmake:84 (vcpkg_fixup_pkgconfig)
4>  scripts/ports.cmake:170 (include)

Version 5.2.5 works fine

Activity

  1. added
    Build
    Bug
    on Nov 23, 2023
  2. kimkulling commented on Nov 30, 2023

    @kimkulling
    Member

    This is an issue of the vcpkg package. I am not the Maintainer for it. Sorry!

  3. kcrif commented on Dec 1, 2023

    @kcrif
    Author

    I think this is an issue with the CMakeLists.txt
    this option was set to OFF in previous versions, now it is set to ON for WIN32. While using vcpkg i cannot change this option

    IF (WIN32)
    OPTION( ASSIMP_BUILD_ZLIB
    "Build your own zlib"
    ON
    )
    ELSE()
    OPTION( ASSIMP_BUILD_ZLIB
    "Build your own zlib"
    ON
    )
    ENDIF()

  4. kcrif commented on Dec 1, 2023

    @kcrif
    Author

    According to Build.md

    • ASSIMP_BUILD_ZLIB (default OFF): Build our own zlib.

    this should be turned OFF

  5. kimkulling commented on Dec 29, 2023

    @kimkulling
    Member

    I do agree, I have prepared a PR for this.

  6. moved this from ✅ Done to 👀 In review in The Asset-Importer-Lib DevOps Boardon Dec 29, 2023
  7. kimkulling commented on Dec 29, 2023

    @kimkulling
    Member

    Shall be fixed.

  8. moved this from 👀 In review to ✅ Done in The Asset-Importer-Lib DevOps Boardon Dec 29, 2023
  9. kcrif commented on Jan 8, 2024

    @kcrif
    Author

    Should be turned off for windows, because i am using Visual Studio for Windows

  10. added
    Regression
    on Apr 15, 2025
  11. tellypresence commented on Apr 15, 2025

    @tellypresence
    Collaborator

    @kcrif Did you try overriding that Cmake option in your project CMakeLists.txt file?

  12. kcrif commented on Apr 15, 2025

    @kcrif
    Author

    @tellypresence I think it was resolved by the vcpkg team, since I only get the library via vcpgk manifest mode. Currently, it's version 5.4.3, since there's unfortunately no new assimp release yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugBuildRegression

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions