Mac OS X FAQs
You can simply drag and drop file/folder from Finder to the terminal window.
Valentina often installs vcomponents folder into the path “/usr/local/lib/vcomponents”. The “/usr” folder is hidden, so you cannot enter it using Finder. To do this, you need to choose in the menu of Finder “GO” the item “Go to Folder…”, then type path you need and click Ok.
Actually, it is enough to type only beginning of the path: “/usr”, and you will be able to open sub-folders in the regular way.
Executable Path of DYLIB
To see the executable_path settings for any dylib you should type in the terminal
otool -L PathToFile
$ otool -L libvshared_fat_release.dylib libvshared_fat_release.dylib: /usr/local/lib/vcomponents/libvshared_fat_release.dylib (compatibility version 2.4.3, current version 2.4.3) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 128.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 71.1.3) /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.0.0)
Here you can see that this libvshared_fat_release.dylib should be located in the '/usr/local/lib/vcomponents', its version is 2.4.3, it is linked to Carbon.framework, libSystem and zip libraries.
It is possible to change executable path for a dylib. Working with Valentina you may need to do this when you want to install /usr/local/lib/vcomponents folder into the application package. To do this you can use OS X utility install_name_tool.
Paradigma Software is used to install vcomponents folder into app/Contents/vcomponents location. You can do the same. The following examples assume this location.
Working with some DYLIB you may need to do two steps to prepare it for new location:
- change information about its own location;
- change information about location of other linked DYLIBS (if any) that also are moved.
STEP 1: To change path where dylib must be located we use option -id of the utility. Example:
install_name_tool -id "@executable_path/../VComponents/libicudata.dylib" libicuuc.dylib
Here we just assign a new location path to libicuuc.dylib.
STEP 2: To change information about path of some linked DYLIB we use option -change of the utility. Example:
install_name_tool -change "/usr/local/lib/vcomponents/libicudata.dylib" "@executable_path/../VComponents/libicudata.dylib" libicuuc.dylib
If you want to change information about few linked DYLIBS, then you should call this for each.
Shell script file is a regular text file which has correct permissions and prefix.
- Make new text file using any text editor;
- add first line to be
- save file;
- open terminal
- To make file executable we need permissions rwx-rx-rx. Type the following to do this:
chmod 755 /pathToFile