node-ftdi icon indicating copy to clipboard operation
node-ftdi copied to clipboard

main.c:22:10: fatal error: 'ftd2xx.h' file not found

Open Zudva opened this issue 7 years ago • 5 comments

Hi!

Macbook 15 Retina - OS X 10.13.1

I have this error:

cc main.c -o loopback -Wall -Wextra -lftd2xx -lpthread -lobjc -framework IOKit -framework CoreFoundation -Wl,-rpath /usr/local/lib -L/usr/local/lib main.c:22:10: fatal error: 'ftd2xx.h' file not found #include "ftd2xx.h"

Zudva avatar Dec 20 '17 18:12 Zudva

MBP-Admin:Samples Master$ make for n in BitMode EEPROM/erase EEPROM/read EEPROM/write EEPROM/user/read EEPROM/user/size EEPROM/user/write Events loopback LargeRead MultiThread SetVIDPID Timeouts W32/escapeseq W32/events W32/simple W32/timeouts; do "/Applications/Xcode.app/Contents/Developer/usr/bin/make" -C $n || exit 1; done make[1]: Nothing to be done for all'. make[1]: Nothing to be done for all'. make[1]: Nothing to be done for all'. make[1]: Nothing to be done for all'. make[1]: Nothing to be done for all'. make[1]: Nothing to be done for all'. make[1]: Nothing to be done for all'. make[1]: Nothing to be done for all'. make[1]: Nothing to be done for all'. make[1]: Nothing to be done for all'. make[1]: Nothing to be done for all'. make[1]: Nothing to be done for all'. make[1]: Nothing to be done for all'. make[1]: Nothing to be done for all'. make[1]: Nothing to be done for all'. make[1]: Nothing to be done for all'. make[1]: Nothing to be done for `all'.

Zudva avatar Dec 21 '17 00:12 Zudva

I encountered the same problem!!!

LynnDBlack avatar Feb 07 '18 15:02 LynnDBlack

You need to copy the header files from the pi-compatible distro here to your /usr/local/include and follow instructions from README.

crockpotveggies avatar Mar 26 '18 07:03 crockpotveggies

copy the all the lib. to include /usr/local/include/

kirankotari avatar May 30 '18 16:05 kirankotari

The main.c file in Loopback doesn't have a relative path to the ftd2xx.h. The other main.c files look more like #include "../ftd2xx.h". I edited Loopback/main.c and it make'd just fine.

jerkmuffin avatar Feb 02 '19 01:02 jerkmuffin