我正试图从
运行Sample Apphttp://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
有人可以帮忙吗?
答案 0 :(得分:0)
我找到了如何在没有此库的情况下读取ID的方法。它写在EEPROM中。
FT_ReadEE (ftHandle, 0x43, &wTemp)
(FT_ReadEE (ftHandle, 0x44, &wTemp)