Giter Site home page Giter Site logo

Comments (5)

sjackman avatar sjackman commented on August 16, 2024
~ ❯❯❯ realpath ~/bin/Bandage
/opt/homebrew-cask/Caskroom/bandage/0.7.1/Bandage.app/Contents/MacOS/Bandage
~ ❯❯❯ /opt/homebrew-cask/Caskroom/bandage/0.7.1/Bandage.app/Contents/MacOS/Bandage --version
Version: 0.7.1
~ ❯❯❯ ~/bin/Bandage --version
This application failed to start because it could not find or load the Qt platform plugin "cocoa".

Reinstalling the application may fix this problem.
[1]    73535 abort      ~/bin/Bandage

from bandage.

sjackman avatar sjackman commented on August 16, 2024

The work around is straight forward, so this issue is low priority for me. I wanted to report so that someone else who sees this message will find my workaround. Replace the symlink with a shell script

#!/bin/sh
exec /opt/homebrew-cask/Caskroom/bandage/0.7.1/Bandage.app/Contents/MacOS/Bandage "$@"

from bandage.

sjackman avatar sjackman commented on August 16, 2024

Also, thank you so much for Bandage! It's a fantastic program. Very useful. 🎉

from bandage.

rrwick avatar rrwick commented on August 16, 2024

Hmmm, that's a tough one, and I don't see any obvious way around it. I think the problem stems from the fact that I'm trying to have Bandage be both a GUI program (launched with an app bundle) and a command-line program (the binary of which is buried in the app bundle). It seems that when you make a symbolic link to that binary, OS X can't find the libraries it needs, even though they are in the app bundle.

One possible workaround would be to make the symbolic link to just the app bundle, not the binary inside. But then instead of running Bandage you'd need to run Bandage/Contents/MacOS/Bandage, which isn't very convenient.

The other workaround is to install Xcode and Qt so that OS X doesn't need the libraries in the app bundle - it can find them elsewhere. But I suspect that what you have already done is the simplest solution.

from bandage.

rrwick avatar rrwick commented on August 16, 2024

I haven't found a way around this one, so we'll see if Stack Overflow can help me out: http://stackoverflow.com/questions/36930120/symbolic-link-to-binary-executable-in-mac-app-bundle

from bandage.

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.