Chilkat Mono Library
for Linux, Windows, and MacOS
Download
Install Instructions
- Download and unzip to any directory. The unzipped directory structure is shown here:
- The chilkatCs directory contains the C# source files for the Chilkat classes. These use the standard P/Invoke to call into a native library containing the implementation. Native shared libraries for Windows, Linux, and MacOS are provided.
- On Windows, open a Mono Command Prompt. On Linux or MacOS, start a terminal. Navigate to the chilkatMono directory.
- On Linux and MacOS, make sure the bash shell scripts (.sh) files have execute permission:
- (Optional) If desired, generate a new Strong Key by running createSnk.sh (or createSnk.bat on Windows). This script contains the following command:
- Create the Chilkat Mono managed assembly (chilkatMono.dll) by running makeChilkat.sh (or makeChilkat.bat on Windows). This script contains the following command:
- Copy the native shared library that matches your system's architecture to the chilkatMono directory (i.e. the same directory where chilkatMono.dll that was just created is located). For example, if running on 64-bit Linux:
- Build the chilkatTest.cs sample program by running makeTest.sh (or makeTest.bat on Windows). This script contains the following command:
- The sample program can be run. For example:
chmod a+x *.sh
sn -k chilkat.snk
csc -keyfile:chilkat.snk -target:library -out:chilkatMono.dll chilkatCs/*.cs
cp nativeDll/linux/x64/libchilkatMono.so .
csc -lib:. -r:chilkatMono.dll chilkatTest.cs
(on Windows) ./chilkatTest.exe (on Linux, MacOS, etc.) mono chilkatTest.exe
Sample Script for Install/Testing on 64-bit Linux
Note: The download URL is for v9.5.0.76. At the time of this writing, it was the latest version of Chilkat.
#!/bin/bash -ef curl "https://chilkatdownload.com/10.0.0/chilkatmono.zip" -o "chilkatMono.zip" unzip chilkatMono.zip cd chilkatMono sn -k chilkat.snk csc -keyfile:chilkat.snk -target:library -out:chilkatMono.dll chilkatCs/*.cs cp nativeDll/linux/x64/libchilkatMono.so . csc -lib:. -r:chilkatMono.dll chilkatTest.cs mono chilkatTest.exe cd ..
Sample Script for Install/Testing on MacOS
#!/bin/bash -ef curl "https://chilkatdownload.com/10.0.0/chilkatmono.zip" -o "chilkatMono.zip" unzip chilkatMono.zip cd chilkatMono sn -k chilkat.snk csc -keyfile:chilkat.snk -target:library -out:chilkatMono.dll chilkatCs/*.cs cp nativeDll/mac/libchilkatMono.dylib . csc -lib:. -r:chilkatMono.dll chilkatTest.cs mono chilkatTest.exe cd ..