Coder Social home page Coder Social logo

Comments (8)

argrento avatar argrento commented on June 13, 2024 8

I have the same issue with ROS Kinetic, OSX 10.11.6 and assimp-3.3.1.
Location of lib: /usr/local/lib/libassimp.dylib

Fix:

  1. Open ~/ros_catkin_ws/build_isolated/geometric_shapes/CMakeFiles/geometric_shapes.dir/link.txt
  2. Replace -lassimp with /usr/local/lib/libassimp.dylib.

from geometric_shapes.

mikepurvis avatar mikepurvis commented on June 13, 2024 1

Okay, can confirm that I see the issue on my El Cap machine. With the following CMakeLists.txt:

find_package(assimp)
message("xxxx ${ASSIMP_LIBRARIES}")

find_library(
    assimp_LIBRARIES
    NAMES assimp
)
message("yyyy ${assimp_LIBRARIES}")

I have this output:

$ cmake .
xxxx assimp
yyyy /usr/local/lib/libassimp.dylib

So find_library does the right thing, but assimp's hardcoded library name most definitely doesn't.

from geometric_shapes.

pgorczak avatar pgorczak commented on June 13, 2024

On a related note, the assimp version check in CMakeLists.txt failed for me on Yosemite with the latest brew assimp (also with --HEAD which is 3.1.1)

from geometric_shapes.

davetcoleman avatar davetcoleman commented on June 13, 2024

This issue is old - was a solution found or is it still a problem? Can it be closed?

from geometric_shapes.

de-vri-es avatar de-vri-es commented on June 13, 2024

geometric_shapes simply uses a system provided cmake module or otherwise pkg-config. If that results in linking errors it sounds like there is a problem with the way Assimp is packaged by homebrew.

from geometric_shapes.

robobit avatar robobit commented on June 13, 2024

I had the same issue with Kinetic, OS X 10.12.5 and assimp 3.3.1.
I used the fix by @argrento which worked for me.

from geometric_shapes.

mikepurvis avatar mikepurvis commented on June 13, 2024

Just to follow this up here with some relevant links:

Homebrew formula: https://github.com/Homebrew/homebrew-core/blob/master/Formula/assimp.rb

Find module from upstream: https://github.com/assimp/assimp/blob/master/cmake-modules/Findassimp.cmake

Certainly the find_library portion of the module looks pretty bog-standard to me:

https://github.com/assimp/assimp/blob/92046319be744fa514d643bab38c57b2c5fbae24/cmake-modules/Findassimp.cmake#L61-L65

Then again, there's also this other config module in the upstream, which is way more sketchy:

https://github.com/assimp/assimp/blob/92046319be744fa514d643bab38c57b2c5fbae24/assimp-config.cmake.in#L50

All in all, the cmake strategy in assimp looks rather haphazard...

from geometric_shapes.

v4hn avatar v4hn commented on June 13, 2024

I'll close this.

All further problems with this should be discussed over at assimp:
assimp/assimp#1517

from geometric_shapes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.