title: Why does macdeployqt give the error "can't open input file"?
body: <p>When I run <code>macdeployqt</code> on my .app, it adds the libraries ok, but then makes the application crash when you try to start it. This works fine on Mac OS X 10.7, but on Mac OS X 10.8 DP3 no joy. To install Qt I've used <code>port install qt4-mac</code> (however, I may have a much older version of Qt on my 10.7 machine from the Qt website).</p>
  
  <p>Command: <code>macdeployqt bin/Synergy.app -verbose=3</code></p>
  
  <p>Enite log: <a href="http://pastebin.com/i37vadB7" rel="nofollow">http://pastebin.com/i37vadB7</a></p>
  
  <pre><code>Log: Using install_name_tool: 
  Log:  in "bin/Synergy.app/Contents/Frameworks//libcrypto.1.0.0.dylib" 
  Log:  change reference "/opt/local/lib/libz.1.dylib" 
  Log:  to "@executable_path/../Frameworks/libz.1.dylib" 
  ERROR: "install_name_tool: can't open input file: bin/Synergy.app/Contents/Frameworks//libcrypto.1.0.0.dylib for writing (Permission denied)
  install_name_tool: can't lseek to offset: 0 in file: bin/Synergy.app/Contents/Frameworks//libcrypto.1.0.0.dylib for writing (Bad file descriptor)
  install_name_tool: can't write new headers in file: bin/Synergy.app/Contents/Frameworks//libcrypto.1.0.0.dylib (Bad file descriptor)
  install_name_tool: can't close written on input file: bin/Synergy.app/Contents/Frameworks//libcrypto.1.0.0.dylib (Bad file descriptor)
  " 
  ERROR: "" 
  Log: 
  Log: Deploying plugins from "/opt/local/plugins" 
  Log: Created configuration file: "bin/Synergy.app/Contents/Resources/qt.conf" 
  Log: This file sets the plugin search path to "bin/Synergy.app/Contents/PlugIns"
  </code></pre>