Chilkat C / C++ Libraries for MAC OS X
- Download and unzip to any directory. The unzipped directory structure is shown here:
- The C/C++ headers are contained in include directory.
- The static and dynamic libs are located in the libStatic and libDyn directories.
- Universal libs may be created by running the makeUniversalLibs.sh script. (Make sure this script has execute permission first "chmod a+x makeUniversalLibs.sh") The contents of this shell script are shown here:
libtool -static libchilkat_x86_64.a libchilkat_i386.a -o libchilkat.a
lipo -create libchilkat_x86_64.dylib libchilkat_i386.dylib -output libchilkat.dylib
- This download is both the trial and full version.
Chilkat libraries are fully functional for 30-day evaluations.
- Release Notes are available on the Chilkat blog.
- See also: Chilkat Reference Documentation
- See also: Chilkat Sample Code
- 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
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
Statement. Copyright 2000-2018 Chilkat
Software, Inc. All rights reserved.
(Regarding the usage of the Android logo) Portions of this page are reproduced from work created and shared by Google and used according to terms described in the Creative Commons
3.0 Attribution License.
Send feedback to email@example.com
Software components and libraries for Linux, MAC OS X, iOS, Android™, Solaris, RHEL/CentOS, FreeBSD, MinGW
Azure, Windows 10, Windows 8, Windows Server 2012, Windows 7, 2003 Server, 2008 Server, etc.