Git Product home page Git Product logo

Comments (10)

peterkolski avatar peterkolski commented on August 15, 2024

Error message:

dyld: Library not loaded: @rpath/libdarknetOSX.dylib
...
 Reason: image not found

from ofxdarknet.

peterkolski avatar peterkolski commented on August 15, 2024

We can fix this by setting in xCode:
Build Settings / Runpath Search Paths
{blabla}.. libs/darknet/lib/osx/
Let's see, if this can be set via the Project Generator

from ofxdarknet.

peterkolski avatar peterkolski commented on August 15, 2024

If I add into the addon_config.mk
ADDON_LDFLAGS = -rpath /Users/sonneundasche/programming/of/addons/ofxDarknet/libs/darknet/lib/osx
It works, but that's an absolute path

from ofxdarknet.

schwittlick avatar schwittlick commented on August 15, 2024

what about this:

ADDON_LDFLAGS = -rpath $(OF_ROOT)/addons/ofxDarknet/libs/darknet/lib/osx

from ofxdarknet.

genekogan avatar genekogan commented on August 15, 2024

this appears to work. a7eb277

ADDON_LDFLAGS = -rpath ../../../../addons/ofxDarknet/libs/darknet/lib/osx

from ofxdarknet.

jakeelwes avatar jakeelwes commented on August 15, 2024

Heya, I'm still getting:

dyld: Library not loaded: @rpath/libcudart.8.0.dylib
  Referenced from: /.../OpenFrameworks/of_v0.9.8_osx_release/addons/ofxDarknet/example-yolo2/bin/libdarknetOSX.dylib
  Reason: image not found
(lldb) 

(Thread 1: 0_abort_with_payload on run)

libdarknetOSX.dylib is in the project bin, and I'm up to date with your latest commit (i.e the ADDON_LDFLAGS is correct) anything else I've missed?

Thanks guys, awesome job putting this together

Also do I need to specify using CPU and not cuda/GPU in addon_config (tried commenting out the cuda paths but then get other errors) / Will it work on CPU?

from ofxdarknet.

genekogan avatar genekogan commented on August 15, 2024

do you have CUDA installed? or in a different path?
right now it's searching for cuda in /usr/local/cuda/, so you should have a file libcudart.8.0.dylib inside /usr/local/cuda/lib/. if you have cuda in a different location, you'd need to change the CUDA search path in the addon_config.mk file or in the xcode project file.
it's also assuming CUDA 8.0 -- if you have an older version, we'd need to link against that for it to work. potentially it could work with just using symlinks to your version of cuda.

from ofxdarknet.

jakeelwes avatar jakeelwes commented on August 15, 2024

I have CUDA 7 installed but not sure it ever worked as I don't have a nvidia GPU on my macbook (can try install CUDA 8 but I thought you needed a GPU). Bit confused though as it says darknet supports CPU and GPU computation but is written in Cuda?

If its only for GPU then no worries, I think its a dead end, I'll just keep playing on my AWS :)

from ofxdarknet.

genekogan avatar genekogan commented on August 15, 2024

are you sure you don't have NVIDIA? check graphics in About this mac. if you have CUDA 7, you should be able to switch to CUDA 8 without much difficulty. it's possible that it may work without problems with CUDA 7, we haven't tested that. one quick way to check is to make symlinks for all the needed files, so e.g. libcudart.8.0.dylib links to libcudart.7.0.dylib or whatever you have... its a hack but it could work. otherwise try cuda 8.

the repo is hard-coded to just use GPU at the moment. we might make it an option, but everything becomes at least 10x slower in CPU mode, which defeats the purpose of bringing it into OF to begin with.

from ofxdarknet.

jakeelwes avatar jakeelwes commented on August 15, 2024

Yeah no NVIDIA. I have the Retina 13-inch Late 2013 with an integrated GPU - Intel Iris 1536 MB - only the larger ones have the dedicated Nvidia GPU (hence having to use AWS for all GPU stuff - bit of a bore), thanks though Gene. I might try playing with Redmon's DarkNet in CPU mode though

from ofxdarknet.

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.