Skip to content

Bug: ld: library not found for -lminizi on Mac OS #4864

Closed

Description

@rongcuid

Describe the bug
I tried to compile assimp 5.2.5 on Mac OS 13.1, but failed with library not found.

To Reproduce
Steps to reproduce the behavior:

  1. cmake -DBUILD_SHARED_LIBS=OFF -DASSIMP_WARNINGS_AS_ERRORS=OFF ..
  2. make
  3. See error

Expected behavior
assimp compiles

Screenshots

make -j16 V=1
[ 64%] Built target assimp
[ 65%] Linking CXX executable ../bin/unit
ld: library not found for -lminizip
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [bin/unit] Error 1
make[1]: *** [test/CMakeFiles/unit.dir/all] Error 2
make: *** [all] Error 2

Platform (please complete the following information):

  • OS: Mac OS 13.1
  • Browser [e.g. chrome, safari]
  • Version 5.2.5

MiniZ is available:

ls /opt/local/lib/libminizip*
/opt/local/lib/libminizip.1.dylib /opt/local/lib/libminizip.a       /opt/local/lib/libminizip.dylib

Activity

  1. added
    Bug
    on Jan 5, 2023
  2. kimkulling commented on Jan 17, 2023

    @kimkulling
    Member

    Do you have a complete log, please?

  3. added
    Build
    on Jan 17, 2023
  4. rongcuid commented on Jan 17, 2023

    @rongcuid
    Author

    Sorry, I can't reproduce it (right now I am using Brew). However, on MacPorts, it errored, possibly due to libminiz.so under /opt/local

  5. kimkulling commented on Jan 20, 2023

    @kimkulling
    Member

    Weight!

  6. kimkulling commented on Jan 20, 2023

    @kimkulling
    Member

    I guess this issue is caused by the installation from minizip. Have you tried to enable building our own zlibs?

  7. tellypresence commented on Apr 15, 2025

    @tellypresence
    Collaborator

    Closing due to no response to followup

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

    BugBuild

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions