Chilkat C / C++ Libraries for MAC OS X

Downloads

v9.5.0.97 27-Jan-2024sha256: 0cc00a237fedc3f2c46e606add1c9c7986da774365156b985708317b6ddcf69b
Chilkat C/C++ Libs for MacOS (clang/C++/libstdc++)

v9.5.0.97 27-Jan-2024sha256: ff65e40f2200361b4c37a4e1bda493ccfe51f25890397b7cab65d41997862dff
Chilkat C/C++ Libs for MacOS (clang/C++11/libc++)

Install Instructions

  1. Download and unzip to any directory.
  2. The C/C++ headers are contained in include directory.
  3. The universal static (.a) and dynamic libs (.dylib) are located in the libStatic and libDyn directories.
  4. This download is both the trial and full version.
    Chilkat libraries are fully functional for 30-day evaluations.

  5. Release Notes are available on the Chilkat blog.
  6. See also: Chilkat Reference Documentation
  7. See also: Chilkat Sample Code
  8. See also: Chilkat Blog

How to Distribute a dylib with your Application

(This information is general and applies to any dylib on Mac OS X.) On Mac OS X, a dynamic library (dylib) has an "install name". The install name is a path baked into the dynamic library that says where to find the library at runtime. When an application is linked against a dylib, the path is saved in the app's binary so that it can find the dylib at runtime.

The install name of a dylib can be viewed by using otool. For example:

$ otool -D libchilkat.dylib
libchilkat.dylib:
/usr/local/lib/libchilkat.dylib

This means that unless the DYLD_LIBRARY_PATH environment variable is set to allow the runtime linker find the dylib, the dylib must be placed in the exact location as specified by the install name.

However, the install name of a dylib can be changed by using the install_name_tool utility. The @loader_path keyword can be used to make it relative to an install directory.

Chilkat recommends becoming familiar with the install_name_tool command and it's various options. For example, this command changes the install name of libchilkat.dylib to be relative to the location of the binary using it:

$ install_name_tool -id "@loader_path/dylibs/libchilkat.dylib" libchilkat.dylib