thomaschaaf / node-ftdi

FTDI bindings for Node.js
MIT License
45 stars 39 forks source link

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

Open Zudva opened 6 years ago

Zudva commented 6 years ago

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 commented 6 years ago

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 forall'. make[1]: Nothing to be done for all'. make[1]: Nothing to be done forall'. make[1]: Nothing to be done for all'. make[1]: Nothing to be done forall'. make[1]: Nothing to be done for all'. make[1]: Nothing to be done forall'. make[1]: Nothing to be done for all'. make[1]: Nothing to be done forall'. make[1]: Nothing to be done for all'. make[1]: Nothing to be done forall'. make[1]: Nothing to be done for all'. make[1]: Nothing to be done forall'. make[1]: Nothing to be done for all'. make[1]: Nothing to be done forall'. make[1]: Nothing to be done for `all'.

LynnDBlack commented 6 years ago

I encountered the same problem!!!

crockpotveggies commented 6 years ago

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

kirankotari commented 6 years ago

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

jerkmuffin commented 5 years ago

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.