Comments (6)
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.
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.
I'll give it a shot if I have time later today.
from macdylibbundler.
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.
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.
fixed in #53
from macdylibbundler.
Related Issues (20)
- bundling qemu doesn't rewrite libhogweed libnettle deps correctly HOT 3
- Link with unversioned dylibs HOT 3
- Not Skipping Request for Library Location Request When the Prefix is Suposed to be Ignored
- New build failure, undefined symbols HOT 3
- Automatic release uploading broken
- Processed app crashes HOT 5
- Failed at a barebone example. HOT 6
- Regression somewhere after 9cf053f8b399512e12d7931fa24f466057e58044 HOT 7
- dylibbundler failed on macOS 11 (beta) HOT 5
- dylibbundler can't works with application + last version of libcurl HOT 2
- Can't build dylibbundler - missing PATH_MAX HOT 5
- Signed/notarized dylibs supported? HOT 2
- Tag and release so Homebrew can pick it up? HOT 3
- Error fixing RPATH on universal binary dylib
- Need ad-hoc signing for moved libraries since perhpas macOS 12.1 Monterey HOT 1
- Fix identified. Missing "/" on path concatenation. HOT 3
- Any way to not ignore system libs? HOT 3
- dylibbundler fails when building widelands on M1 Mac.
- dylibbundler doesn't rewrite paths correctly when using alternative library search path
- copy failed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from macdylibbundler.