Mac OS Yosemite上的FTDI芯片ID

时间:2015-05-11 11:52:50

标签: c++ objective-c macos ftdi

我正试图从

运行Sample App

http://www.ftdichip.com/Support/SoftwareExamples/FTDIChip-ID.htm

适用于Mac OS。

我的问题是为Mac OS Yosemite编译它。

我在“制作”之后得到了这个错误:

ld: warning: ignoring file ./libftchipid.dylib, missing required architecture x86_64 in file ./libftchipid.dylib (2 slices)
Undefined symbols for architecture x86_64:
  "_FTID_Constructor", referenced from:
      _main in ChipID-3efebc.o
  "_FTID_Destructor", referenced from:
      _main in ChipID-3efebc.o
  "_FTID_GetChipIDFromHandle", referenced from:
      _main in ChipID-3efebc.o
  "_FTID_GetDeviceChipID", referenced from:
      _main in ChipID-3efebc.o
  "_FTID_GetDeviceDescription", referenced from:
      _main in ChipID-3efebc.o
  "_FTID_GetDeviceSerialNumber", referenced from:
      _main in ChipID-3efebc.o
  "_FTID_GetDllVersion", referenced from:
      _main in ChipID-3efebc.o
  "_FTID_GetErrorCodeString", referenced from:
      _main in ChipID-3efebc.o
  "_FTID_GetNumDevices", referenced from:
      _main in ChipID-3efebc.o
ld: symbol(s) not found for architecture x86_64 

有人可以帮忙吗?

1 个答案:

答案 0 :(得分:0)

我找到了如何在没有此库的情况下读取ID的方法。它写在EEPROM中。

FT_ReadEE (ftHandle, 0x43, &wTemp) (FT_ReadEE (ftHandle, 0x44, &wTemp)