I would like to communicate with a FTDI module that I own. FTDI provide what they call a library, which is a file that ends with the extension .dylib. How do I access the commands contained in the file from within a Livecode application?
Having read the guide and the tutorials I am left with the sinking feeling that I will have to have the code recompiled into a Livecode external - is this the case?
Details of the device I am attempting to use may be found here : http://www.ftdichip.com/Products/ICs/FT2232H.htm
and the following is from the FTDI help file :
Thanks in advance.Installation
Installing the library is a relatively simple operation which involves copying a file and making a symbolic link.
Use the following steps to install (these assume you have copied all of the distribution files to the desktop):
1. Open a Terminal window (Finder->Go->Utilities->Terminal).
2. If the /usr/local/lib directory does not exist, create it (sudo mkdir /usr/local/lib)
3. if the /usr/local/include directory does not exist, create it (sudo mkdir /usr/local/include)
4. Copy the dylib file to /usr/local/lib (sudo cp Desktop/D2XX/bin/libftd2xx.1.1.0.dylib /usr/local/lib/libftd2xx.1.1.0.dylib)
5. Make a symbolic link (sudo ln -sf /usr/local/lib/libftd2xx.1.1.0.dylib /usr/local/lib/libftd2xx.dylib)
6. Copy the D2XX include file (sudo cp Desktop/D2XX/Samples/ftd2xx.h /usr/local/include/ftd2xx.h
7. Copy the WinTypes include file (sudo cp Desktop/D2XX/Samples/WinTypes.h /usr/local/include/WinTypes.h)
8. You have now successfully installed the D2XX library.
Simon