Giter VIP home page Giter VIP logo

Comments (6)

neverpanic avatar neverpanic commented on July 17, 2024 1

That should really use a proper shell escaping function rather than just quotes though – next would be somebody that wants to use quotes in his application name and you've got the same problem again.

from macdylibbundler.

auriamg avatar auriamg commented on July 17, 2024

I don't really have the time to check that properly myself, but if you wish to take a look yourself, in method "void collectDependencies", the code reads like

 std::string cmd = "otool -L " + filename; 

It would probably be pretty straightforward to add quotes there. Something like

 std::string cmd = "otool -L \"" + filename + "\""; 

Want to test it? I don't have a test setup at hand

from macdylibbundler.

dtakeda avatar dtakeda commented on July 17, 2024

I'll give it a shot if I have time later today.

from macdylibbundler.

dtakeda avatar dtakeda commented on July 17, 2024

Well I finally got around to testing.

tag4800:macdylibbundler dtakeda$ ./dylibbundler -od -b -x ~/Waveform\ Maker.app/Contents/MacOS/Waveform\ Maker -d ~/Waveform\ Maker.app/Contents/libs
* Collecting dependencies...............error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool: can't open file: /opt/local/lib/libcrypto.1.0.0.dylib  (No such file or directory)
Cannot find file /opt/local/lib/libcrypto.1.0.0.dylib  to read its dependencies
tag4800:macdylibbundler dtakeda$ ls -alh /opt/local/lib/libcrypto.1.0.0.dylib 
-r-xr-xr-x  1 root  admin   1.5M Jun  5 09:55 /opt/local/lib/libcrypto.1.0.0.dylib

Time to relearn C++ to do proper shell escaping.

from macdylibbundler.

dtakeda avatar dtakeda commented on July 17, 2024

Well it turns out the filename has a space at the end.
cmd:otool -L "/opt/local/lib/libcrypto.1.0.0.dylib "

from macdylibbundler.

SCG82 avatar SCG82 commented on July 17, 2024

fixed in #53

from macdylibbundler.

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.