Skip to content

Assimp not linking on macOS #150

Description

@themightyoarfish

The cmakelists is finding assimp, but not linking correctly it as far as I can tell, at least for assimp 5.4.3 which I get from homebrew). Thus during linking

ld: library 'assimp' not found
c++: error: linker command failed with exit code 1 (use -v to see invocation)

To make it link, I applied this diff. I'm not sure if older assimp versions maybe do not support this.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d033515..e27d6ae 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -95,7 +95,7 @@ else()
 endif()

 if(${assimp_FOUND})
-  list(APPEND EXTRA_LIBRARIES assimp)
+  list(APPEND EXTRA_LIBRARIES ${ASSIMP_LIBRARIES})
   list(APPEND EXTRA_SOURCE src/glk/io/mesh_io.cpp)
 endif()

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions