libftdi Archives
|
From: | Ori Idan <ori@xxxxxxxxxxxxxxxxx> |
---|---|
To: | libftdi@xxxxxxxxxxxxxxxxxxxxxxx |
Date: | Fri, 15 Feb 2013 05:30:20 +0200 |
On Fri, Feb 15, 2013 at 4:48 AM, Xiaofan Chen <xiaofanc@xxxxxxxxx> wrote:
You can view the default configuration of gcc using gcc -dumpspecs. Note however that this gives you a lot of output so you might want to filter it through grep.
I asked similar question at stackoverflow and I got there an answer that is worth sharing here. Someone there offered me to use the following command line: gcc $(pkg-config --cflags libftdi) -o i2csend i2csend.c $(pkg-config --libs libftdi)
Note that this command line will add flags that may be required by the library and at the end put the library and any other libraries that may be required by it. In the case of libftdi it seems that it does not require special flags or other libraries.
But I think this is a good practice to use this command line. This new command line will be pushed to my github project once I'm done with the additions I want. I am working on i2csend and i2cget utitilies that make use of all available channels on the chip and use the GPIO lines (I am using them to drive external i2c demultiplexer to allow me to have up to 24 i2c channels in my system.
-- Ori Idan libftdi - see http://www.intra2net.com/en/developer/libftdi for details. |
Current Thread |
---|
|