0
0

Hey,
I’m trying to link the libfmodex.dylib to the Maya dynamic library and get these errors…

Macintosh-100:/Applications/Autodesk/maya2008/Maya.app/Contents/MacOS eoghancunneen$ install_name_tool -change /Applications/Autodesk/maya2008/Maya.app/Contents/Frameworks/libfmodex.dylib ./libfmodex.dylib ./libMaya.dylib
install_name_tool: can’t open input file: ./libMaya.dylib for writing (Permission denied)
install_name_tool: can’t lseek to offset: 4096 in file: ./libMaya.dylib for writing (Bad file descriptor)
install_name_tool: can’t write new headers in file: ./libMaya.dylib (Bad file descriptor)
install_name_tool: can’t lseek to offset: 65536 in file: ./libMaya.dylib for writing (Bad file descriptor)
install_name_tool: can’t write new headers in file: ./libMaya.dylib (Bad file descriptor)
install_name_tool: can’t close written on input file: ./libMaya.dylib (Bad file descriptor)

Anyone have any idea about it? Any help would be hugely appreciated…

Eoghan

  • You must to post comments
0
0

It looks like you don’t have permission to modify libMaya.dylib, you should be able to do a chmod on the file and set it to writeable for your user. Check ‘man chmod’ for details.

Also it looks like you have the arguments for install_name_tool around the wrong way. You are probably looking for this:

[code:38lc4g00]install_name_tool -change ./libfmodex.dylib /Applications/Autodesk/maya2008/Maya.app/Contents/Frameworks/libfmodex.dylib ./libMaya.dylib[/code:38lc4g00]

or a neater solution (that is portable)

[code:38lc4g00]install_name_tool -change ./libfmodex.dylib ../Frameworks/libfmodex.dylib ./libMaya.dylib[/code:38lc4g00]

The syntax for install_name_tool is -change old_path new_path file_to_modify.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.